Class AbstractLabel

java.lang.Object
repast.simphony.visualization.visualization3D.AbstractLabel
All Implemented Interfaces:
Label
Direct Known Subclasses:
AgentLabel, EdgeLabel

public abstract class AbstractLabel extends Object implements Label
Version:
$Revision: 1.2 $ $Date: 2006/01/06 22:53:54 $
Author:
Nick Collier
  • Field Details

    • label

      protected String label
    • position

      protected Style3D.LabelPosition position
    • group

      protected org.jogamp.java3d.BranchGroup group
    • updated

      protected boolean updated
    • color

      protected org.jogamp.vecmath.Color3f color
    • jColor

      protected Color jColor
    • font

      protected org.jogamp.java3d.Font3D font
    • appearance

      protected org.jogamp.java3d.Appearance appearance
    • textScale

      protected float textScale
    • offset

      protected float offset
    • textWidth

      protected float textWidth
  • Constructor Details

  • Method Details

    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface Label
    • setLabel

      public void setLabel(String label)
      Specified by:
      setLabel in interface Label
    • getPosition

      public Style3D.LabelPosition getPosition()
      Specified by:
      getPosition in interface Label
    • setColor

      public void setColor(Color color)
      Specified by:
      setColor in interface Label
    • getColor

      public Color getColor()
      Specified by:
      getColor in interface Label
    • setFont

      public void setFont(Font font)
      Specified by:
      setFont in interface Label
    • getFont

      public Font getFont()
      Specified by:
      getFont in interface Label
    • getOffset

      public float getOffset()
      Specified by:
      getOffset in interface Label
    • setOffset

      public void setOffset(float offset)
      Specified by:
      setOffset in interface Label
    • setPosition

      public void setPosition(Style3D.LabelPosition position)
      Specified by:
      setPosition in interface Label
    • getTranslation

      protected abstract org.jogamp.vecmath.Vector3f getTranslation(org.jogamp.vecmath.Point3f center, float offset)
    • getBranchGroup

      public org.jogamp.java3d.BranchGroup getBranchGroup(org.jogamp.vecmath.Point3f center, org.jogamp.java3d.Group object)
      Specified by:
      getBranchGroup in interface Label