public class RJShape extends RMShape implements RMShapePainter.Paint, RJMinMaxSizeSettable
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
Constructor and Description |
---|
RJShape()
Creates a new RJShape.
|
RJShape(javax.swing.JComponent aComponent)
Creates a new RJShape for the given component.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsDrag(java.awt.dnd.DropTargetDragEvent dragEvent)
Implemented by shapes that can handle drag & drop
|
java.lang.Object |
clone()
Standard clone implementation.
|
RMShape |
cloneDeep()
For clone deep, lets just archive and unarchive component, and get shape hieracrhy from it.
|
void |
dragAtPoint(java.awt.dnd.DropTargetDragEvent dragEvent,
RMPoint aPoint)
Editor method - called by RBEditor when system does DnD over shape.
|
void |
dragExit()
Editor method.
|
void |
dropAtPoint(java.awt.dnd.DropTargetDropEvent dropEvent,
RMPoint aPoint)
Editor method.
|
void |
dropKeyAtPoint(java.lang.String aKey,
RMPoint aPoint)
Editor method.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
RJPanel |
findParentPanel()
Walks up the shape hierarchy looking for the first ancestor of this
shape which is an RJPanel.
|
java.lang.Object |
fromXML(RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
java.lang.String |
getAutosizing()
Overrides shape implementation to propagate to component.
|
javax.swing.border.Border |
getBorder()
Returns the Swing border for this shape.
|
RMRect |
getBoundsInsideInset()
Returns the bounds of the shape in its own coordinate system, inset by the component's Insets, if it has any.
|
RJShape |
getChildRB(int anIndex)
Returns the individual child at the given index as an RJShape.
|
RMRect |
getClipRect()
Implemented by sublasses to specify clipping behavior.
|
javax.swing.JComponent |
getComponent()
Returns the RJComponent represented by this shape.
|
RMSize |
getDefaultMaximumSize()
Get the minimum/maximum size values from the component instead of the helper.
|
RMSize |
getDefaultMinimumSize()
Get the minimum/maximum size values from the component instead of the helper.
|
RMFont |
getFont()
Overrides shape implementation to propagate to component.
|
java.awt.image.BufferedImage |
getImage()
Returns the image for this shape.
|
RMSize |
getMaximumSize()
Returns component's maximum size as an RMSize.
|
RMSize |
getMinimumSize()
Returns component's minimum size as an RMSize.
|
java.lang.String |
getName()
Returns the shape's component's name.
|
java.lang.String |
getToolClassName()
Editor method - indicates that linked text should use normal text inspector.
|
java.lang.String |
getToolTipText()
Returns the tool tip text associated with this shape's component.
|
void |
paintImage(java.awt.Graphics2D g)
Paints the shape component image with the given graphics.
|
void |
paintImageOverkill(java.awt.Graphics2D g)
Paints the shape component image into the given graphics in a manner more likely to always work.
|
void |
paintShape(RMShapePainter aPainter,
java.awt.Graphics2D g)
Paints the shape.
|
void |
recache()
Resets the image represenation of this control to force it to recreate from component.
|
void |
recacheDeep()
Recache the entire shape tree (depth first).
|
void |
setAutosizing(java.lang.String aValue)
Overrides shape implementation to propagate to component.
|
void |
setBorder(javax.swing.border.Border aBorder)
Sets the Swing border for this shape.
|
void |
setClipsChildren(boolean flag)
Any shape can be set to clip to its bbox by calling setClipsChildren(true).
|
void |
setComponent(javax.swing.JComponent aComponent)
Sets the RJComponent represented by this shape.
|
void |
setFill(RMFill aFill)
Overrides shape implementation to propagate to component.
|
void |
setFont(RMFont aFont)
Overrides shape implementation to propagate to component.
|
void |
setHeight(double aValue)
Overrides shape implementation to propagate to component.
|
void |
setMaximumSize(RMSize max)
Set component's maximum size as an RMSize
|
void |
setMinimumSize(RMSize min)
Set component's minimum size as an RMSize.
|
void |
setName(java.lang.String aName)
Sets the shape's component's name.
|
void |
setToolTipText(java.lang.String aValue)
Sets the tool tip text associated with this shape's component.
|
void |
setWidth(double aValue)
Overrides shape implementation to propagate to component.
|
void |
setX(double aValue)
Overrides shape implementation to propagate to component.
|
void |
setY(double aValue)
Overrides shape implementation to propagate to component.
|
java.lang.Object |
super_fromXML(RXArchiver anArchiver,
RXElement anElement)
Provides access to RMShape fromXML implementation.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
acceptsChildren, 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
didUndo, getAnimAttribute, getClassNameShort
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSize
public RJShape()
public RJShape(javax.swing.JComponent aComponent)
public javax.swing.JComponent getComponent()
public void setComponent(javax.swing.JComponent aComponent)
public java.lang.String getName()
public void setName(java.lang.String aName)
public void setX(double aValue)
public void setY(double aValue)
public void setWidth(double aValue)
public void setHeight(double aValue)
public void setFill(RMFill aFill)
public java.lang.String getAutosizing()
getAutosizing
in class RMShape
public void setAutosizing(java.lang.String aValue)
setAutosizing
in class RMShape
public void setMaximumSize(RMSize max)
setMaximumSize
in interface RJMinMaxSizeSettable
public RMSize getMaximumSize()
getMaximumSize
in interface RJMinMaxSizeSettable
public void setMinimumSize(RMSize min)
setMinimumSize
in interface RJMinMaxSizeSettable
public RMSize getMinimumSize()
getMinimumSize
in interface RJMinMaxSizeSettable
public RMSize getDefaultMinimumSize()
getDefaultMinimumSize
in interface RJMinMaxSizeSettable
public RMSize getDefaultMaximumSize()
getDefaultMaximumSize
in interface RJMinMaxSizeSettable
public RMFont getFont()
public void setFont(RMFont aFont)
public javax.swing.border.Border getBorder()
public void setBorder(javax.swing.border.Border aBorder)
public java.lang.String getToolTipText()
public void setToolTipText(java.lang.String aValue)
public RJShape getChildRB(int anIndex)
public RMRect getBoundsInsideInset()
public boolean equals(java.lang.Object anObj)
public java.lang.Object clone()
public RMShape cloneDeep()
public RMRect getClipRect()
public void setClipsChildren(boolean flag)
public void paintShape(RMShapePainter aPainter, java.awt.Graphics2D g)
paintShape
in interface RMShapePainter.Paint
public java.awt.image.BufferedImage getImage()
public void recache()
public void recacheDeep()
public void paintImage(java.awt.Graphics2D g)
public void paintImageOverkill(java.awt.Graphics2D g)
public java.lang.String getToolClassName()
getToolClassName
in class RMShape
public RXElement toXML(RXArchiver anArchiver)
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
public java.lang.Object super_fromXML(RXArchiver anArchiver, RXElement anElement)
public boolean acceptsDrag(java.awt.dnd.DropTargetDragEvent dragEvent)
public void dragAtPoint(java.awt.dnd.DropTargetDragEvent dragEvent, RMPoint aPoint)
public void dropAtPoint(java.awt.dnd.DropTargetDropEvent dropEvent, RMPoint aPoint)
public void dropKeyAtPoint(java.lang.String aKey, RMPoint aPoint)
dropKeyAtPoint
in class RMShape
public RJPanel findParentPanel()