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
,Cloneable
- Direct Known Subclasses:
RMTable
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.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Overrides shape method to incorporate a null title.void
addChildWithTitle
(RMShape child, String title) Adds a child to the split shape with the associated title.void
Resets the location of children.boolean
Editor method - indicates that split shapes can't be ungrouped.boolean
Editor method - indicates that children should super select immediately when split shape is super selected.clone()
Standard clone implementation.getChildWithTitle
(String title) Returns a specific child with the given name.int
getResizeBarAtPoint
(RMPoint aPoint) Returns the index of the resize bar that is hit by the given point.getResizeBarBounds
(int index) Returns the bounds rect of the resize bar for the child at the given index.getTitleForChild
(RMShape aShape) Returns the title for a given child.initWithArchiver
(RMArchiver anArchiver) Legacy unarchival.void
removeChild
(int anIndex) Overrides the shape method to also remove child from title map.void
setHeightDeep
(float value, boolean constrain) Overrides shape method to short circuit height deep propagation and reset children.void
setWidthDeep
(float value, boolean constrain) Overrides shape method to directly propagate to children (is this really needed?).boolean
Editor method - indicates that split shape is super selectable.Methods inherited from class com.reportmill.shape.RMShape
acceptsChildren, 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.RMObject
didUndo, getAnimAttribute, getClassNameShort
-
Constructor Details
-
RMSplitShape
public RMSplitShape()Creates a new unitialized split shape.
-
-
Method Details
-
getChildWithTitle
Returns a specific child with the given name. -
getTitleForChild
Returns the title for a given child. -
addChild
Overrides shape method to incorporate a null title. -
addChildWithTitle
Adds a child to the split shape with the associated title. -
removeChild
public void removeChild(int anIndex) Overrides the shape method to also remove child from title map.- Overrides:
removeChild
in classRMShape
-
arrangeChildren
public void arrangeChildren()Resets the location of children. -
setWidthDeep
public void setWidthDeep(float value, boolean constrain) Overrides shape method to directly propagate to children (is this really needed?).- Overrides:
setWidthDeep
in classRMShape
-
setHeightDeep
public void setHeightDeep(float value, boolean constrain) Overrides shape method to short circuit height deep propagation and reset children.- Overrides:
setHeightDeep
in classRMShape
-
getResizeBarBounds
Returns the bounds rect of the resize bar for the child at the given index. -
getResizeBarAtPoint
Returns the index of the resize bar that is hit by the given point. -
clone
Standard clone implementation. -
initWithArchiver
Legacy unarchival.- Specified by:
initWithArchiver
in interfaceRMArchiver.Archiving
- Overrides:
initWithArchiver
in classRMShape
-
superSelectable
public boolean superSelectable()Editor method - indicates that split shape is super selectable.- Overrides:
superSelectable
in classRMShape
-
childrenSuperSelectImmediately
public boolean childrenSuperSelectImmediately()Editor method - indicates that children should super select immediately when split shape is super selected.- Overrides:
childrenSuperSelectImmediately
in classRMShape
-
canBeUngrouped
public boolean canBeUngrouped()Editor method - indicates that split shapes can't be ungrouped.- Overrides:
canBeUngrouped
in classRMShape
-