de.grogra.imp3d.objects
public class Legend extends TextLabelBase
| Modifier and Type | Class and Description |
|---|---|
static class |
Legend.Pattern |
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
protected java.lang.String |
caption |
static Node.NType.Field |
caption$FIELD |
protected java.lang.String |
position |
static Node.NType.Field |
position$FIELD |
color, color$FIELD, fillColor, fillColor$FIELD, FILLED_MASK, filled$FIELD, font, font$FIELD, OUTLINED_MASK, outlined$FIELD, USED_BITSBOTTOM_MASK, HORIZONTAL_MASK, horizontalAlignment$FIELD, LEFT_MASK, RIGHT_MASK, TOP_MASK, VERTICAL_MASK, verticalAlignment$FIELDtransform, transform$FIELD, TRANSFORMING_MASK, transforming$FIELDADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MIME_TYPE, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELDDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
Legend() |
Legend(java.lang.String caption) |
Legend(java.lang.String caption,
int px,
int py) |
Legend(java.lang.String caption,
java.lang.String position) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.lang.Object object,
boolean asNode,
RenderState rs) |
java.lang.String |
getCaption() |
protected Node.NType |
getNTypeImpl()
This method returns the
Node.NType which describes the managed
fields of the class of this node. |
java.lang.String |
getPosition() |
protected Node |
newInstance()
This method returns a new instance of the class of this
node.
|
void |
pick(java.lang.Object object,
boolean asNode,
Point3d origin,
Vector3d direction,
Matrix4d t,
PickList list)
Computes intersections of a given ray with this shape.
|
void |
setCaption(java.lang.String value) |
void |
setPosition(java.lang.String value) |
draw, getColor, getFillColor, getFont, isFilled, isOutlined, pick, setColor, setFillColor, setFilled, setFont, setOutlinedgetHorizontalAlignment, getVerticalAlignment, setAlignment, setHorizontalAlignment, setVerticalAlignmentgetLocalTransformation, getTransform, getTranslation, isTransforming, postTransform, preTransform, setRotation, setScale, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransforming, setTranslationaddEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, getSymbolColor, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setLayer, setMark, setName, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceaddEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBitMark, getObjectMark, setBitMark, setObjectMarkpublic static final Node.NType $TYPE
protected java.lang.String caption
public static final Node.NType.Field caption$FIELD
protected java.lang.String position
public static final Node.NType.Field position$FIELD
public Legend()
public Legend(java.lang.String caption)
public Legend(java.lang.String caption,
int px,
int py)
public Legend(java.lang.String caption,
java.lang.String position)
public void draw(java.lang.Object object,
boolean asNode,
RenderState rs)
draw in interface Renderabledraw in class TextLabelBasepublic java.lang.String getCaption()
getCaption in class TextLabelBaseprotected Node.NType getNTypeImpl()
NodeNode.NType which describes the managed
fields of the class of this node. This method has to be implemented
in every concrete subclass.getNTypeImpl in class Nullpublic java.lang.String getPosition()
protected Node newInstance()
NodenewInstance in class Nullpublic void pick(java.lang.Object object,
boolean asNode,
Point3d origin,
Vector3d direction,
Matrix4d t,
PickList list)
Pickablepick in interface Pickablepick in class TextLabelBaseobject - the object of which this shape is an attributeasNode - true iff object is a nodeorigin - the origin of the ray, in local coordinatesdirection - the direction of the ray, in local coordinatest - the transformation from local coordinates to world coordinateslist - the list to which intersections have to be addedpublic void setCaption(java.lang.String value)
public void setPosition(java.lang.String value)