public class Scalebar extends BranchGroup
ALLOW_DETACH
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
Modifier and Type | Method and Description |
---|---|
Geometry |
createLineGeometry() |
Appearance |
createTextAppearance() |
Geometry |
createTextGeometry() |
Color3f |
getColor() |
float |
getLength() |
String |
getUnit() |
float |
getX() |
float |
getY() |
void |
setColor(Color3f c) |
void |
setLength(float l) |
void |
setPosition(float x,
float y) |
void |
setUnit(String unit) |
cloneNode, compile, detach, pickAll, pickAll, pickAllSorted, pickAllSorted, pickAny, pickAny, pickClosest, pickClosest
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
public float getX()
public float getY()
public float getLength()
public String getUnit()
public Color3f getColor()
public void setUnit(String unit)
public void setPosition(float x, float y)
public void setLength(float l)
public void setColor(Color3f c)
public Appearance createTextAppearance()
public Geometry createTextGeometry()
public Geometry createLineGeometry()
Copyright © 2015–2021 Fiji. All rights reserved.