public class RMAnimPathShape extends RMPolygonShape
By being an RMPolygon subclass, this class inherits all the path editing behavior of the polygon. Unlike the base polygon, however, this shape always has 1 or more children. The children shapes will be positioned and oriented at _distance along the path.
| Modifier and Type | Class and Description |
|---|---|
static class |
RMAnimPathShape.RMAnimPathGroup
A shape subclass that adds the ability to be rotated about an arbitrary point.
|
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignYBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE| Constructor and Description |
|---|
RMAnimPathShape()
Creates a new RMAnimPathShape.
|
RMAnimPathShape(RMShape aShape)
Creates an animpath shape from another shape.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(RMShape aChild,
int anIndex)
Override add child to handle animated child shape special
|
RMAnimPathShape |
clone()
Standard clone implementation.
|
boolean |
contains(RMPoint aPoint)
Overridden to just reflect bounds of anim child.
|
protected void |
fromXMLShape(RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
RMShape |
getAnimChild()
Returns the animated child shape.
|
RMRect |
getBoundsMarked()
Overridden to just reflect bounds of anim child.
|
RMRect |
getBoundsMarkedDeep()
Overridden to just reflect bounds of anim child.
|
int |
getChildOrigin()
Returns the child origin.
|
float |
getDistance()
Returns distance along the path where children are positioned.
|
boolean |
getPreservesOrientation()
Returns whether the children will have their rotation adjusted as they move along the path.
|
RMLine[] |
getSegments()
Builds the segment list and caches it
|
float |
getTotalLength()
Returns the actual total arclength of the curve.
|
void |
paintShape(RMShapePainter aPntr)
Overridden to skip painting at preview time and to paint stroke (anim path) under child.
|
void |
paintShapeOver(RMShapePainter aPntr)
Overridden to skip painting stroke on top.
|
void |
pathChanged()
Called by the tool when the path has been changed.
|
void |
positionChildren()
PositionChildren
|
void |
setAnimChild(RMShape aChild)
Sets the shape which will be positioned along the path
|
void |
setChildOrigin(int aValue)
Sets child origin.
|
void |
setDistance(float aValue)
Sets distance along path to position children.
|
void |
setHeight(double aValue)
Overridden to mark the path dirty.
|
void |
setPath(RMPath aPath)
Overridden to mark the path dirty
|
void |
setPreservesOrientation(boolean aValue)
Sets whether the children's rotation should get adjusted as they move along the path.
|
void |
setWidth(double aValue)
Overridden to mark the path dirty.
|
protected RXElement |
toXMLShape(RXArchiver anArchiver)
XML archival.
|
getPath, getPathTransform, resetPath, superSelectableaddChild, addChild, addChild, addLayoutChild, bringShapesToFront, cloneDeep, computePrefHeight, computePrefWidth, divideShapeFromTop, fromXML, fromXMLChildren, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, layoutChildren, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgAll, rpgChildren, sendShapesToBack, setLayout, setNeedsLayout, setSourceURL, toXML, toXMLChildrenacceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getChildAnimator, getChildAnimator, getChildClipShape, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDeletable, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgBindings, rpgShape, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, yaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListenerpublic RMAnimPathShape()
public RMAnimPathShape(RMShape aShape)
public RMShape getAnimChild()
public void setAnimChild(RMShape aChild)
public void addChild(RMShape aChild, int anIndex)
addChild in class RMParentShapepublic RMRect getBoundsMarked()
getBoundsMarked in class RMShapepublic RMRect getBoundsMarkedDeep()
getBoundsMarkedDeep in class RMShapepublic boolean contains(RMPoint aPoint)
public RMAnimPathShape clone()
clone in class RMPolygonShapepublic void paintShape(RMShapePainter aPntr)
paintShape in class RMPolygonShapepublic void paintShapeOver(RMShapePainter aPntr)
paintShapeOver in class RMShapepublic float getDistance()
setDistance(float)public void setDistance(float aValue)
public float getTotalLength()
public boolean getPreservesOrientation()
setPreservesOrientation(boolean)public void setPreservesOrientation(boolean aValue)
public int getChildOrigin()
public void setChildOrigin(int aValue)
public void pathChanged()
public void setWidth(double aValue)
setWidth in class RMParentShapepublic void setHeight(double aValue)
setHeight in class RMParentShapepublic void setPath(RMPath aPath)
setPath in class RMPolygonShapepublic RMLine[] getSegments()
public void positionChildren()
protected RXElement toXMLShape(RXArchiver anArchiver)
toXMLShape in class RMPolygonShapeprotected void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
fromXMLShape in class RMPolygonShape