public class RMParentShape extends RMShape
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
Constructor and Description |
---|
RMParentShape() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(RMShape aChild)
Adds the given child to the end of this shape's children list.
|
void |
addChild(RMShape aChild,
int anIndex)
Adds the given child to this shape's children list at the given index.
|
void |
addChild(RMShape aChild,
int anIndex,
java.lang.Object theLayoutInfo)
Adds the given child to this shape's children list at the given index.
|
void |
addChild(RMShape aChild,
java.lang.Object theConstr)
Adds the given child with the given constraints.
|
void |
bringShapesToFront(java.util.List<RMShape> shapes)
Moves the subset of children in the given list to the front of the children list.
|
RMParentShape |
clone()
Standard implementation of Object clone.
|
RMParentShape |
cloneDeep()
Clones all attributes of this shape with complete clones of its children as well.
|
RMShape |
divideShapeFromTop(double anAmount)
Divides the shape by a given amount from the top.
|
RMShape |
fromXML(XMLArchiver anArchiver,
XMLElement anElement)
XML unarchival generic - break fromXML into fromXMLShape and fromXMLShapeChildren.
|
RMRect |
getBoundsOfChildren()
Returns bounds of all children of this shape, which can sometimes differ from this shapes bounds.
|
RMShape |
getChild(int anIndex)
Returns the child at the given index.
|
RMShape[] |
getChildArray()
Returns a copy of the children as an array.
|
RMShape |
getChildContaining(RMPoint aPoint)
Returns the first (top) shape hit by the point given in this shape's coords.
|
int |
getChildCount()
Returns the number of children associated with this shape.
|
RMShape |
getChildLast()
Returns the last child of this shape.
|
java.util.List<RMShape> |
getChildren()
Returns the list of children associated with this shape.
|
java.util.List<RMShape> |
getChildrenIntersecting(RMPath aPath)
Returns the child shapes hit by the path given in this shape's coords.
|
<T extends RMShape> |
getChildrenWithClass(java.lang.Class<T> aClass)
Returns all the shapes in the shape hierarchy of a particular class.
|
<T extends RMShape> |
getChildrenWithClass(java.util.List aList,
java.lang.Class<T> aClass)
Adds all the shapes in the shape hierarchy of a particular class to the list.
|
<T> T |
getChildWithClass(java.lang.Class<T> aClass)
Returns first child found with the given class (called recursively on children if not found at current level).
|
RMShape |
getChildWithName(java.lang.String aName)
Returns first child found with the given name (called recursively on children if not found at current level).
|
RMShapeLayout |
getLayout()
Returns the layout for this shape.
|
boolean |
getNeedsLayout()
Returns whether children need to be laid out.
|
WebURL |
getSourceURL()
Returns the Source URL.
|
int |
indexOfChild(RMShape aChild)
Returns the index of the given child in this shape's children list.
|
boolean |
isSourceURLSet()
Returns whether Source URL is set.
|
void |
layout()
Does immediate layout of this shape and children (if invalid).
|
void |
relayout()
Sets shape layout to invalid and requests deferred layout.
|
RMShape |
removeChild(int anIndex)
Remove's the child at the given index from this shape's children list.
|
int |
removeChild(RMShape aChild)
Removes the given child from this shape's children list.
|
void |
removeChildren()
Removes all children from this shape (in reverse order).
|
RMShape |
rpgAll(ReportOwner anRptOwner,
RMShape aParent)
Generate report with report owner.
|
void |
sendShapesToBack(java.util.List<RMShape> shapes)
Moves the subset of children in the given list to the back of the children list.
|
void |
setHeight(double aValue)
Override to trigger layout.
|
void |
setLayout(RMShapeLayout aLayout)
Sets the layout for this shape.
|
void |
setNeedsLayout(boolean aValue)
Sets whether children need to be laid out.
|
void |
setSourceURL(WebURL aURL)
Sets the Source URL.
|
void |
setWidth(double aValue)
Override to trigger layout.
|
XMLElement |
toXML(XMLArchiver anArchiver)
XML Archival generic - break toXML into toXMLShape and toXMLShapeChildren.
|
acceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildAnimator, getClipShape, getColor, getDatasetEntity, getDatasetKey, 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, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isUnderlined, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShape, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, rpgBindings, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, 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, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeWidth, setTextColor, setTime, setUnderlined, setURL, setVisible, setX, setXY, setXY, setXYP, setY, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
public int getChildCount()
getChildCount
in class RMShape
public RMShape getChild(int anIndex)
public java.util.List<RMShape> getChildren()
getChildren
in class RMShape
public final void addChild(RMShape aChild)
public void addChild(RMShape aChild, int anIndex)
public final void addChild(RMShape aChild, java.lang.Object theConstr)
public final void addChild(RMShape aChild, int anIndex, java.lang.Object theLayoutInfo)
public RMShape removeChild(int anIndex)
public int removeChild(RMShape aChild)
public int indexOfChild(RMShape aChild)
public RMShape getChildLast()
public RMShape[] getChildArray()
public void removeChildren()
public RMRect getBoundsOfChildren()
public RMShape getChildWithName(java.lang.String aName)
public <T> T getChildWithClass(java.lang.Class<T> aClass)
public <T extends RMShape> java.util.List<T> getChildrenWithClass(java.lang.Class<T> aClass)
public <T extends RMShape> java.util.List<T> getChildrenWithClass(java.util.List aList, java.lang.Class<T> aClass)
public RMShapeLayout getLayout()
public void setLayout(RMShapeLayout aLayout)
public boolean isSourceURLSet()
public WebURL getSourceURL()
public void setSourceURL(WebURL aURL)
public boolean getNeedsLayout()
public void setNeedsLayout(boolean aValue)
public void relayout()
public void layout()
public void setWidth(double aValue)
public void setHeight(double aValue)
public RMShape getChildContaining(RMPoint aPoint)
public java.util.List<RMShape> getChildrenIntersecting(RMPath aPath)
public RMShape divideShapeFromTop(double anAmount)
divideShapeFromTop
in class RMShape
public void bringShapesToFront(java.util.List<RMShape> shapes)
public void sendShapesToBack(java.util.List<RMShape> shapes)
public RMShape rpgAll(ReportOwner anRptOwner, RMShape aParent)
public RMParentShape clone()
public RMParentShape cloneDeep()
public XMLElement toXML(XMLArchiver anArchiver)