Package com.inductiveautomation.rm.shape
Class RMParentShape
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMListenerList
- 
- com.inductiveautomation.rm.base.RMObject
- 
- com.inductiveautomation.rm.shape.RMShape
- 
- com.inductiveautomation.rm.shape.RMParentShape
 
 
 
 
- 
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 - Direct Known Subclasses:
- JComponentShape,- ReportOwner.ShapeList,- RMAnimPathShape.RMAnimPathGroup,- RMCrossTab,- RMCrossTabFrame,- RMDocument,- RMFlowShape,- RMGraph,- RMGraphRPGBar.BarGraphShape2D,- RMLabel,- RMLabels,- RMLineShape,- RMNestedDoc,- RMPage,- RMPolygonShape,- RMScene3D,- RMSpringShape,- RMSwitchShape,- RMTable,- RMTableGroup,- RMTableRowRPG,- RMTableRPG,- RMViewerShape
 
 public class RMParentShape extends RMShape A shape implementation that can have children.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMParentShape()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(RMShape aChild)Adds the given child to the end of this shape's children list.voidaddChild(RMShape aChild, int anIndex)Adds the given child to this shape's children list at the given index.voidaddChild(RMShape aChild, int anIndex, java.lang.Object theLayoutInfo)Adds the given child to this shape's children list at the given index.voidaddChild(RMShape aChild, java.lang.Object theConstr)Adds the given child with the given constraints.protected voidaddLayoutChild(RMShape aShape)Adds a child to layout manager.voidbringShapesToFront(java.util.List<RMShape> shapes)Moves the subset of children in the given list to the front of the children list.RMParentShapeclone()Standard implementation of Object clone.RMParentShapecloneDeep()Clones all attributes of this shape with complete clones of its children as well.protected doublecomputePrefHeight(double aWidth)Returns the shape preferred height.protected doublecomputePrefWidth(double aHeight)Returns the shape preferred width.RMShapedivideShapeFromTop(double anAmount)Divides the shape by a given amount from the top.RMShapefromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival generic - break fromXML into fromXMLShape and fromXMLShapeChildren.protected voidfromXMLChildren(RXArchiver anArchiver, RXElement anElement)XML unarchival for shape children.protected voidfromXMLShape(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMRectgetBoundsOfChildren()Returns bounds of all children of this shape, which can sometimes differ from this shapes bounds.RMShapegetChild(int anIndex)Returns the child at the given index.RMShape[]getChildArray()Returns a copy of the children as an array.RMShapegetChildContaining(RMPoint aPoint)Returns the first (top) shape hit by the point given in this shape's coords.intgetChildCount()Returns the number of children associated with this shape.RMShapegetChildLast()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>
 java.util.List<T>getChildrenWithClass(java.lang.Class<T> aClass)Returns all the shapes in the shape hierarchy of a particular class.<T extends RMShape>
 java.util.List<T>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> TgetChildWithClass(java.lang.Class<T> aClass)Returns first child found with the given class (called recursively on children if not found at current level).RMShapegetChildWithName(java.lang.String aName)Returns first child found with the given name (called recursively on children if not found at current level).RMShapeLayoutgetLayout()Returns the layout for this shape.booleangetNeedsLayout()Returns whether children need to be laid out.WebURLgetSourceURL()Returns the Source URL.intindexOfChild(RMShape aChild)Returns the index of the given child in this shape's children list.protected booleanisHittable(RMShape aChild)Returns whether given child shape is hittable.protected booleanisShowing(RMShape aChild)Returns whether given child shape is showing in this parent.booleanisSourceURLSet()Returns whether Source URL is set.voidlayout()Does immediate layout of this shape and children (if invalid).protected voidlayoutChildren()Called to reposition/resize children.voidrelayout()Sets shape layout to invalid and requests deferred layout.RMShaperemoveChild(int anIndex)Remove's the child at the given index from this shape's children list.intremoveChild(RMShape aChild)Removes the given child from this shape's children list.voidremoveChildren()Removes all children from this shape (in reverse order).protected voidremoveLayoutChild(RMShape aShape)Removes a child from layout manager.RMShaperpgAll(ReportOwner anRptOwner, RMShape aParent)Generate report with report owner.protected RMShaperpgChildren(ReportOwner anRptOwner, RMParentShape aParent)Generate report with report owner.voidsendShapesToBack(java.util.List<RMShape> shapes)Moves the subset of children in the given list to the back of the children list.voidsetHeight(double aValue)Override to trigger layout.voidsetLayout(RMShapeLayout aLayout)Sets the layout for this shape.voidsetNeedsLayout(boolean aValue)Sets whether children need to be laid out.voidsetSourceURL(WebURL aURL)Sets the Source URL.voidsetWidth(double aValue)Override to trigger layout.RXElementtoXML(RXArchiver anArchiver)XML Archival generic - break toXML into toXMLShape and toXMLShapeChildren.protected voidtoXMLChildren(RXArchiver anArchiver, RXElement anElement)XML archival of children.protected RXElementtoXMLShape(RXArchiver anArchiver)XML Archival of basic shape.- 
Methods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, contains, 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, getBoundsMarked, getBoundsMarkedDeep, 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, getPath, 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, paintShape, paintShapeAll, paintShapeChildren, paintShapeOver, 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, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getChildCountpublic int getChildCount() Returns the number of children associated with this shape.- Overrides:
- getChildCountin class- RMShape
 
 - 
getChildpublic RMShape getChild(int anIndex) Returns the child at the given index.
 - 
getChildrenpublic java.util.List<RMShape> getChildren() Returns the list of children associated with this shape.- Overrides:
- getChildrenin class- RMShape
 
 - 
addChildpublic final void addChild(RMShape aChild) Adds the given child to the end of this shape's children list.
 - 
addChildpublic void addChild(RMShape aChild, int anIndex) Adds the given child to this shape's children list at the given index.
 - 
addChildpublic final void addChild(RMShape aChild, java.lang.Object theConstr) Adds the given child with the given constraints.
 - 
addChildpublic final void addChild(RMShape aChild, int anIndex, java.lang.Object theLayoutInfo) Adds the given child to this shape's children list at the given index.
 - 
removeChildpublic RMShape removeChild(int anIndex) Remove's the child at the given index from this shape's children list.
 - 
removeChildpublic int removeChild(RMShape aChild) Removes the given child from this shape's children list.
 - 
indexOfChildpublic int indexOfChild(RMShape aChild) Returns the index of the given child in this shape's children list.
 - 
getChildLastpublic RMShape getChildLast() Returns the last child of this shape.
 - 
getChildArraypublic RMShape[] getChildArray() Returns a copy of the children as an array.
 - 
removeChildrenpublic void removeChildren() Removes all children from this shape (in reverse order).
 - 
getBoundsOfChildrenpublic RMRect getBoundsOfChildren() Returns bounds of all children of this shape, which can sometimes differ from this shapes bounds.
 - 
getChildWithNamepublic RMShape getChildWithName(java.lang.String aName) Returns first child found with the given name (called recursively on children if not found at current level).
 - 
getChildWithClasspublic <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).
 - 
getChildrenWithClasspublic <T extends RMShape> java.util.List<T> getChildrenWithClass(java.lang.Class<T> aClass) Returns all the shapes in the shape hierarchy of a particular class.
 - 
getChildrenWithClasspublic <T extends RMShape> java.util.List<T> 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. Returns the list as a convenience.
 - 
getLayoutpublic RMShapeLayout getLayout() Returns the layout for this shape.
 - 
setLayoutpublic void setLayout(RMShapeLayout aLayout) Sets the layout for this shape.
 - 
isSourceURLSetpublic boolean isSourceURLSet() Returns whether Source URL is set.
 - 
getSourceURLpublic WebURL getSourceURL() Returns the Source URL.
 - 
setSourceURLpublic void setSourceURL(WebURL aURL) Sets the Source URL.
 - 
getNeedsLayoutpublic boolean getNeedsLayout() Returns whether children need to be laid out.
 - 
setNeedsLayoutpublic void setNeedsLayout(boolean aValue) Sets whether children need to be laid out.
 - 
relayoutpublic void relayout() Sets shape layout to invalid and requests deferred layout.
 - 
layoutpublic void layout() Does immediate layout of this shape and children (if invalid).
 - 
layoutChildrenprotected void layoutChildren() Called to reposition/resize children.
 - 
addLayoutChildprotected void addLayoutChild(RMShape aShape) Adds a child to layout manager.
 - 
removeLayoutChildprotected void removeLayoutChild(RMShape aShape) Removes a child from layout manager.
 - 
computePrefWidthprotected double computePrefWidth(double aHeight) Returns the shape preferred width.- Overrides:
- computePrefWidthin class- RMShape
 
 - 
computePrefHeightprotected double computePrefHeight(double aWidth) Returns the shape preferred height.- Overrides:
- computePrefHeightin class- RMShape
 
 - 
isShowingprotected boolean isShowing(RMShape aChild) Returns whether given child shape is showing in this parent.
 - 
isHittableprotected boolean isHittable(RMShape aChild) Returns whether given child shape is hittable.
 - 
setWidthpublic void setWidth(double aValue) Override to trigger layout.
 - 
setHeightpublic void setHeight(double aValue) Override to trigger layout.
 - 
getChildContainingpublic RMShape getChildContaining(RMPoint aPoint) Returns the first (top) shape hit by the point given in this shape's coords.
 - 
getChildrenIntersectingpublic java.util.List<RMShape> getChildrenIntersecting(RMPath aPath) Returns the child shapes hit by the path given in this shape's coords.
 - 
divideShapeFromToppublic RMShape divideShapeFromTop(double anAmount) Divides the shape by a given amount from the top. Returns a clone of the given shape with bounds set to the remainder. Divides children among the two shapes (recursively calling divide shape for those straddling).- Overrides:
- divideShapeFromTopin class- RMShape
 
 - 
bringShapesToFrontpublic void bringShapesToFront(java.util.List<RMShape> shapes) Moves the subset of children in the given list to the front of the children list.
 - 
sendShapesToBackpublic void sendShapesToBack(java.util.List<RMShape> shapes) Moves the subset of children in the given list to the back of the children list.
 - 
rpgAllpublic RMShape rpgAll(ReportOwner anRptOwner, RMShape aParent) Generate report with report owner.
 - 
rpgChildrenprotected RMShape rpgChildren(ReportOwner anRptOwner, RMParentShape aParent) Generate report with report owner.
 - 
clonepublic RMParentShape clone() Standard implementation of Object clone. Null's out shape's parent and children.
 - 
cloneDeeppublic RMParentShape cloneDeep() Clones all attributes of this shape with complete clones of its children as well.
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML Archival generic - break toXML into toXMLShape and toXMLShapeChildren.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMShape
 
 - 
toXMLShapeprotected RXElement toXMLShape(RXArchiver anArchiver) XML Archival of basic shape.
 - 
toXMLChildrenprotected void toXMLChildren(RXArchiver anArchiver, RXElement anElement) XML archival of children.
 - 
fromXMLpublic RMShape fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival generic - break fromXML into fromXMLShape and fromXMLShapeChildren.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMShape
 
 - 
fromXMLShapeprotected void fromXMLShape(RXArchiver anArchiver, RXElement anElement) XML unarchival.
 - 
fromXMLChildrenprotected void fromXMLChildren(RXArchiver anArchiver, RXElement anElement) XML unarchival for shape children.
 
- 
 
-