1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
/* Blue 40point text*/
TransformGroup textTranslationGroup;
Transform3D textTranslation;
textRelationshipInfoObject = new Text2D("Blue 40point Text",
new Color3f(0f, 0f, 1f),
"Serif",
170,
Font.BOLD);
textRelationshipInfoObject.setCapability(Text2D.ALLOW_APPEARANCE_WRITE);
textRelationshipInfoObject.setCapability(Text2D.ALLOW_GEOMETRY_WRITE);
textTranslation = new Transform3D();
textTranslation.setTranslation(new Vector3f(9.0f, 8.0f, 0.0f));
textTranslationGroup = new TransformGroup(textTranslation);
textTranslationGroup.addChild(textRelationshipInfoObject);
sceneTransformGroup.addChild(textTranslationGroup); |
Partager