Package com.ribsapp.shapes
Class JSplitPaneShape
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.shape.RMShape
-
- com.ribsapp.shapes.RJShape
-
- com.ribsapp.shapes.JSplitPaneShape
-
- All Implemented Interfaces:
RMArchiver.Archiving,RMShapePainter.Paint,RJMinMaxSizeSettable,java.lang.Cloneable
public class JSplitPaneShape extends RJShape
Provides Ribs representation for viewing and editing JSplitPanes.
-
-
Field Summary
-
Fields inherited from class com.reportmill.shape.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
-
-
Constructor Summary
Constructors Constructor Description JSplitPaneShape()Creates a new splitpane shape.JSplitPaneShape(javax.swing.JComponent aComponent)Creates a new splitpane shape.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchildrenSuperSelectImmediately()Overrides default implementation to indicate children should super select immediately.RJShapegetBottomShape()RJShapegetLeftShape()intgetOrientation()returns one of the JSplitPane constants HORIZONTAL_SPLIT or VERTICAL_SPLITRJShapegetRightShape()javax.swing.JSplitPanegetSplitPane()Returns the splitpane shape's splitpane.RJShapegetTopShape()Specific methods to return each child as the Tool created themvoidpaintImage(java.awt.Graphics2D g)Overrides default implementation to do brute force painting.voidsetDividerLocation(int loc)Set the dividerLocation of the Component and resize childrenvoidsetHeightDeep(float h, boolean constrain)Sizing methods to handle three child components appropriatelyvoidsetHorizontalDividerLocation(int loc)Set the dividerLocation of a horizontal splitpane and resize childrenvoidsetVerticalDividerLocation(int loc)Set the dividerLocation of a horizontal splitpane and resize childrenvoidsetWidthDeep(float w, boolean constrain)Sets the width of this shape and its children (proportionally using their autosizing).booleansuperSelectable()Overrides default implementation to indicate that this shape can be super selected.-
Methods inherited from class com.ribsapp.shapes.RJShape
acceptsDrag, clone, cloneDeep, dragAtPoint, dragExit, dropAtPoint, dropKeyAtPoint, equals, findParentPanel, fromXML, getAutosizing, getBorder, getBoundsInsideInset, getChildRB, getClipRect, getComponent, getDefaultMaximumSize, getDefaultMinimumSize, getFont, getImage, getMaximumSize, getMinimumSize, getName, getToolClassName, getToolTipText, paintImageOverkill, paintShape, recache, recacheDeep, setAutosizing, setBorder, setClipsChildren, setComponent, setFill, setFont, setHeight, setMaximumSize, setMinimumSize, setName, setToolTipText, setWidth, setX, setY, super_fromXML, toXML
-
Methods inherited from class com.reportmill.shape.RMShape
acceptsChildren, acceptsDragKeys, acceptsFormat, acceptsMouse, addChild, addChild, addChildBelowLastChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, canBeUngrouped, 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, dragKeyAtPoint, fromXMLDeep, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, 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, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getGroupShape, getHeight, getHeightToFit, getImageFill, getLineWidth, getListKey, getListKeyDeep, getListKeyShape, getMaxX, getMaxY, 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, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getWidth, getWidthToFit, getX, getXY, getXYP, getY, groupShapes, hasPageBreaks, height, indexOf, indexOf, initWithArchiver, intersects, isAncestor, isDescendant, isLocked, isRoot, isUnderlined, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageBreakMax, pageBreakPageMax, pageMax, put, putPropertyKey, reclaimChildren, removeChild, removeChild, removeChildren, removeChildren, removeFromParent, resolvePageReferences, rpgClone, rpgCloneBase, rpgCloneChildren, rpgCloneConclude, rpgCloneNotification, rpgClonePrepare, rpgClonePreprocess, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setBounds, setBounds, setCausesWrapType, setChildren, setColor, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeightDeep, setHeightToFit, setLineWidth, setListKey, setLocked, setNeedsRepaint, setNeedsRepaint, setOpacity, setOutline, setParent, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeDeep, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setTextColor, setTime, setUnderlined, setUrl, setWidthDeep, setWidthToFit, setXY, setXY, setXYP, sizesToFitChildren, toString, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, y
-
Methods inherited from class com.reportmill.base.RMObject
didUndo, getAnimAttribute, getClassNameShort
-
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ribsapp.shapes.RJMinMaxSizeSettable
getSize
-
-
-
-
Method Detail
-
getSplitPane
public javax.swing.JSplitPane getSplitPane()
Returns the splitpane shape's splitpane.
-
superSelectable
public boolean superSelectable()
Overrides default implementation to indicate that this shape can be super selected.- Overrides:
superSelectablein classRMShape
-
childrenSuperSelectImmediately
public boolean childrenSuperSelectImmediately()
Overrides default implementation to indicate children should super select immediately.- Overrides:
childrenSuperSelectImmediatelyin classRMShape
-
paintImage
public void paintImage(java.awt.Graphics2D g)
Overrides default implementation to do brute force painting.- Overrides:
paintImagein classRJShape
-
getTopShape
public RJShape getTopShape()
Specific methods to return each child as the Tool created them
-
getBottomShape
public RJShape getBottomShape()
-
getLeftShape
public RJShape getLeftShape()
-
getRightShape
public RJShape getRightShape()
-
getOrientation
public int getOrientation()
returns one of the JSplitPane constants HORIZONTAL_SPLIT or VERTICAL_SPLIT
-
setHeightDeep
public void setHeightDeep(float h, boolean constrain)Sizing methods to handle three child components appropriately- Overrides:
setHeightDeepin classRMShape
-
setWidthDeep
public void setWidthDeep(float w, boolean constrain)Description copied from class:RMShapeSets the width of this shape and its children (proportionally using their autosizing).- Overrides:
setWidthDeepin classRMShape
-
setDividerLocation
public void setDividerLocation(int loc)
Set the dividerLocation of the Component and resize children
-
setHorizontalDividerLocation
public void setHorizontalDividerLocation(int loc)
Set the dividerLocation of a horizontal splitpane and resize children
-
setVerticalDividerLocation
public void setVerticalDividerLocation(int loc)
Set the dividerLocation of a horizontal splitpane and resize children
-
-