VisualSim.simulators.gr.lib
Class TextString3D
- public class TextString3D
- extends GRShadedShape
An actor that encapsulates 3D text shapes in the GR domain.
The text port/parameter gives the text to be displayed.
The fontSize parameter gives the size of the font.
The extrusionDepth parameter specifies how deep the 3-D
rendering of the text should be.
The alignment parameter gives the alignment of the text
relative to the position of the object.
The fontFamily parameter specifies the font family.
The rest of the parameters are described in the base class.
- Since:
- VisualSim1.0
alignment
public VisualSim.data.expr.StringParameter alignment
- The alignment of the text. This is a string that defaults to
"center". The recognized values are "center", "first", and
"last". A value of "first" means that the first character
is put on the position of the object, whereas "last" means
that the last character is put on the position. Note that
"left" and "right" would make no sense, since the orientation
is arbitrary.
extrusionDepth
public VisualSim.data.expr.Parameter extrusionDepth
- The depth of the extrusion of the text. This is a double that
defaults to 0.2.
fontFamily
public VisualSim.data.expr.StringParameter fontFamily
- The font family. This is a string that defaults to "SansSerif",
a font that is guaranteed by Java to always be present.
fontSize
public VisualSim.data.expr.Parameter fontSize
- The font size. This is a double that defaults to 1.0.
text
public VisualSim.actor.parameters.PortParameter text
- The text to display.