renderer.endRendering();
}
public void drawTextNode(ModelImpl objectModel) {
Renderable renderable = objectModel.getObj();
TextDataImpl textData = (TextDataImpl) renderable.getTextData();
if (textData != null) {
model.colorMode.textColor(this, textData, objectModel);
model.sizeMode.setSizeFactor2d(model.nodeSizeFactor, textData, objectModel);
if (nodeRefresh) {
builder.buildNodeText((NodeData) renderable, textData, model, currentTimeInterval);
}
if (textData.getSizeFactor() * renderer.getCharWidth('a') < PIXEL_LIMIT) {
return;
}
String txt = textData.getLine().getText();
Rectangle2D r = renderer.getBounds(txt);
float posX = renderable.getModel().getViewportX() + (float) r.getWidth() / -2 * textData.getSizeFactor();
float posY = renderable.getModel().getViewportY() + (float) r.getHeight() / -2 * textData.getSizeFactor();
r.setRect(0, 0, r.getWidth() / Math.abs(drawable.getDraggingMarkerX()), r.getHeight() / Math.abs(drawable.getDraggingMarkerY()));
textData.getLine().setBounds(r);
renderer.draw3D(txt, posX, posY, 0, textData.getSizeFactor());
}
}