Class 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 Detail

      • label

        protected String label
      • 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
    • Method Detail

      • setLabel

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

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

        public void setFont​(Font font)
        Specified by:
        setFont 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
      • 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