Package com.inductiveautomation.rm.shape
Class RMShape
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.shape.RMShape
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- PropertyChangeListener,- Cloneable,- EventListener
- Direct Known Subclasses:
- AbstractJ2DShape,- RMGraphPartBars,- RMGraphPartPie,- RMGraphPartSeries,- RMMorphShape,- RMOvalShape,- RMPainterShape,- RMParentShape,- RMRectShape,- RMShapeTable.STCell,- RMSoundShape,- RMStarShape
public class RMShape
extends RMObject
implements PropertyChangeListener, DeepChangeListener, RMTypes, Archivable
This class is the basis for all graphic elements in a ReportMill document. You'll rarely use this class directly,
 however, it encapsulates all the basic shape attributes and the most common methods used in template manipulation,
 like setX(), setY(), setWidth(), setColor(), etc.
 
Here's an example of programatically adding a watermark to a document:
RMFont font = RMFont.getFont("Arial Bold", 72); RMColor color = new RMColor(.9f, .9f, .9f); RMXString string = new RMXString("REPORTMILL", font, color); RMText shape = new RMText(string); myDocument.getPage(0).addChild(shape); shape.setBounds(36, 320, 540, 140); shape.setRoll(45); shape.setOpacity(.667f);
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringName of property change fired when binding configuration is changedstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanEditor method.booleanReturns whether shape accepts mouse events.voidaddBinding(Binding aBinding) Adds the individual binding to the shape's bindings list.voidaddBinding(String aPropName, String aKey) Adds a binding for given name and key.voidaddDeepChangeListener(DeepChangeListener aListener) Adds a deep change listener to shape to listen for shape changes and property changes received by shape.voidaddMouseListener(RMShapeMouseListener aListener) Add mouse listener.voidanimUpdate(PropertyChangeEvent anEvent) Called to update shape anim.bounds()Returns raw x, y, width and height of shape as rect (preserves possible negative sizes).booleanEditor method.clone()Standard implementation of Object clone.Clones all attributes of this shape with complete clones of its children as well.protected doublecomputePrefHeight(double aWidth) Computes the preferred height for given width.protected doublecomputePrefWidth(double aHeight) Computes the preferred width for given height.booleanReturns whether this shape is hit by the point, given in this shape's parent's coords.convertedPointFromShape(RMPoint aPoint, RMShape aShape) Returns the given point converted from the given shape's coords.convertedPointToShape(RMPoint aPoint, RMShape aShape) Returns the given point converted to the given shape's coords.convertedRectFromShape(RMRect aRect, RMShape aShape) Returns the rect encompassing the given rect converted from the given shape's coords.convertedRectToShape(RMRect aRect, RMShape aShape) Returns the rect encompassing the given rect converted to the given shape's coords.convertedVectorFromShape(RMSize aSize, RMShape aShape) Returns the given size converted from the given shape's coords and normalized.convertedVectorToShape(RMSize aSize, RMShape aShape) Returns the given size converted to the given shape's coords and normalized.voidconvertFromShape(RMShape aShape) Transforms the given shape from this shape's coords.convertPathFromShape(RMPath aPath, RMShape aShape) Returns the given path converted from the given shape's coords.convertPathToShape(RMPath aPath, RMShape aShape) Returns the given path converted to the given shape's coords.convertPointFromShape(RMPoint point, RMShape shape) Converts the given point to the given shape's coords (returns it for convenience).convertPointToShape(RMPoint point, RMShape shape) Converts the given point to the given shape's coords (returns it for convenience).convertRectFromShape(RMRect rect, RMShape shape) Converts the given rect from the given shape's coords (returns it for convenience).convertRectToShape(RMRect rect, RMShape shape) Converts the given rect to the given shape's coords (returns it for convenience).voidconvertToShape(RMShape aShape) Transforms the given shape to this shape's coords.convertVectorFromShape(RMSize size, RMShape shape) Converts the given size (as a vector) from the given shape's coords (returns it for convenience).convertVectorToShape(RMSize size, RMShape shape) Converts the given size (as a vector) to the given shape's coords (returns it for convenience).voidCopies basic shape attributes from given RMShape (location, size, fill, stroke, roll, scale, name, url, etc.).protected RMShapecreateDivideShapeRemainder(byte anEdge) Creates a shape suitable for the "remainder" portion of a divideShape call (just a clone by default).voiddeepChange(PropertyChangeListener aListener, PropertyChangeEvent anEvent) Deep property change listener implementation.divideShapeFromEdge(double anAmount, byte anEdge, RMShape aNewShape) Divides the shape by a given amount from the given edge.divideShapeFromTop(double anAmount) Divides the shape by a given amount from the top.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the Object associated with the given name for the shape.Returns the object associated with given key, using the given default if not found.Returns the alignment.Returns the horizontal alignment.Returns the vertical alignment.getAncestor(int anIndex) Returns the ancestor at the given index (parent is ancestor 0).intReturns the number of ancestors (from this shape's parent up to the document).getAncestorInCommon(RMShape aShape) Returns first ancestor that the given shape and this shape have in common.Returns the animator that this shape registers changes with.getAnimator(boolean create) Returns the animator that this shape registers changes with (creating, if requested and currently null).Returns the autosizing settings as a string with hyphens for struts and tilde for springs (horiz,vert).Returns the autosizing default.doubleReturns the best height for current width.doublegetBestHeight(double aValue) Returns the best height for current width.doubleReturns the best width for current height.doublegetBestWidth(double aValue) Returns the best width for current height.getBinding(int anIndex) Returns the individual binding at the given index.getBinding(String aPropertyName) Returns the individual binding with the given property name.intReturns the number of bindings associated with shape.getBindings(boolean doCreate) Returns the list of bindings, with an option to create if missing.Returns the X, Y, width and height of the shape as a rect (use getFrame if shape has roll/scale/skew).Returns the bounds of the shape in the shape's own coords.Returns the bounds of the path associated with this shape in local coords, adjusted to account for stroke width.Returns the marked bounds of this shape and its children.getChild(int anIndex) Returns the child at given index.Returns the animator that this shape's children use.getChildAnimator(boolean create) Returns the animator that this shape's children use (creating, if requested and currently null).Returns clip shape to be used for children.intReturns the child count.Returns the children list.Returns clip shape for shape.getColor()Returns the color of the shape.Returns the dash array for this stroke as a string.floatReturns the dash phase.Returns the entity this shape should show in keys browser.Returns the dataset key associated with this shape.Returns the RMDocument ancestor of this shape (or null if not there).Returns the effect for this shape.getEventAdapter(boolean doCreate) Returns the ShapeEventAdapter for this shape.getFill()Returns the fill for this shape.getFont()Returns the font for the shape (defaults to parent font).Returns the format for the shape.getFrame()Returns the rect in parent coords that fully encloses the shape.doubleReturns the height of the rect that fully encloses the shape in parent coords.doubleReturns the max X of the shape's frame.doubleReturns the max Y of the shape's frame.doubleReturns the width of the rect that fully encloses the shape in parent coords.doubleReturns the X of the rect that fully encloses the shape in parent coords.Returns the origin of the shape's bounds rect in parent coords.doubleReturns the Y of the rect that fully encloses the shape in parent coords.doubleReturns the height of the shape.getHover()Sets the Hover string for the shape.Returns an object describing layout paramaters of this shape in its parent's layout.Returns the outline of the shape as a path.doublegetMaxX()Returns the max X of the shape (assumes not rotated, scaled or skewed).doublegetMaxY()Returns the max Y of the shape (assumes not rotated, scaled or skewed).doubleReturns the shape minimum height.doublegetMinHeight(double aValue) Returns the shape minimum height.doubleReturns the shape minimum width.doublegetMinWidth(double aValue) Returns the shape minimum width.getName()Returns the name for the shape.floatReturns the opacity of the shape (1 for opaque, 0 for transparent).floatReturns the combined opacity of this shape and its parent.Returns the outline for the shape.intReturns the "PageBreak" for this shape as defined by shapes that define a page break (currently only RMTable).intReturns the "PageBreakMax" for this shape as defined by shapes that define a page break (currently only RMTable).intReturns the "PageBreakPage" for this shape, or the page number relative to the last page break, as defined by shapes that define explicit page breaks (currently only RMTable).intReturns the "PageBreakPageMax" for this shape, or the max page number relative to the last and next page breaks, as defined by shapes that define explicit page breaks (currently only RMTable).Returns the RMPage ancestor of this shape (or null if not there).Returns the parent of this shape.<T extends RMShape>
 TReturns the first parent with given class by iterating up parent hierarchy.getPath()Returns the shape's path.Returns the shape's path scaled to the shape's current bounds.doubleReturns the shape preferred height.doublegetPrefHeight(double aValue) Returns the shape preferred height.doubleReturns the shape preferred width.doublegetPrefWidth(double aValue) Returns the shape preferred width.getPropertyNameMapped(String aName) Returns a mapped property name.Returns the property names for helper's instance class.protected voidgetPropertyNames(List<String> aList) Returns the property names for RMShape.doublegetRoll()Returns the roll of the shape.Returns the top level shape (usually an RMDocument).protected RMShapeRSSgetRSS()Returns the roll scale skew object.doubleReturns the scale of the X axis of the shape.doubleReturns the scale of the Y axis of the shape.getShapesToAncestor(RMShape aShape) Returns a list of shapes from this shape to a given ancestor, inclusive.getShapesToDescendant(RMShape aShape) Returns a list of shape's from this shape to given descendant, inclusive.getShapesToShape(RMShape aShape) Returns a list of shapes from this shape to given shape.getSize()Returns the size of the shape.doublegetSkewX()Returns the skew of the X axis of the shape.doublegetSkewY()Returns the skew of the Y axis of the shape.Returns the stroke for this shape.Returns the stroke color of the shape.booleanReturns whether to stroke on top.intfloatReturns the stroke width of the shape's stroke in printer points.Returns the text color for the shape.Returns the timeline for animating shape property changes.getTimeline(boolean create) Returns the timeline for animating shape property changes, with an option to create if absent.Returns the transform to this shape from its parent.getTransformFromShape(RMShape aShape) Returns the transform from the given shape to this shape.Returns the transform from this shape to its parent.getTransformToShape(RMShape aShape) Returns the transform from this shape to the given shape.Returns the undoer for this shape (or null if not there).getURL()Sets the URL for the shape.Returns the visible bounds in shape coords, by intersecting this shape's bounds with ancester clip and child clip.getVisibleBounds(RMRect aRect) Returns the visible bounds of given rect in shape coords, by intersecting rect with ancester clip and child clip.getVisibleBounds(RMRect aRect, RMShape anAncestor) Returns the visible bounds of given rect in given ancestor coords, by intersecting the rect with ancester clip and child clip.getVisibleBounds(RMShape anAncestor) Returns the visible bounds in given ancestor coords, by intersecting this shape's bounds with ancester clip and child clip.doublegetWidth()Returns the width of the shape.doublegetX()Returns the X location of the shape.getXY()Returns the XY location of the shape as a point.getXYP()Returns the origin point of the shape in parent's coords.doublegetY()Returns the Y location of the shape.doubleheight()Returns raw height of shape.intindexOf()Returns the index of this child in its parent.booleanintersects(RMPath aPath) Returns whether this shape is hit by the path, given in this shape's parent's coords.booleanisAncestor(RMShape aShape) Returns true if given shape is one of this shape's ancestors.booleanisAnimProperty(String aPropertyName) Returns whether given property name is anim property.booleanOverride this for shapes (like a table row) that don't don't make sense to delete by themselves.booleanisDescendant(RMShape aShape) Returns true if given shape is one of this shape's descendants.booleanReturns whether this shape is being edited in an editor.booleanisEnabled(UIEvent.Type aType) Returns whether given event is enabled.booleanReturns whether font has been set.booleanReturns whether this shape is hittable in its parent.booleanisLocked()Returns the locked state of the shape (really just to prevent location/size changes in the editor).booleanReturns whether shape minimum height is set.booleanReturns whether shape minimum width is set.booleanReturns whether shape preferred height is set.booleanReturns whether shape preferred width is set.booleanisRoot()Editor method - returns whether this shape is at the top level (usually RMPage).booleanisRSS()Returns whether the shape has been rotated, scaled or skewed (for efficiency).booleanReturns whether this shape is visible in its parent.booleanReturns whether the shape is underlined.booleanbooleanbooleanReturns whether this shape is being viewed in a viewer.booleanReturns whether this shape is visible.voidmouseClicked(RMShapeMouseEvent anEvent) Handles mouse clicked events.voidmouseDragged(RMShapeMouseEvent anEvent) Handles mouse dragged events.voidmouseEntered(RMShapeMouseEvent anEvent) Handles mouse entered events.voidmouseExited(RMShapeMouseEvent anEvent) Handles mouse exited events.voidmouseMoved(RMShapeMouseEvent anEvent) Handles mouse moved events.voidmousePressed(RMShapeMouseEvent anEvent) Handles mouse pressed events.voidmouseReleased(RMShapeMouseEvent anEvent) Handles mouse released events.voidoffsetXY(double dx, double dy) Offsets the X and Y location of the shape by the given dx & dy amount (convenience).intpage()Page number resolution.intpageMax()Page number resolution.voidpaint(RMShapePainter aPntr) Top-level generic shape painting - sets transform and opacity then does a paintAll.voidpaintShape(RMShapePainter aPntr) Basic shape painting - paints shape fill and stroke.voidpaintShapeAll(RMShapePainter aPntr) Calls paintShape, paintShapeChildren and paintShapeOver.voidpaintShapeChildren(RMShapePainter aPntr) Paints shape children.voidpaintShapeOver(RMShapePainter aPntr) Paints after (on top) of children.voidpropertyChange(PropertyChangeEvent anEvent) Property change listener implementation.Sets an Object to be associated with the given name for the shape.removeBinding(int anIndex) Removes the binding at the given index from shape's bindings list.booleanremoveBinding(String aPropertyName) Removes the binding with given property name.voidRemoves a deep change listener from shape.voidRemoves this shape from its parent.voidRemove mouse listener.voidrepaint()Visual change notification - call before making changes that will require repaint.protected voidVisual change notification - call before making changes that will require repaint.protected voidresolvePageReferences(ReportOwner aRptOwner, Object userInfo) Replaces all @Page@ style keys with their actual values for this shape and its children.rpgAll(ReportOwner anRptOwner, RMShape aParent) Generate report with report owner.voidrpgBindings(ReportOwner anRptOwner, RMShape aShapeRPG) Report generation for URL and bindings.protected RMShaperpgShape(ReportOwner anRptOwner, RMShape aParent) Generate report with report owner.voidsetAlignment(RMTypes.Align anAlign) Sets the alignment.voidsetAlignmentX(RMTypes.AlignX anAlignX) Sets the horizontal alignment.voidsetAlignmentY(RMTypes.AlignY anAlignX) Sets the vertical alignment.voidsetAutosizing(String aValue) Sets the autosizing settings as a string with hyphens for struts and tilde for sprints (horiz,vert).voidSets the shape to its best height (which is just the current height for most shapes).voidSets the shape to its best size.voidsetBounds(double anX, double aY, double aW, double aH) Sets X, Y, width and height of shape to given dimensions.voidsetBounds(Rectangle2D aRect) Sets X, Y, width and height of shape to dimensions in given rect.voidSets the color of the shape.voidsetDashArrayString(String aString) Sets the dash array for this stroke from a string.voidsetDashPhase(float dashPhase) voidSets the effect for this shape.voidsetEnabled(UIEvent.Type aType, boolean aValue) Sets whether given event is enabled.voidSets the fill for this shape.voidSets the font for the shape.voidSets the format for the shape.voidsetFrame(double anX, double aY, double aWidth, double aHeight) Sets the bounds of the shape such that it exactly fits in the given parent coord rect.voidsetFrame(Rectangle2D aRect) Sets the bounds of the shape such that it exactly fits in the given parent coord rect.voidsetFrameSize(double aWidth, double aHeight) Sets the height of the rect that fully encloses the shape in parent coords.voidsetFrameX(double anX) Sets a shape's X such that its bounds rect (in parent coords) has origin at the given X.voidsetFrameXY(double anX, double aY) Sets a shape's origin such that its frame (enclosing rect in parent coords) will have the given X and Y.voidsetFrameXY(RMPoint aPoint) Sets a shape's origin such that its bounds rect (in parent coords) has origin at the given point.voidsetFrameY(double aY) Sets a shape's Y such that its bounds rect (in parent coords) has origin at the given Y.voidsetHeight(double aValue) Sets the height of the shape.voidReturns the URL for the shape.voidsetLayoutInfo(Object theLayoutInfo) Sets an object describing layout parameters of this shape in its parent's layout.voidsetLocked(boolean aValue) Sets the locked state of the shape (really just to prevent location/size changes in the editor).voidsetMinHeight(double aHeight) Sets the shape minimum height.voidsetMinSize(double aWidth, double aHeight) Sets the shape minimum size.voidsetMinWidth(double aWidth) Sets the shape minimum width.voidSets the name for the shape.voidsetOpacity(float aValue) Sets the opacity of the shape (1 for opaque, 0 for transparent).voidsetOutline(RMXString.Outline anOutline) Sets the outline for the shape.voidsetParent(RMParentShape aShape) Sets the parent of this shape (called automatically by addChild()).voidsetPrefHeight(double aHeight) Sets the shape preferred height.voidsetPrefWidth(double aWidth) Sets the shape preferred width.voidsetRoll(double aValue) Sets the roll of the shape.voidsetScaleX(double aValue) Sets the scale of the X axis of the shape.voidsetScaleXY(double sx, double sy) Sets the scale of the X and Y axis.voidsetScaleY(double aValue) Sets the scale of the Y axis of the shape.voidsetShowing(boolean aValue) Sets whether shape is showing.voidsetSize(double aWidth, double aHeight) Sets the size of the shape.voidSets the size of the shape.voidsetSkewX(double aValue) Sets the skew of the X axis of the shape.voidsetSkewXY(double skx, double sky) Sets the skew of the X and Y axis.voidsetSkewY(double aValue) Sets the skew of the Y axis of the shape.voidSets the stroke for this shape, with an option to turn on drawsStroke.voidsetStrokeColor(RMColor aColor) Sets the stroke color of the shape.voidsetStrokeStyle(int style) voidsetStrokeWidth(float aValue) Sets the stroke width of the shape's stroke in printer points.voidsetTextColor(RMColor aColor) Sets the text color for the shape.voidsetTime(int aTime) Tells the shape's timeline to update the shape to the given time in milliseconds.protected voidsetTimeline(RMTimeline aTimeline) Sets the shape timeline.voidsetUnderlined(boolean aFlag) Sets the shape to underline.voidReturns the URL for the shape.voidsetUseFill(boolean useFill) voidsetUseStroke(boolean useStroke) voidsetVisible(boolean aValue) Sets whether this shape is visible.voidsetWidth(double aValue) Sets the width of the shape.voidsetX(double aValue) Sets the X location of the shape.voidsetXY(double anX, double aY) Sets the X and Y location of the shape to the given point (convenience).voidSets the X and Y location of the shape to the given point (convenience).voidsetXYP(double anX, double aY) Sets the origin point of the shape to the given X and Y in parent's coords.voidsetY(double aValue) Sets the Y location of the shape.protected voidNotifies shape that it or one of its ancestors was made non-visible or removed from hierarchy.protected voidNotifies shape that it or one of its ancestors was made visible.booleanEditor method - indicates whether this shape can be super selected.toString()Standard to string implementation (prints class name and shape bounds).toXML(RXArchiver anArchiver) XML Archival.voidUndoer convenience - disable the undoer.voidUndoer convenience - enables the undoer.voidundoerSetUndoTitle(String aTitle) Undoer convenience - sets title of next registered undo.doublewidth()Returns raw width of shape.doublex()Returns raw x location of shape.doubley()Returns raw y location of shape.Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Field Details- 
BINDING_PROP_NAMEName of property change fired when binding configuration is changed- See Also:
 
- 
STROKE_HIDDENpublic static final int STROKE_HIDDEN- See Also:
 
- 
STROKE_SHAPEpublic static final int STROKE_SHAPE- See Also:
 
- 
STROKE_BORDERpublic static final int STROKE_BORDER- See Also:
 
- 
STROKE_DOUBLEpublic static final int STROKE_DOUBLE- See Also:
 
 
- 
- 
Constructor Details- 
RMShapepublic RMShape()
 
- 
- 
Method Details- 
xpublic double x()Returns raw x location of shape. Developers should use the more common getX, which presents positive x.
- 
ypublic double y()Returns raw y location of shape. Developers should use the more common getY, which presents positive y.
- 
widthpublic double width()Returns raw width of shape. Developers should use the more common getWidth, which presents positive width.
- 
heightpublic double height()Returns raw height of shape. Developers should use the more common getHeight, which presents positive height.
- 
boundsReturns raw x, y, width and height of shape as rect (preserves possible negative sizes).
- 
getXpublic double getX()Returns the X location of the shape.
- 
setXpublic void setX(double aValue) Sets the X location of the shape.
- 
getYpublic double getY()Returns the Y location of the shape.
- 
setYpublic void setY(double aValue) Sets the Y location of the shape.
- 
getWidthpublic double getWidth()Returns the width of the shape.
- 
setWidthpublic void setWidth(double aValue) Sets the width of the shape.
- 
getHeightpublic double getHeight()Returns the height of the shape.
- 
setHeightpublic void setHeight(double aValue) Sets the height of the shape.
- 
getMaxXpublic double getMaxX()Returns the max X of the shape (assumes not rotated, scaled or skewed).
- 
getMaxYpublic double getMaxY()Returns the max Y of the shape (assumes not rotated, scaled or skewed).
- 
getXYReturns the XY location of the shape as a point.
- 
setXYSets the X and Y location of the shape to the given point (convenience).
- 
setXYpublic void setXY(double anX, double aY) Sets the X and Y location of the shape to the given point (convenience).
- 
getSizeReturns the size of the shape.
- 
setSizeSets the size of the shape.
- 
setSizepublic void setSize(double aWidth, double aHeight) Sets the size of the shape.
- 
getBoundsReturns the X, Y, width and height of the shape as a rect (use getFrame if shape has roll/scale/skew).
- 
setBoundsSets X, Y, width and height of shape to dimensions in given rect.
- 
setBoundspublic void setBounds(double anX, double aY, double aW, double aH) Sets X, Y, width and height of shape to given dimensions.
- 
getFrameReturns the rect in parent coords that fully encloses the shape.
- 
setFrameSets the bounds of the shape such that it exactly fits in the given parent coord rect.
- 
setFramepublic void setFrame(double anX, double aY, double aWidth, double aHeight) Sets the bounds of the shape such that it exactly fits in the given parent coord rect.
- 
getFrameXpublic double getFrameX()Returns the X of the rect that fully encloses the shape in parent coords.
- 
setFrameXpublic void setFrameX(double anX) Sets a shape's X such that its bounds rect (in parent coords) has origin at the given X.
- 
getFrameYpublic double getFrameY()Returns the Y of the rect that fully encloses the shape in parent coords.
- 
setFrameYpublic void setFrameY(double aY) Sets a shape's Y such that its bounds rect (in parent coords) has origin at the given Y.
- 
getFrameWidthpublic double getFrameWidth()Returns the width of the rect that fully encloses the shape in parent coords.
- 
getFrameHeightpublic double getFrameHeight()Returns the height of the rect that fully encloses the shape in parent coords.
- 
getFrameXYReturns the origin of the shape's bounds rect in parent coords.
- 
setFrameXYSets a shape's origin such that its bounds rect (in parent coords) has origin at the given point.
- 
setFrameXYpublic void setFrameXY(double anX, double aY) Sets a shape's origin such that its frame (enclosing rect in parent coords) will have the given X and Y.
- 
setFrameSizepublic void setFrameSize(double aWidth, double aHeight) Sets the height of the rect that fully encloses the shape in parent coords.
- 
getFrameMaxXpublic double getFrameMaxX()Returns the max X of the shape's frame.
- 
getFrameMaxYpublic double getFrameMaxY()Returns the max Y of the shape's frame.
- 
getXYPReturns the origin point of the shape in parent's coords.
- 
setXYPpublic void setXYP(double anX, double aY) Sets the origin point of the shape to the given X and Y in parent's coords.
- 
offsetXYpublic void offsetXY(double dx, double dy) Offsets the X and Y location of the shape by the given dx & dy amount (convenience).
- 
getBoundsInsideReturns the bounds of the shape in the shape's own coords.
- 
getBoundsMarkedReturns the bounds of the path associated with this shape in local coords, adjusted to account for stroke width.
- 
getBoundsMarkedDeepReturns the marked bounds of this shape and its children.
- 
getRollpublic double getRoll()Returns the roll of the shape.
- 
setRollpublic void setRoll(double aValue) Sets the roll of the shape.
- 
getScaleXpublic double getScaleX()Returns the scale of the X axis of the shape.
- 
setScaleXpublic void setScaleX(double aValue) Sets the scale of the X axis of the shape.
- 
getScaleYpublic double getScaleY()Returns the scale of the Y axis of the shape.
- 
setScaleYpublic void setScaleY(double aValue) Sets the scale of the Y axis of the shape.
- 
setScaleXYpublic void setScaleXY(double sx, double sy) Sets the scale of the X and Y axis.
- 
getSkewXpublic double getSkewX()Returns the skew of the X axis of the shape.
- 
setSkewXpublic void setSkewX(double aValue) Sets the skew of the X axis of the shape.
- 
getSkewYpublic double getSkewY()Returns the skew of the Y axis of the shape.
- 
setSkewYpublic void setSkewY(double aValue) Sets the skew of the Y axis of the shape.
- 
setSkewXYpublic void setSkewXY(double skx, double sky) Sets the skew of the X and Y axis.
- 
isRSSpublic boolean isRSS()Returns whether the shape has been rotated, scaled or skewed (for efficiency).
- 
getRSSReturns the roll scale skew object.
- 
getStrokeReturns the stroke for this shape.
- 
setStrokeSets the stroke for this shape, with an option to turn on drawsStroke.
- 
getDisplayedStroke
- 
isUseStrokepublic boolean isUseStroke()
- 
setUseStrokepublic void setUseStroke(boolean useStroke) 
- 
getStrokeStylepublic int getStrokeStyle()
- 
setStrokeStylepublic void setStrokeStyle(int style) 
- 
getDashPhasepublic float getDashPhase()Returns the dash phase. Used for the properties panel.
- 
setDashPhasepublic void setDashPhase(float dashPhase) 
- 
getDashArrayStringReturns the dash array for this stroke as a string.
- 
setDashArrayStringSets the dash array for this stroke from a string.
- 
getFillReturns the fill for this shape.
- 
setFillSets the fill for this shape.
- 
getDisplayedFill
- 
isUseFillpublic boolean isUseFill()
- 
setUseFillpublic void setUseFill(boolean useFill) 
- 
getEffectReturns the effect for this shape.
- 
setEffectSets the effect for this shape.
- 
getColorReturns the color of the shape.
- 
setColorSets the color of the shape.
- 
getStrokeColorReturns the stroke color of the shape.
- 
setStrokeColorSets the stroke color of the shape.
- 
getStrokeWidthpublic float getStrokeWidth()Returns the stroke width of the shape's stroke in printer points.
- 
setStrokeWidthpublic void setStrokeWidth(float aValue) Sets the stroke width of the shape's stroke in printer points.
- 
getOpacitypublic float getOpacity()Returns the opacity of the shape (1 for opaque, 0 for transparent).
- 
setOpacitypublic void setOpacity(float aValue) Sets the opacity of the shape (1 for opaque, 0 for transparent).
- 
getOpacityDeeppublic float getOpacityDeep()Returns the combined opacity of this shape and its parent.
- 
isVisiblepublic boolean isVisible()Returns whether this shape is visible.
- 
setVisiblepublic void setVisible(boolean aValue) Sets whether this shape is visible.
- 
getLayoutInfoReturns an object describing layout paramaters of this shape in its parent's layout.
- 
setLayoutInfoSets an object describing layout parameters of this shape in its parent's layout.
- 
getAutosizingReturns the autosizing settings as a string with hyphens for struts and tilde for springs (horiz,vert).
- 
setAutosizingSets the autosizing settings as a string with hyphens for struts and tilde for sprints (horiz,vert).
- 
getAutosizingDefaultReturns the autosizing default.
- 
isShowingpublic boolean isShowing()Returns whether this shape is visible in its parent.
- 
setShowingpublic void setShowing(boolean aValue) Sets whether shape is showing.
- 
shapeShownprotected void shapeShown()Notifies shape that it or one of its ancestors was made visible.
- 
shapeHiddenprotected void shapeHidden()Notifies shape that it or one of its ancestors was made non-visible or removed from hierarchy.
- 
isHittablepublic boolean isHittable()Returns whether this shape is hittable in its parent.
- 
isViewingpublic boolean isViewing()Returns whether this shape is being viewed in a viewer.
- 
isEditingpublic boolean isEditing()Returns whether this shape is being edited in an editor.
- 
getTextColorReturns the text color for the shape.
- 
setTextColorSets the text color for the shape.
- 
isFontSetpublic boolean isFontSet()Returns whether font has been set.
- 
getFontReturns the font for the shape (defaults to parent font).
- 
setFontSets the font for the shape.
- 
isUnderlinedpublic boolean isUnderlined()Returns whether the shape is underlined.
- 
setUnderlinedpublic void setUnderlined(boolean aFlag) Sets the shape to underline.
- 
getOutlineReturns the outline for the shape.
- 
setOutlineSets the outline for the shape.
- 
getAlignmentReturns the alignment.
- 
setAlignmentSets the alignment.
- 
getAlignmentXReturns the horizontal alignment.
- 
setAlignmentXSets the horizontal alignment.
- 
getAlignmentYReturns the vertical alignment.
- 
setAlignmentYSets the vertical alignment.
- 
getFormatReturns the format for the shape.
- 
setFormatSets the format for the shape.
- 
addDeepChangeListenerAdds a deep change listener to shape to listen for shape changes and property changes received by shape.
- 
removeDeepChangeListenerRemoves a deep change listener from shape.
- 
propertyChangeProperty change listener implementation.- Specified by:
- propertyChangein interface- PropertyChangeListener
 
- 
deepChangeDeep property change listener implementation.- Specified by:
- deepChangein interface- DeepChangeListener
 
- 
getNameReturns the name for the shape.
- 
setNameSets the name for the shape.
- 
getURLSets the URL for the shape.
- 
setURLReturns the URL for the shape.
- 
getHoverSets the Hover string for the shape.
- 
setHoverReturns the URL for the shape.
- 
isLockedpublic boolean isLocked()Returns the locked state of the shape (really just to prevent location/size changes in the editor).
- 
setLockedpublic void setLocked(boolean aValue) Sets the locked state of the shape (really just to prevent location/size changes in the editor).
- 
getTimelineReturns the timeline for animating shape property changes.
- 
getTimelineReturns the timeline for animating shape property changes, with an option to create if absent.
- 
setTimelineSets the shape timeline.
- 
setTimepublic void setTime(int aTime) Tells the shape's timeline to update the shape to the given time in milliseconds. Recurses to shape children.
- 
getReturns the Object associated with the given name for the shape. This is a general purpose property facility to allow shapes to hold many less common properties without the overhead of explicitly including ivars for them. The map that holds these properties is shared so that there is only ever one instance of the map for each unique permutation of attributes.
- 
putSets an Object to be associated with the given name for the shape.
- 
getReturns the object associated with given key, using the given default if not found.
- 
getPathReturns the shape's path.
- 
getPathInBoundsReturns the shape's path scaled to the shape's current bounds.
- 
getMaskPathReturns the outline of the shape as a path. For simple shape this is the same as getPath(), and for group shapes it's the union of all the children paths.
- 
getParentReturns the parent of this shape.
- 
setParentSets the parent of this shape (called automatically by addChild()).
- 
getParentReturns the first parent with given class by iterating up parent hierarchy.
- 
removeFromParentpublic void removeFromParent()Removes this shape from its parent.
- 
indexOfpublic int indexOf()Returns the index of this child in its parent.
- 
getChildCountpublic int getChildCount()Returns the child count.
- 
getChildReturns the child at given index.
- 
getChildrenReturns the children list.
- 
getRootShapeReturns the top level shape (usually an RMDocument).
- 
getDocumentReturns the RMDocument ancestor of this shape (or null if not there).
- 
getPageShapeReturns the RMPage ancestor of this shape (or null if not there).
- 
getUndoerReturns the undoer for this shape (or null if not there).
- 
undoerSetUndoTitleUndoer convenience - sets title of next registered undo.
- 
undoerDisablepublic void undoerDisable()Undoer convenience - disable the undoer.
- 
undoerEnablepublic void undoerEnable()Undoer convenience - enables the undoer.
- 
isRootpublic boolean isRoot()Editor method - returns whether this shape is at the top level (usually RMPage).
- 
getAncestorCountpublic int getAncestorCount()Returns the number of ancestors (from this shape's parent up to the document).
- 
getAncestorReturns the ancestor at the given index (parent is ancestor 0).
- 
isAncestorReturns true if given shape is one of this shape's ancestors.
- 
isDescendantReturns true if given shape is one of this shape's descendants.
- 
getAncestorInCommonReturns first ancestor that the given shape and this shape have in common.
- 
getShapesToAncestorReturns a list of shapes from this shape to a given ancestor, inclusive.
- 
getShapesToDescendantReturns a list of shape's from this shape to given descendant, inclusive.
- 
getShapesToShapeReturns a list of shapes from this shape to given shape.
- 
getTransformReturns the transform to this shape from its parent.
- 
getTransformInverseReturns the transform from this shape to its parent.
- 
getTransformToShapeReturns the transform from this shape to the given shape.
- 
getTransformFromShapeReturns the transform from the given shape to this shape.
- 
convertPointToShapeConverts the given point to the given shape's coords (returns it for convenience).
- 
convertPointFromShapeConverts the given point to the given shape's coords (returns it for convenience).
- 
convertVectorToShapeConverts the given size (as a vector) to the given shape's coords (returns it for convenience).
- 
convertVectorFromShapeConverts the given size (as a vector) from the given shape's coords (returns it for convenience).
- 
convertRectToShapeConverts the given rect to the given shape's coords (returns it for convenience).
- 
convertRectFromShapeConverts the given rect from the given shape's coords (returns it for convenience).
- 
convertedPointToShapeReturns the given point converted to the given shape's coords.
- 
convertedPointFromShapeReturns the given point converted from the given shape's coords.
- 
convertedVectorToShapeReturns the given size converted to the given shape's coords and normalized.
- 
convertedVectorFromShapeReturns the given size converted from the given shape's coords and normalized.
- 
convertedRectToShapeReturns the rect encompassing the given rect converted to the given shape's coords.
- 
convertedRectFromShapeReturns the rect encompassing the given rect converted from the given shape's coords.
- 
convertPathToShapeReturns the given path converted to the given shape's coords.
- 
convertPathFromShapeReturns the given path converted from the given shape's coords.
- 
convertToShapeTransforms the given shape to this shape's coords.
- 
convertFromShapeTransforms the given shape from this shape's coords.
- 
isMinWidthSetpublic boolean isMinWidthSet()Returns whether shape minimum width is set.
- 
getMinWidthpublic double getMinWidth()Returns the shape minimum width.
- 
getMinWidthpublic double getMinWidth(double aValue) Returns the shape minimum width.
- 
setMinWidthpublic void setMinWidth(double aWidth) Sets the shape minimum width.
- 
isMinHeightSetpublic boolean isMinHeightSet()Returns whether shape minimum height is set.
- 
getMinHeightpublic double getMinHeight()Returns the shape minimum height.
- 
getMinHeightpublic double getMinHeight(double aValue) Returns the shape minimum height.
- 
setMinHeightpublic void setMinHeight(double aHeight) Sets the shape minimum height.
- 
setMinSizepublic void setMinSize(double aWidth, double aHeight) Sets the shape minimum size.
- 
isPrefWidthSetpublic boolean isPrefWidthSet()Returns whether shape preferred width is set.
- 
getPrefWidthpublic double getPrefWidth()Returns the shape preferred width.
- 
getPrefWidthpublic double getPrefWidth(double aValue) Returns the shape preferred width.
- 
setPrefWidthpublic void setPrefWidth(double aWidth) Sets the shape preferred width.
- 
computePrefWidthprotected double computePrefWidth(double aHeight) Computes the preferred width for given height.
- 
isPrefHeightSetpublic boolean isPrefHeightSet()Returns whether shape preferred height is set.
- 
getPrefHeightpublic double getPrefHeight()Returns the shape preferred height.
- 
getPrefHeightpublic double getPrefHeight(double aValue) Returns the shape preferred height.
- 
setPrefHeightpublic void setPrefHeight(double aHeight) Sets the shape preferred height.
- 
computePrefHeightprotected double computePrefHeight(double aWidth) Computes the preferred height for given width.
- 
getBestWidthpublic double getBestWidth()Returns the best width for current height.
- 
getBestWidthpublic double getBestWidth(double aValue) Returns the best width for current height.
- 
getBestHeightpublic double getBestHeight()Returns the best height for current width.
- 
getBestHeightpublic double getBestHeight(double aValue) Returns the best height for current width.
- 
setBestHeightpublic void setBestHeight()Sets the shape to its best height (which is just the current height for most shapes).
- 
setBestSizepublic void setBestSize()Sets the shape to its best size.
- 
divideShapeFromTopDivides the shape by a given amount from the top. Returns a clone of the given shape with bounds set to the remainder. Divides children among the two shapes (recursively calling divide shape for those stradling).
- 
divideShapeFromEdgeDivides the shape by a given amount from the given edge. Returns newShape (or, if null, a clone) whose bounds have been set to the remainder.
- 
createDivideShapeRemainderCreates a shape suitable for the "remainder" portion of a divideShape call (just a clone by default).
- 
getAnimatorReturns the animator that this shape registers changes with.
- 
getAnimatorReturns the animator that this shape registers changes with (creating, if requested and currently null).
- 
getChildAnimatorReturns the animator that this shape's children use.
- 
getChildAnimatorReturns the animator that this shape's children use (creating, if requested and currently null). The base implementation passes request onto ancestors, but some subclasses create and manage one (RMPage, RMSwitchShape).
- 
addMouseListenerAdd mouse listener.
- 
removeMouseListenerRemove mouse listener.
- 
acceptsMousepublic boolean acceptsMouse()Returns whether shape accepts mouse events.
- 
mousePressedHandles mouse pressed events.
- 
mouseDraggedHandles mouse dragged events.
- 
mouseReleasedHandles mouse released events.
- 
mouseClickedHandles mouse clicked events.
- 
mouseEnteredHandles mouse entered events.
- 
mouseMovedHandles mouse moved events.
- 
mouseExitedHandles mouse exited events.
- 
containsReturns whether this shape is hit by the point, given in this shape's parent's coords.
- 
intersectsReturns whether this shape is hit by the path, given in this shape's parent's coords.
- 
getDatasetKeyReturns the dataset key associated with this shape.
- 
getDatasetEntityReturns the entity this shape should show in keys browser.
- 
getPropertyNamesReturns the property names for helper's instance class.
- 
getPropertyNameMappedReturns a mapped property name.
- 
getPropertyNamesReturns the property names for RMShape.
- 
getBindingCountpublic int getBindingCount()Returns the number of bindings associated with shape.
- 
getBindingReturns the individual binding at the given index.
- 
getBindingsReturns the list of bindings, with an option to create if missing.
- 
addBindingAdds the individual binding to the shape's bindings list.
- 
removeBindingRemoves the binding at the given index from shape's bindings list.
- 
getBindingReturns the individual binding with the given property name.
- 
removeBindingRemoves the binding with given property name.
- 
addBindingAdds a binding for given name and key.
- 
isEnabledReturns whether given event is enabled.
- 
setEnabledSets whether given event is enabled.
- 
getEventAdapterReturns the ShapeEventAdapter for this shape.
- 
cloneStandard implementation of Object clone. Nulls out shape's parent and children.- Overrides:
- clonein class- RMListenerList
 
- 
cloneDeepClones all attributes of this shape with complete clones of its children as well.
- 
copyShapeCopies basic shape attributes from given RMShape (location, size, fill, stroke, roll, scale, name, url, etc.).
- 
rpgAllGenerate report with report owner.
- 
rpgShapeGenerate report with report owner.
- 
rpgBindingsReport generation for URL and bindings.
- 
resolvePageReferencesReplaces all @Page@ style keys with their actual values for this shape and its children.
- 
repaintpublic void repaint()Visual change notification - call before making changes that will require repaint.
- 
repaintVisual change notification - call before making changes that will require repaint.
- 
superSelectablepublic boolean superSelectable()Editor method - indicates whether this shape can be super selected.
- 
acceptsChildrenpublic boolean acceptsChildren()Editor method.
- 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately()Editor method.
- 
isDeletablepublic boolean isDeletable()Override this for shapes (like a table row) that don't don't make sense to delete by themselves.
- 
pagepublic int page()Page number resolution.
- 
pageMaxpublic int pageMax()Page number resolution.
- 
getPageBreakpublic int getPageBreak()Returns the "PageBreak" for this shape as defined by shapes that define a page break (currently only RMTable).
- 
getPageBreakMaxpublic int getPageBreakMax()Returns the "PageBreakMax" for this shape as defined by shapes that define a page break (currently only RMTable).
- 
getPageBreakPagepublic int getPageBreakPage()Returns the "PageBreakPage" for this shape, or the page number relative to the last page break, as defined by shapes that define explicit page breaks (currently only RMTable).
- 
getPageBreakPageMaxpublic int getPageBreakPageMax()Returns the "PageBreakPageMax" for this shape, or the max page number relative to the last and next page breaks, as defined by shapes that define explicit page breaks (currently only RMTable).
- 
paintTop-level generic shape painting - sets transform and opacity then does a paintAll. If a effect is present, has it paint instead of doing paintAll.
- 
paintShapeAllCalls paintShape, paintShapeChildren and paintShapeOver.
- 
paintShapeBasic shape painting - paints shape fill and stroke.
- 
paintShapeChildrenPaints shape children.
- 
paintShapeOverPaints after (on top) of children.
- 
getStrokeOnToppublic boolean getStrokeOnTop()Returns whether to stroke on top.
- 
getClipShapeReturns clip shape for shape.
- 
getChildClipShapeReturns clip shape to be used for children.
- 
getVisbileBoundsReturns the visible bounds in shape coords, by intersecting this shape's bounds with ancester clip and child clip.
- 
getVisibleBoundsReturns the visible bounds of given rect in shape coords, by intersecting rect with ancester clip and child clip.
- 
getVisibleBoundsReturns the visible bounds in given ancestor coords, by intersecting this shape's bounds with ancester clip and child clip.
- 
getVisibleBoundsReturns the visible bounds of given rect in given ancestor coords, by intersecting the rect with ancester clip and child clip.
- 
animUpdateCalled to update shape anim.- Overrides:
- animUpdatein class- RMObject
 
- 
isAnimPropertyReturns whether given property name is anim property.
- 
toXMLXML Archival.- Specified by:
- toXMLin interface- Archivable
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
 
- 
toStringStandard to string implementation (prints class name and shape bounds).
 
-