Class AbstractLabel
java.lang.Object
repast.simphony.visualization.visualization3D.AbstractLabel
- All Implemented Interfaces:
Label
- Direct Known Subclasses:
AgentLabel
,EdgeLabel
- Version:
- $Revision: 1.2 $ $Date: 2006/01/06 22:53:54 $
- Author:
- Nick Collier
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.jogamp.java3d.Appearance
protected org.jogamp.vecmath.Color3f
protected org.jogamp.java3d.Font3D
protected org.jogamp.java3d.BranchGroup
protected Color
protected String
protected float
protected Style3D.LabelPosition
protected float
protected float
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.jogamp.java3d.BranchGroup
getBranchGroup
(org.jogamp.vecmath.Point3f center, org.jogamp.java3d.Group object) getColor()
getFont()
getLabel()
float
protected abstract org.jogamp.vecmath.Vector3f
getTranslation
(org.jogamp.vecmath.Point3f center, float offset) void
void
void
void
setOffset
(float offset) void
setPosition
(Style3D.LabelPosition position)
-
Field Details
-
label
-
position
-
group
protected org.jogamp.java3d.BranchGroup group -
updated
protected boolean updated -
color
protected org.jogamp.vecmath.Color3f 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
-
AbstractLabel
public AbstractLabel() -
AbstractLabel
-
-
Method Details
-
getLabel
-
setLabel
-
getPosition
- Specified by:
getPosition
in interfaceLabel
-
setColor
-
getColor
-
setFont
-
getFont
-
getOffset
public float getOffset() -
setOffset
public void setOffset(float offset) -
setPosition
- 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
-