Package com.ribsapp.shapes
Class RJShape
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.shape.RMShape
- 
- com.ribsapp.shapes.RJShape
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- RMShapePainter.Paint,- RJMinMaxSizeSettable,- java.lang.Cloneable
 - Direct Known Subclasses:
- JProgressBarShape,- JScrollPaneShape,- JSeparatorShape,- JSliderShape,- JSpinnerShape,- JSplitPaneShape,- JTabbedPaneShape,- JTableShape,- JTreeShape,- RJColorDockShape,- RJColorWellShape,- RJCustomViewShape,- RJPanelShape,- RJSwitchPaneShape,- RJTextShape,- RJThumbWheelShape
 
 public class RJShape extends RMShape implements RMShapePainter.Paint, RJMinMaxSizeSettable An RMShape subclass to represent Swing components.
- 
- 
Field Summary- 
Fields inherited from class com.reportmill.shape.RMShapeWRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsDrag(java.awt.dnd.DropTargetDragEvent dragEvent)Implemented by shapes that can handle drag & dropjava.lang.Objectclone()Standard clone implementation.RMShapecloneDeep()For clone deep, lets just archive and unarchive component, and get shape hieracrhy from it.voiddragAtPoint(java.awt.dnd.DropTargetDragEvent dragEvent, RMPoint aPoint)Editor method - called by RBEditor when system does DnD over shape.voiddragExit()Editor method.voiddropAtPoint(java.awt.dnd.DropTargetDropEvent dropEvent, RMPoint aPoint)Editor method.voiddropKeyAtPoint(java.lang.String aKey, RMPoint aPoint)Editor method.booleanequals(java.lang.Object anObj)Standard equals implementation.RJPanelfindParentPanel()Walks up the shape hierarchy looking for the first ancestor of this shape which is an RJPanel.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.java.lang.StringgetAutosizing()Overrides shape implementation to propagate to component.javax.swing.border.BordergetBorder()Returns the Swing border for this shape.RMRectgetBoundsInsideInset()Returns the bounds of the shape in its own coordinate system, inset by the component's Insets, if it has any.RJShapegetChildRB(int anIndex)Returns the individual child at the given index as an RJShape.RMRectgetClipRect()Implemented by sublasses to specify clipping behavior.javax.swing.JComponentgetComponent()Returns the RJComponent represented by this shape.RMSizegetDefaultMaximumSize()Get the minimum/maximum size values from the component instead of the helper.RMSizegetDefaultMinimumSize()Get the minimum/maximum size values from the component instead of the helper.RMFontgetFont()Overrides shape implementation to propagate to component.java.awt.image.BufferedImagegetImage()Returns the image for this shape.RMSizegetMaximumSize()Returns component's maximum size as an RMSize.RMSizegetMinimumSize()Returns component's minimum size as an RMSize.java.lang.StringgetName()Returns the shape's component's name.java.lang.StringgetToolClassName()Editor method - indicates that linked text should use normal text inspector.java.lang.StringgetToolTipText()Returns the tool tip text associated with this shape's component.voidpaintImage(java.awt.Graphics2D g)Paints the shape component image with the given graphics.voidpaintImageOverkill(java.awt.Graphics2D g)Paints the shape component image into the given graphics in a manner more likely to always work.voidpaintShape(RMShapePainter aPainter, java.awt.Graphics2D g)Paints the shape.voidrecache()Resets the image represenation of this control to force it to recreate from component.voidrecacheDeep()Recache the entire shape tree (depth first).voidsetAutosizing(java.lang.String aValue)Overrides shape implementation to propagate to component.voidsetBorder(javax.swing.border.Border aBorder)Sets the Swing border for this shape.voidsetClipsChildren(boolean flag)Any shape can be set to clip to its bbox by calling setClipsChildren(true).voidsetComponent(javax.swing.JComponent aComponent)Sets the RJComponent represented by this shape.voidsetFill(RMFill aFill)Overrides shape implementation to propagate to component.voidsetFont(RMFont aFont)Overrides shape implementation to propagate to component.voidsetHeight(double aValue)Overrides shape implementation to propagate to component.voidsetMaximumSize(RMSize max)Set component's maximum size as an RMSizevoidsetMinimumSize(RMSize min)Set component's minimum size as an RMSize.voidsetName(java.lang.String aName)Sets the shape's component's name.voidsetToolTipText(java.lang.String aValue)Sets the tool tip text associated with this shape's component.voidsetWidth(double aValue)Overrides shape implementation to propagate to component.voidsetX(double aValue)Overrides shape implementation to propagate to component.voidsetY(double aValue)Overrides shape implementation to propagate to component.java.lang.Objectsuper_fromXML(RXArchiver anArchiver, RXElement anElement)Provides access to RMShape fromXML implementation.RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.reportmill.shape.RMShapeacceptsChildren, acceptsDragKeys, acceptsFormat, acceptsMouse, addChild, addChild, addChildBelowLastChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, canBeUngrouped, childrenSuperSelectImmediately, 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, 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, setWidthDeep, setWidthToFit, setXY, setXY, setXYP, sizesToFitChildren, superSelectable, toString, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, y
 - 
Methods inherited from class com.reportmill.base.RMObjectdidUndo, getAnimAttribute, getClassNameShort
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.ribsapp.shapes.RJMinMaxSizeSettablegetSize
 
- 
 
- 
- 
- 
Method Detail- 
getComponentpublic javax.swing.JComponent getComponent() Returns the RJComponent represented by this shape.
 - 
setComponentpublic void setComponent(javax.swing.JComponent aComponent) Sets the RJComponent represented by this shape.
 - 
getNamepublic java.lang.String getName() Returns the shape's component's name.
 - 
setNamepublic void setName(java.lang.String aName) Sets the shape's component's name.
 - 
setXpublic void setX(double aValue) Overrides shape implementation to propagate to component.
 - 
setYpublic void setY(double aValue) Overrides shape implementation to propagate to component.
 - 
setWidthpublic void setWidth(double aValue) Overrides shape implementation to propagate to component.
 - 
setHeightpublic void setHeight(double aValue) Overrides shape implementation to propagate to component.
 - 
setFillpublic void setFill(RMFill aFill) Overrides shape implementation to propagate to component.
 - 
getAutosizingpublic java.lang.String getAutosizing() Overrides shape implementation to propagate to component.- Overrides:
- getAutosizingin class- RMShape
 
 - 
setAutosizingpublic void setAutosizing(java.lang.String aValue) Overrides shape implementation to propagate to component.- Overrides:
- setAutosizingin class- RMShape
 
 - 
setMaximumSizepublic void setMaximumSize(RMSize max) Set component's maximum size as an RMSize- Specified by:
- setMaximumSizein interface- RJMinMaxSizeSettable
 
 - 
getMaximumSizepublic RMSize getMaximumSize() Returns component's maximum size as an RMSize.- Specified by:
- getMaximumSizein interface- RJMinMaxSizeSettable
 
 - 
setMinimumSizepublic void setMinimumSize(RMSize min) Set component's minimum size as an RMSize.- Specified by:
- setMinimumSizein interface- RJMinMaxSizeSettable
 
 - 
getMinimumSizepublic RMSize getMinimumSize() Returns component's minimum size as an RMSize.- Specified by:
- getMinimumSizein interface- RJMinMaxSizeSettable
 
 - 
getDefaultMinimumSizepublic RMSize getDefaultMinimumSize() Get the minimum/maximum size values from the component instead of the helper. If had been set previously, we'll get the last set value, otherwise it will return whatever the component's default is (on this L&F)- Specified by:
- getDefaultMinimumSizein interface- RJMinMaxSizeSettable
 
 - 
getDefaultMaximumSizepublic RMSize getDefaultMaximumSize() Get the minimum/maximum size values from the component instead of the helper. If had been set previously, we'll get the last set value, otherwise it will return whatever the component's default is (on this L&F)- Specified by:
- getDefaultMaximumSizein interface- RJMinMaxSizeSettable
 
 - 
getFontpublic RMFont getFont() Overrides shape implementation to propagate to component.
 - 
setFontpublic void setFont(RMFont aFont) Overrides shape implementation to propagate to component.
 - 
getBorderpublic javax.swing.border.Border getBorder() Returns the Swing border for this shape.
 - 
setBorderpublic void setBorder(javax.swing.border.Border aBorder) Sets the Swing border for this shape.
 - 
getToolTipTextpublic java.lang.String getToolTipText() Returns the tool tip text associated with this shape's component.
 - 
setToolTipTextpublic void setToolTipText(java.lang.String aValue) Sets the tool tip text associated with this shape's component.
 - 
getChildRBpublic RJShape getChildRB(int anIndex) Returns the individual child at the given index as an RJShape.
 - 
getBoundsInsideInsetpublic RMRect getBoundsInsideInset() Returns the bounds of the shape in its own coordinate system, inset by the component's Insets, if it has any.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.
 - 
clonepublic java.lang.Object clone() Standard clone implementation.
 - 
cloneDeeppublic RMShape cloneDeep() For clone deep, lets just archive and unarchive component, and get shape hieracrhy from it.
 - 
getClipRectpublic RMRect getClipRect() Implemented by sublasses to specify clipping behavior. Null (the default) indicates no clipping. Any other rect is interpreted as being in the parent's coordinate system.
 - 
setClipsChildrenpublic void setClipsChildren(boolean flag) Any shape can be set to clip to its bbox by calling setClipsChildren(true).
 - 
paintShapepublic void paintShape(RMShapePainter aPainter, java.awt.Graphics2D g) Paints the shape.- Specified by:
- paintShapein interface- RMShapePainter.Paint
 
 - 
getImagepublic java.awt.image.BufferedImage getImage() Returns the image for this shape.
 - 
recachepublic void recache() Resets the image represenation of this control to force it to recreate from component.
 - 
recacheDeeppublic void recacheDeep() Recache the entire shape tree (depth first).
 - 
paintImagepublic void paintImage(java.awt.Graphics2D g) Paints the shape component image with the given graphics.
 - 
paintImageOverkillpublic void paintImageOverkill(java.awt.Graphics2D g) Paints the shape component image into the given graphics in a manner more likely to always work.
 - 
getToolClassNamepublic java.lang.String getToolClassName() Editor method - indicates that linked text should use normal text inspector.- Overrides:
- getToolClassNamein class- RMShape
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.
 - 
super_fromXMLpublic java.lang.Object super_fromXML(RXArchiver anArchiver, RXElement anElement) Provides access to RMShape fromXML implementation.
 - 
acceptsDragpublic boolean acceptsDrag(java.awt.dnd.DropTargetDragEvent dragEvent) Implemented by shapes that can handle drag & drop
 - 
dragAtPointpublic void dragAtPoint(java.awt.dnd.DropTargetDragEvent dragEvent, RMPoint aPoint)Editor method - called by RBEditor when system does DnD over shape.
 - 
dropAtPointpublic void dropAtPoint(java.awt.dnd.DropTargetDropEvent dropEvent, RMPoint aPoint)Editor method.
 - 
dropKeyAtPointpublic void dropKeyAtPoint(java.lang.String aKey, RMPoint aPoint)Editor method.- Overrides:
- dropKeyAtPointin class- RMShape
 
 - 
findParentPanelpublic RJPanel findParentPanel() Walks up the shape hierarchy looking for the first ancestor of this shape which is an RJPanel.
 
- 
 
-