I am displaying labels on the cube that represents coordinates for future drawing. Labels are numeric and they display values of some variables. Labels attached to the axis that get rotated displays numbers with some digits being upside down.
Here is the chart
Here is the fragment of the code
// back face
r = new Axis(size);
r.setFill(Color.TRANSPARENT);
r.setTranslateX(-0.5 * size);
r.setTranslateY(-0.5 * size);
r.setTranslateZ(0.5 * size);
cubeFaces.add(r);
// bottom face
r = new Axis(size);
r.setFill(Color.TRANSPARENT);
r.setTranslateX(-0.5 * size);
r.setTranslateY(0);
r.setRotationAxis(Rotate.X_AXIS);
r.setRotate(90);
// Set LABELS for Z coordinate
for( int y=0; y <= size; y+=size/10)
{
int ry = size-y;
text = new Text(" " + (size - y));
text.setFont(new Font(20));
text.setTranslateX(-90);
text.setTranslateY(y);
text.setTranslateZ(0);
r.getChildren().addAll(text);
}
Help is appreciated.