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.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
-
-
Constructor Summary
Constructors Constructor Description RMSplitShape()Creates a new unitialized split shape.
-
Method Summary
All 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.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
-
-
-
-
Method Detail
-
getChildWithTitle
public RMShape getChildWithTitle(java.lang.String title)
Returns a specific child with the given name.
-
getTitleForChild
public java.lang.String getTitleForChild(RMShape aShape)
Returns the title for a given child.
-
addChild
public void addChild(RMShape child)
Overrides shape method to incorporate a null title.
-
addChildWithTitle
public void addChildWithTitle(RMShape child, java.lang.String title)
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
public RMRect getResizeBarBounds(int index)
Returns the bounds rect of the resize bar for the child at the given index.
-
getResizeBarAtPoint
public int getResizeBarAtPoint(RMPoint aPoint)
Returns the index of the resize bar that is hit by the given point.
-
clone
public java.lang.Object clone()
Standard clone implementation.
-
initWithArchiver
public java.lang.Object initWithArchiver(RMArchiver anArchiver)
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
-
-