Module imp3d

Class TextLabelBase

All Implemented Interfaces:
Transformation, Pickable, Renderable, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable
Direct Known Subclasses:
Legend, NumericLabel, TextLabel

public abstract class TextLabelBase extends Label implements Pickable
See Also:
  • Field Details

  • Constructor Details

    • TextLabelBase

      public TextLabelBase()
  • Method Details

    • getCaption

      protected abstract String getCaption()
    • pick

      public static void pick(String caption, Font font, int horizontal, int vertical, Point3d origin, Vector3d direction, Matrix4d transformation, PickList list)
    • draw

      public static void draw(String caption, Font font, int horizontal, int vertical, Tuple3f c, Tuple3f b, boolean filled, boolean outlined, RenderState rs)
    • draw

      public void draw(Object object, boolean asNode, RenderState rs)
      Specified by:
      draw in interface Renderable
    • pick

      public void pick(Object object, boolean asNode, Point3d origin, Vector3d direction, Matrix4d t, PickList list)
      Description copied from interface: Pickable
      Computes intersections of a given ray with this shape.
      Specified by:
      pick in interface Pickable
      Parameters:
      object - the object of which this shape is an attribute
      asNode - true iff object is a node
      origin - the origin of the ray, in local coordinates
      direction - the direction of the ray, in local coordinates
      t - the transformation from local coordinates to world coordinates
      list - the list to which intersections have to be added
    • getColor

      public Color3f getColor()
    • setColor

      public void setColor(Color3f value)
    • getFillColor

      public Color3f getFillColor()
    • setFillColor

      public void setFillColor(Color3f value)
    • getFont

      public FontAdapter getFont()
    • setFont

      public void setFont(FontAdapter value)
    • isOutlined

      public boolean isOutlined()
    • setOutlined

      public void setOutlined(boolean v)
    • isFilled

      public boolean isFilled()
    • setFilled

      public void setFilled(boolean v)