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 Summary
Fields Modifier and Type Field Description protected org.jogamp.java3d.Appearance
appearance
protected org.jogamp.vecmath.Color3f
color
protected org.jogamp.java3d.Font3D
font
protected org.jogamp.java3d.BranchGroup
group
protected Color
jColor
protected String
label
protected float
offset
protected Style3D.LabelPosition
position
protected float
textScale
protected float
textWidth
protected boolean
updated
-
Constructor Summary
Constructors Constructor Description AbstractLabel()
AbstractLabel(String label, Style3D.LabelPosition position)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.jogamp.java3d.BranchGroup
getBranchGroup(org.jogamp.vecmath.Point3f center, org.jogamp.java3d.Group object)
Color
getColor()
Font
getFont()
String
getLabel()
float
getOffset()
Style3D.LabelPosition
getPosition()
protected abstract org.jogamp.vecmath.Vector3f
getTranslation(org.jogamp.vecmath.Point3f center, float offset)
void
setColor(Color color)
void
setFont(Font font)
void
setLabel(String label)
void
setOffset(float offset)
void
setPosition(Style3D.LabelPosition position)
-
-
-
Field Detail
-
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 Detail
-
AbstractLabel
public AbstractLabel()
-
AbstractLabel
public AbstractLabel(String label, Style3D.LabelPosition position)
-
-
Method Detail
-
getPosition
public Style3D.LabelPosition getPosition()
- Specified by:
getPosition
in interfaceLabel
-
setPosition
public void setPosition(Style3D.LabelPosition position)
- Specified by:
setPosition
in interfaceLabel
-
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 interfaceLabel
-
-