Class TextString3D

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    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:
    Ptolemy II 1.0
    Version:
    $Id$
    Author:
    C. Fong and Edward A. Lee
    Pt.AcceptedRating:
    Green (liuxj)
    Pt.ProposedRating:
    Green (eal)
    • Field Detail

      • alignment

        public 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 Parameter extrusionDepth
        The depth of the extrusion of the text. This is a double that defaults to 0.2.
      • fontFamily

        public 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 Parameter fontSize
        The font size. This is a double that defaults to 1.0.