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 TypeMethodDescriptionvoidOverrides shape method to incorporate a null title.voidaddChildWithTitle(RMShape child, String title) Adds a child to the split shape with the associated title.voidResets the location of children.booleanEditor method - indicates that split shapes can't be ungrouped.booleanEditor 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.intgetResizeBarAtPoint(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.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?).booleanEditor 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, yMethods 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:
removeChildin 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:
setWidthDeepin classRMShape
-
setHeightDeep
public void setHeightDeep(float value, boolean constrain) Overrides shape method to short circuit height deep propagation and reset children.- Overrides:
setHeightDeepin 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:
initWithArchiverin interfaceRMArchiver.Archiving- Overrides:
initWithArchiverin classRMShape
-
superSelectable
public boolean superSelectable()Editor method - indicates that split shape is super selectable.- Overrides:
superSelectablein classRMShape
-
childrenSuperSelectImmediately
public boolean childrenSuperSelectImmediately()Editor method - indicates that children should super select immediately when split shape is super selected.- Overrides:
childrenSuperSelectImmediatelyin classRMShape
-
canBeUngrouped
public boolean canBeUngrouped()Editor method - indicates that split shapes can't be ungrouped.- Overrides:
canBeUngroupedin classRMShape
-