Package com.reportmill.shape
Class RMSplitShape
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.shape.RMShape
- 
- com.reportmill.shape.RMSplitShape
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 - Direct Known Subclasses:
- RMTable
 
 public class RMSplitShape extends RMShape This shape subclass is like a JSplitPane for shapes. It holds a numer of horizontally stacked children with dividers between them and lets the user resize them and correctly moves adjacent rows.
- 
- 
Field Summary- 
Fields inherited from class com.reportmill.shape.RMShapeWRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMSplitShape()Creates a new unitialized split shape.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(RMShape child)Overrides shape method to incorporate a null title.voidaddChildWithTitle(RMShape child, java.lang.String title)Adds a child to the split shape with the associated title.voidarrangeChildren()Resets the location of children.booleancanBeUngrouped()Editor method - indicates that split shapes can't be ungrouped.booleanchildrenSuperSelectImmediately()Editor method - indicates that children should super select immediately when split shape is super selected.java.lang.Objectclone()Standard clone implementation.RMShapegetChildWithTitle(java.lang.String title)Returns a specific child with the given name.intgetResizeBarAtPoint(RMPoint aPoint)Returns the index of the resize bar that is hit by the given point.RMRectgetResizeBarBounds(int index)Returns the bounds rect of the resize bar for the child at the given index.java.lang.StringgetTitleForChild(RMShape aShape)Returns the title for a given child.java.lang.ObjectinitWithArchiver(RMArchiver anArchiver)Legacy unarchival.voidremoveChild(int anIndex)Overrides the shape method to also remove child from title map.voidsetHeightDeep(float value, boolean constrain)Overrides shape method to short circuit height deep propagation and reset children.voidsetWidthDeep(float value, boolean constrain)Overrides shape method to directly propagate to children (is this really needed?).booleansuperSelectable()Editor method - indicates that split shape is super selectable.- 
Methods inherited from class com.reportmill.shape.RMShapeacceptsChildren, acceptsDragKeys, acceptsFormat, acceptsMouse, addChild, addChildBelowLastChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copy, copyShape, delete, didChange, divideShapeFromEdge, divideShapeFromTop, dragExit, dragKeyAtPoint, dropKeyAtPoint, equals, fromXML, fromXMLDeep, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, getAutosizing, getBounds, getBoundsInside, getBoundsMarked, getBoundsOfChildren, getBoundsOfChildren, getBoundsSuperSelected, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWhoDraw, getChildrenWhoHitTest, getChildSortedByX, getChildWithClass, getChildWithName, getColor, getCommonAncestor, getDocument, getFill, getFill, getFill, getFillCount, getFills, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getGroupShape, getHeight, getHeightToFit, getImageFill, getLineWidth, getListKey, getListKeyDeep, getListKeyShape, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getOutline, getPageCount, getPageShape, getParent, getParentCount, getParents, getPath, getPathInBounds, getPropertyKey, getPropertyKeyCount, getPropertyKeyName, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getTextColor, getToolClassName, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getWidth, getWidthToFit, getX, getXY, getXYP, getY, groupShapes, hasPageBreaks, height, indexOf, indexOf, intersects, isAncestor, isDescendant, isLocked, isRoot, isUnderlined, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageBreakMax, pageBreakPageMax, pageMax, put, putPropertyKey, reclaimChildren, removeChild, removeChildren, removeChildren, removeFromParent, resolvePageReferences, rpgClone, rpgCloneBase, rpgCloneChildren, rpgCloneConclude, rpgCloneNotification, rpgClonePrepare, rpgClonePreprocess, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setCausesWrapType, setChildren, setColor, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHeightDeep, setHeightToFit, setLineWidth, setListKey, setLocked, setName, setNeedsRepaint, setNeedsRepaint, setOpacity, setOutline, setParent, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeDeep, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setTextColor, setTime, setUnderlined, setUrl, setWidth, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, toString, toXML, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, y
 - 
Methods inherited from class com.reportmill.base.RMObjectdidUndo, getAnimAttribute, getClassNameShort
 
- 
 
- 
- 
- 
Method Detail- 
getChildWithTitlepublic RMShape getChildWithTitle(java.lang.String title) Returns a specific child with the given name.
 - 
getTitleForChildpublic java.lang.String getTitleForChild(RMShape aShape) Returns the title for a given child.
 - 
addChildpublic void addChild(RMShape child) Overrides shape method to incorporate a null title.
 - 
addChildWithTitlepublic void addChildWithTitle(RMShape child, java.lang.String title) Adds a child to the split shape with the associated title.
 - 
removeChildpublic void removeChild(int anIndex) Overrides the shape method to also remove child from title map.- Overrides:
- removeChildin class- RMShape
 
 - 
arrangeChildrenpublic void arrangeChildren() Resets the location of children.
 - 
setWidthDeeppublic void setWidthDeep(float value, boolean constrain)Overrides shape method to directly propagate to children (is this really needed?).- Overrides:
- setWidthDeepin class- RMShape
 
 - 
setHeightDeeppublic void setHeightDeep(float value, boolean constrain)Overrides shape method to short circuit height deep propagation and reset children.- Overrides:
- setHeightDeepin class- RMShape
 
 - 
getResizeBarBoundspublic RMRect getResizeBarBounds(int index) Returns the bounds rect of the resize bar for the child at the given index.
 - 
getResizeBarAtPointpublic int getResizeBarAtPoint(RMPoint aPoint) Returns the index of the resize bar that is hit by the given point.
 - 
clonepublic java.lang.Object clone() Standard clone implementation.
 - 
initWithArchiverpublic java.lang.Object initWithArchiver(RMArchiver anArchiver) Legacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMShape
 
 - 
superSelectablepublic boolean superSelectable() Editor method - indicates that split shape is super selectable.- Overrides:
- superSelectablein class- RMShape
 
 - 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately() Editor method - indicates that children should super select immediately when split shape is super selected.- Overrides:
- childrenSuperSelectImmediatelyin class- RMShape
 
 - 
canBeUngroupedpublic boolean canBeUngrouped() Editor method - indicates that split shapes can't be ungrouped.- Overrides:
- canBeUngroupedin class- RMShape
 
 
- 
 
-