public class CNamedTag extends CExtensionalTag
A CNamedTag
tag is a CExtensionalTag
.
A CNamedTag
tag is a set of shapes having the same label.
One can create a CNamedTag named "movable" and use transitions in state machine like:
Transition onAnyColor = new Press("movable", BUTTON1) { public void action() { ... } };
CExtensionalTag
Constructor and Description |
---|
CNamedTag(java.lang.String n)
Builds a CNamedTag.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of this tag.
|
boolean |
setName(java.lang.String n)
Sets the name of this tag.
|
added, addTo, removed, removeFrom, reset
above, aboveAll, action, action, addGhost, addTag, addTag, and, and, animate, attachSM, below, belowAll, contains, contains, contains, contains, detachSM, firstShape, fixReferenceShapeToCurrent, getAntialiasedShapes, getBoundingBox, getCanvas, getCenterX, getCenterY, getFilledShapes, getFirstAntialiasedShape, getFirstFilledShape, getFirstHavingTag, getFirstOutlinedShape, getIntersection, getMaxX, getMaxY, getMinX, getMinY, getOutlinedShapes, getTopLeastShape, getTopMostShape, hasNext, hasTag, hasTag, intersects, isAntialiased, isDrawable, isFilled, isOnOutline, isOutlined, isPickable, next, nextShape, or, or, removeGhost, removeTag, removeTag, rotateBy, rotateTo, scaleBy, scaleBy, scaleTo, scaleTo, setAntialiased, setClip, setDrawable, setFilled, setFillPaint, setOutlined, setOutlinePaint, setParent, setPickable, setReferencePoint, setRenderingHint, setShape, setStroke, setTransformToIdentity, setTransparencyFill, setTransparencyFill, setTransparencyOutline, setTransparencyOutline, tagsShape, translateBy, translateTo
getCollection, remove, size
public CNamedTag(java.lang.String n)
n
- The name of the tagpublic java.lang.String getName()
public boolean setName(java.lang.String n)
n
- The name.