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,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 - Direct Known Subclasses:
- AbstractJ2DShape,- RMGraphPartBars,- RMGraphPartPie,- RMGraphPartSeries,- RMMorphShape,- RMOvalShape,- RMPainterShape,- RMParentShape,- RMRectShape,- RMShapeTable.STCell,- RMSoundShape,- RMStarShape
 
 public class RMShape extends RMObject implements java.beans.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 Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringBINDING_PROP_NAMEName of property change fired when binding configuration is changedstatic intSTROKE_BORDERstatic intSTROKE_DOUBLEstatic intSTROKE_HIDDENstatic intSTROKE_SHAPE
 - 
Constructor SummaryConstructors Constructor Description RMShape()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsChildren()Editor method.booleanacceptsMouse()Returns whether shape accepts mouse events.voidaddBinding(Binding aBinding)Adds the individual binding to the shape's bindings list.voidaddBinding(java.lang.String aPropName, java.lang.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(java.beans.PropertyChangeEvent anEvent)Called to update shape anim.RMRectbounds()Returns raw x, y, width and height of shape as rect (preserves possible negative sizes).booleanchildrenSuperSelectImmediately()Editor method.RMShapeclone()Standard implementation of Object clone.RMShapecloneDeep()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.booleancontains(RMPoint aPoint)Returns whether this shape is hit by the point, given in this shape's parent's coords.RMPointconvertedPointFromShape(RMPoint aPoint, RMShape aShape)Returns the given point converted from the given shape's coords.RMPointconvertedPointToShape(RMPoint aPoint, RMShape aShape)Returns the given point converted to the given shape's coords.RMRectconvertedRectFromShape(RMRect aRect, RMShape aShape)Returns the rect encompassing the given rect converted from the given shape's coords.RMRectconvertedRectToShape(RMRect aRect, RMShape aShape)Returns the rect encompassing the given rect converted to the given shape's coords.RMSizeconvertedVectorFromShape(RMSize aSize, RMShape aShape)Returns the given size converted from the given shape's coords and normalized.RMSizeconvertedVectorToShape(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.RMPathconvertPathFromShape(RMPath aPath, RMShape aShape)Returns the given path converted from the given shape's coords.RMPathconvertPathToShape(RMPath aPath, RMShape aShape)Returns the given path converted to the given shape's coords.RMPointconvertPointFromShape(RMPoint point, RMShape shape)Converts the given point to the given shape's coords (returns it for convenience).RMPointconvertPointToShape(RMPoint point, RMShape shape)Converts the given point to the given shape's coords (returns it for convenience).RMRectconvertRectFromShape(RMRect rect, RMShape shape)Converts the given rect from the given shape's coords (returns it for convenience).RMRectconvertRectToShape(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.RMSizeconvertVectorFromShape(RMSize size, RMShape shape)Converts the given size (as a vector) from the given shape's coords (returns it for convenience).RMSizeconvertVectorToShape(RMSize size, RMShape shape)Converts the given size (as a vector) to the given shape's coords (returns it for convenience).voidcopyShape(RMShape aShape)Copies 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(java.beans.PropertyChangeListener aListener, java.beans.PropertyChangeEvent anEvent)Deep property change listener implementation.RMShapedivideShapeFromEdge(double anAmount, byte anEdge, RMShape aNewShape)Divides the shape by a given amount from the given edge.RMShapedivideShapeFromTop(double anAmount)Divides the shape by a given amount from the top.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.java.lang.Objectget(java.lang.String aName)Returns the Object associated with the given name for the shape.java.lang.Objectget(java.lang.String aName, java.lang.Object aDefault)Returns the object associated with given key, using the given default if not found.RMTypes.AligngetAlignment()Returns the alignment.RMTypes.AlignXgetAlignmentX()Returns the horizontal alignment.RMTypes.AlignYgetAlignmentY()Returns the vertical alignment.RMShapegetAncestor(int anIndex)Returns the ancestor at the given index (parent is ancestor 0).intgetAncestorCount()Returns the number of ancestors (from this shape's parent up to the document).RMShapegetAncestorInCommon(RMShape aShape)Returns first ancestor that the given shape and this shape have in common.RMAnimatorgetAnimator()Returns the animator that this shape registers changes with.RMAnimatorgetAnimator(boolean create)Returns the animator that this shape registers changes with (creating, if requested and currently null).java.lang.StringgetAutosizing()Returns the autosizing settings as a string with hyphens for struts and tilde for springs (horiz,vert).java.lang.StringgetAutosizingDefault()Returns the autosizing default.doublegetBestHeight()Returns the best height for current width.doublegetBestHeight(double aValue)Returns the best height for current width.doublegetBestWidth()Returns the best width for current height.doublegetBestWidth(double aValue)Returns the best width for current height.BindinggetBinding(int anIndex)Returns the individual binding at the given index.BindinggetBinding(java.lang.String aPropertyName)Returns the individual binding with the given property name.intgetBindingCount()Returns the number of bindings associated with shape.protected java.util.List<Binding>getBindings(boolean doCreate)Returns the list of bindings, with an option to create if missing.RMRectgetBounds()Returns the X, Y, width and height of the shape as a rect (use getFrame if shape has roll/scale/skew).RMRectgetBoundsInside()Returns the bounds of the shape in the shape's own coords.RMRectgetBoundsMarked()Returns the bounds of the path associated with this shape in local coords, adjusted to account for stroke width.RMRectgetBoundsMarkedDeep()Returns the marked bounds of this shape and its children.RMShapegetChild(int anIndex)Returns the child at given index.RMAnimatorgetChildAnimator()Returns the animator that this shape's children use.RMAnimatorgetChildAnimator(boolean create)Returns the animator that this shape's children use (creating, if requested and currently null).java.awt.ShapegetChildClipShape()Returns clip shape to be used for children.intgetChildCount()Returns the child count.java.util.List<RMShape>getChildren()Returns the children list.java.awt.ShapegetClipShape()Returns clip shape for shape.RMColorgetColor()Returns the color of the shape.java.lang.StringgetDashArrayString()Returns the dash array for this stroke as a string.floatgetDashPhase()Returns the dash phase.EntitygetDatasetEntity()Returns the entity this shape should show in keys browser.java.lang.StringgetDatasetKey()Returns the dataset key associated with this shape.RMFillgetDisplayedFill()RMStrokegetDisplayedStroke()RMDocumentgetDocument()Returns the RMDocument ancestor of this shape (or null if not there).RMEffectgetEffect()Returns the effect for this shape.RMShapeEventAdaptergetEventAdapter(boolean doCreate)Returns the ShapeEventAdapter for this shape.RMFillgetFill()Returns the fill for this shape.RMFontgetFont()Returns the font for the shape (defaults to parent font).RMFormatgetFormat()Returns the format for the shape.RMRectgetFrame()Returns the rect in parent coords that fully encloses the shape.doublegetFrameHeight()Returns the height of the rect that fully encloses the shape in parent coords.doublegetFrameMaxX()Returns the max X of the shape's frame.doublegetFrameMaxY()Returns the max Y of the shape's frame.doublegetFrameWidth()Returns the width of the rect that fully encloses the shape in parent coords.doublegetFrameX()Returns the X of the rect that fully encloses the shape in parent coords.RMPointgetFrameXY()Returns the origin of the shape's bounds rect in parent coords.doublegetFrameY()Returns the Y of the rect that fully encloses the shape in parent coords.doublegetHeight()Returns the height of the shape.java.lang.StringgetHover()Sets the Hover string for the shape.java.lang.ObjectgetLayoutInfo()Returns an object describing layout paramaters of this shape in its parent's layout.RMPathgetMaskPath()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).doublegetMinHeight()Returns the shape minimum height.doublegetMinHeight(double aValue)Returns the shape minimum height.doublegetMinWidth()Returns the shape minimum width.doublegetMinWidth(double aValue)Returns the shape minimum width.java.lang.StringgetName()Returns the name for the shape.floatgetOpacity()Returns the opacity of the shape (1 for opaque, 0 for transparent).floatgetOpacityDeep()Returns the combined opacity of this shape and its parent.RMXString.OutlinegetOutline()Returns the outline for the shape.intgetPageBreak()Returns the "PageBreak" for this shape as defined by shapes that define a page break (currently only RMTable).intgetPageBreakMax()Returns the "PageBreakMax" for this shape as defined by shapes that define a page break (currently only RMTable).intgetPageBreakPage()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).intgetPageBreakPageMax()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).RMParentShapegetPageShape()Returns the RMPage ancestor of this shape (or null if not there).RMParentShapegetParent()Returns the parent of this shape.<T extends RMShape>
 TgetParent(java.lang.Class<T> aClass)Returns the first parent with given class by iterating up parent hierarchy.RMPathgetPath()Returns the shape's path.RMPathgetPathInBounds()Returns the shape's path scaled to the shape's current bounds.doublegetPrefHeight()Returns the shape preferred height.doublegetPrefHeight(double aValue)Returns the shape preferred height.doublegetPrefWidth()Returns the shape preferred width.doublegetPrefWidth(double aValue)Returns the shape preferred width.java.lang.StringgetPropertyNameMapped(java.lang.String aName)Returns a mapped property name.java.util.List<java.lang.String>getPropertyNames()Returns the property names for helper's instance class.protected voidgetPropertyNames(java.util.List<java.lang.String> aList)Returns the property names for RMShape.doublegetRoll()Returns the roll of the shape.RMShapegetRootShape()Returns the top level shape (usually an RMDocument).protected RMShapeRSSgetRSS()Returns the roll scale skew object.doublegetScaleX()Returns the scale of the X axis of the shape.doublegetScaleY()Returns the scale of the Y axis of the shape.java.util.List<RMShape>getShapesToAncestor(RMShape aShape)Returns a list of shapes from this shape to a given ancestor, inclusive.java.util.List<RMShape>getShapesToDescendant(RMShape aShape)Returns a list of shape's from this shape to given descendant, inclusive.java.util.List<RMShape>getShapesToShape(RMShape aShape)Returns a list of shapes from this shape to given shape.RMSizegetSize()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.RMStrokegetStroke()Returns the stroke for this shape.RMColorgetStrokeColor()Returns the stroke color of the shape.booleangetStrokeOnTop()Returns whether to stroke on top.intgetStrokeStyle()floatgetStrokeWidth()Returns the stroke width of the shape's stroke in printer points.RMColorgetTextColor()Returns the text color for the shape.RMTimelinegetTimeline()Returns the timeline for animating shape property changes.RMTimelinegetTimeline(boolean create)Returns the timeline for animating shape property changes, with an option to create if absent.RMTransformgetTransform()Returns the transform to this shape from its parent.RMTransformgetTransformFromShape(RMShape aShape)Returns the transform from the given shape to this shape.RMTransformgetTransformInverse()Returns the transform from this shape to its parent.RMTransformgetTransformToShape(RMShape aShape)Returns the transform from this shape to the given shape.RMUndoergetUndoer()Returns the undoer for this shape (or null if not there).java.lang.StringgetURL()Sets the URL for the shape.java.awt.ShapegetVisbileBounds()Returns the visible bounds in shape coords, by intersecting this shape's bounds with ancester clip and child clip.java.awt.ShapegetVisibleBounds(RMRect aRect)Returns the visible bounds of given rect in shape coords, by intersecting rect with ancester clip and child clip.java.awt.ShapegetVisibleBounds(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.java.awt.ShapegetVisibleBounds(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.RMPointgetXY()Returns the XY location of the shape as a point.RMPointgetXYP()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(java.lang.String aPropertyName)Returns whether given property name is anim property.booleanisDeletable()Override 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.booleanisEditing()Returns whether this shape is being edited in an editor.booleanisEnabled(UIEvent.Type aType)Returns whether given event is enabled.booleanisFontSet()Returns whether font has been set.booleanisHittable()Returns 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).booleanisMinHeightSet()Returns whether shape minimum height is set.booleanisMinWidthSet()Returns whether shape minimum width is set.booleanisPrefHeightSet()Returns whether shape preferred height is set.booleanisPrefWidthSet()Returns 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).booleanisShowing()Returns whether this shape is visible in its parent.booleanisUnderlined()Returns whether the shape is underlined.booleanisUseFill()booleanisUseStroke()booleanisViewing()Returns whether this shape is being viewed in a viewer.booleanisVisible()Returns 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(java.beans.PropertyChangeEvent anEvent)Property change listener implementation.java.lang.Objectput(java.lang.String aName, java.lang.Object anObj)Sets an Object to be associated with the given name for the shape.BindingremoveBinding(int anIndex)Removes the binding at the given index from shape's bindings list.booleanremoveBinding(java.lang.String aPropertyName)Removes the binding with given property name.voidremoveDeepChangeListener(DeepChangeListener aLstnr)Removes a deep change listener from shape.voidremoveFromParent()Removes this shape from its parent.voidremoveMouseListener(RMShapeMouseListener aLsnr)Remove mouse listener.voidrepaint()Visual change notification - call before making changes that will require repaint.protected voidrepaint(RMShape aShape)Visual change notification - call before making changes that will require repaint.protected voidresolvePageReferences(ReportOwner aRptOwner, java.lang.Object userInfo)Replaces all @Page@ style keys with their actual values for this shape and its children.RMShaperpgAll(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(java.lang.String aValue)Sets the autosizing settings as a string with hyphens for struts and tilde for sprints (horiz,vert).voidsetBestHeight()Sets the shape to its best height (which is just the current height for most shapes).voidsetBestSize()Sets 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(java.awt.geom.Rectangle2D aRect)Sets X, Y, width and height of shape to dimensions in given rect.voidsetColor(RMColor aColor)Sets the color of the shape.voidsetDashArrayString(java.lang.String aString)Sets the dash array for this stroke from a string.voidsetDashPhase(float dashPhase)voidsetEffect(RMEffect anEffect)Sets the effect for this shape.voidsetEnabled(UIEvent.Type aType, boolean aValue)Sets whether given event is enabled.voidsetFill(RMFill aFill)Sets the fill for this shape.voidsetFont(RMFont aFont)Sets the font for the shape.voidsetFormat(RMFormat aFormat)Sets 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(java.awt.geom.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.voidsetHover(java.lang.String aString)Returns the URL for the shape.voidsetLayoutInfo(java.lang.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.voidsetName(java.lang.String aName)Sets 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.voidsetSize(RMSize aSize)Sets 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.voidsetStroke(RMStroke aStroke)Sets 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.voidsetURL(java.lang.String aURL)Returns 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).voidsetXY(java.awt.geom.Point2D aPoint)Sets 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 voidshapeHidden()Notifies shape that it or one of its ancestors was made non-visible or removed from hierarchy.protected voidshapeShown()Notifies shape that it or one of its ancestors was made visible.booleansuperSelectable()Editor method - indicates whether this shape can be super selected.java.lang.StringtoString()Standard to string implementation (prints class name and shape bounds).RXElementtoXML(RXArchiver anArchiver)XML Archival.voidundoerDisable()Undoer convenience - disable the undoer.voidundoerEnable()Undoer convenience - enables the undoer.voidundoerSetUndoTitle(java.lang.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, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Field Detail- 
BINDING_PROP_NAMEpublic static final java.lang.String BINDING_PROP_NAME Name of property change fired when binding configuration is changed- See Also:
- Constant Field Values
 
 - 
STROKE_HIDDENpublic static final int STROKE_HIDDEN - See Also:
- Constant Field Values
 
 - 
STROKE_SHAPEpublic static final int STROKE_SHAPE - See Also:
- Constant Field Values
 
 - 
STROKE_BORDERpublic static final int STROKE_BORDER - See Also:
- Constant Field Values
 
 - 
STROKE_DOUBLEpublic static final int STROKE_DOUBLE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
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.
 - 
boundspublic RMRect bounds() Returns 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).
 - 
getXYpublic RMPoint getXY() Returns the XY location of the shape as a point.
 - 
setXYpublic void setXY(java.awt.geom.Point2D aPoint) Sets 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).
 - 
getSizepublic RMSize getSize() Returns the size of the shape.
 - 
setSizepublic void setSize(RMSize aSize) Sets the size of the shape.
 - 
setSizepublic void setSize(double aWidth, double aHeight)Sets the size of the shape.
 - 
getBoundspublic RMRect getBounds() Returns the X, Y, width and height of the shape as a rect (use getFrame if shape has roll/scale/skew).
 - 
setBoundspublic void setBounds(java.awt.geom.Rectangle2D aRect) Sets 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.
 - 
getFramepublic RMRect getFrame() Returns the rect in parent coords that fully encloses the shape.
 - 
setFramepublic void setFrame(java.awt.geom.Rectangle2D aRect) Sets 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.
 - 
getFrameXYpublic RMPoint getFrameXY() Returns the origin of the shape's bounds rect in parent coords.
 - 
setFrameXYpublic void setFrameXY(RMPoint aPoint) Sets 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.
 - 
getXYPpublic RMPoint getXYP() Returns 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).
 - 
getBoundsInsidepublic RMRect getBoundsInside() Returns the bounds of the shape in the shape's own coords.
 - 
getBoundsMarkedpublic RMRect getBoundsMarked() Returns the bounds of the path associated with this shape in local coords, adjusted to account for stroke width.
 - 
getBoundsMarkedDeeppublic RMRect getBoundsMarkedDeep() Returns 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).
 - 
getRSSprotected RMShapeRSS getRSS() Returns the roll scale skew object.
 - 
getStrokepublic RMStroke getStroke() Returns the stroke for this shape.
 - 
setStrokepublic void setStroke(RMStroke aStroke) Sets the stroke for this shape, with an option to turn on drawsStroke.
 - 
getDisplayedStrokepublic RMStroke 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) 
 - 
getDashArrayStringpublic java.lang.String getDashArrayString() Returns the dash array for this stroke as a string.
 - 
setDashArrayStringpublic void setDashArrayString(java.lang.String aString) Sets the dash array for this stroke from a string.
 - 
getFillpublic RMFill getFill() Returns the fill for this shape.
 - 
setFillpublic void setFill(RMFill aFill) Sets the fill for this shape.
 - 
getDisplayedFillpublic RMFill getDisplayedFill() 
 - 
isUseFillpublic boolean isUseFill() 
 - 
setUseFillpublic void setUseFill(boolean useFill) 
 - 
getEffectpublic RMEffect getEffect() Returns the effect for this shape.
 - 
setEffectpublic void setEffect(RMEffect anEffect) Sets the effect for this shape.
 - 
getColor@Nonnull public RMColor getColor() Returns the color of the shape.
 - 
setColorpublic void setColor(RMColor aColor) Sets the color of the shape.
 - 
getStrokeColorpublic RMColor getStrokeColor() Returns the stroke color of the shape.
 - 
setStrokeColorpublic void setStrokeColor(RMColor aColor) Sets 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.
 - 
getLayoutInfopublic java.lang.Object getLayoutInfo() Returns an object describing layout paramaters of this shape in its parent's layout.
 - 
setLayoutInfopublic void setLayoutInfo(java.lang.Object theLayoutInfo) Sets an object describing layout parameters of this shape in its parent's layout.
 - 
getAutosizingpublic java.lang.String getAutosizing() Returns the autosizing settings as a string with hyphens for struts and tilde for springs (horiz,vert).
 - 
setAutosizingpublic void setAutosizing(java.lang.String aValue) Sets the autosizing settings as a string with hyphens for struts and tilde for sprints (horiz,vert).
 - 
getAutosizingDefaultpublic java.lang.String getAutosizingDefault() Returns 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.
 - 
getTextColorpublic RMColor getTextColor() Returns the text color for the shape.
 - 
setTextColorpublic void setTextColor(RMColor aColor) Sets the text color for the shape.
 - 
isFontSetpublic boolean isFontSet() Returns whether font has been set.
 - 
getFontpublic RMFont getFont() Returns the font for the shape (defaults to parent font).
 - 
setFontpublic void setFont(RMFont aFont) Sets the font for the shape.
 - 
isUnderlinedpublic boolean isUnderlined() Returns whether the shape is underlined.
 - 
setUnderlinedpublic void setUnderlined(boolean aFlag) Sets the shape to underline.
 - 
getOutlinepublic RMXString.Outline getOutline() Returns the outline for the shape.
 - 
setOutlinepublic void setOutline(RMXString.Outline anOutline) Sets the outline for the shape.
 - 
getAlignmentpublic RMTypes.Align getAlignment() Returns the alignment.
 - 
setAlignmentpublic void setAlignment(RMTypes.Align anAlign) Sets the alignment.
 - 
getAlignmentXpublic RMTypes.AlignX getAlignmentX() Returns the horizontal alignment.
 - 
setAlignmentXpublic void setAlignmentX(RMTypes.AlignX anAlignX) Sets the horizontal alignment.
 - 
getAlignmentYpublic RMTypes.AlignY getAlignmentY() Returns the vertical alignment.
 - 
setAlignmentYpublic void setAlignmentY(RMTypes.AlignY anAlignX) Sets the vertical alignment.
 - 
getFormat@Nullable public RMFormat getFormat() Returns the format for the shape.
 - 
setFormatpublic void setFormat(RMFormat aFormat) Sets the format for the shape.
 - 
addDeepChangeListenerpublic void addDeepChangeListener(DeepChangeListener aListener) Adds a deep change listener to shape to listen for shape changes and property changes received by shape.
 - 
removeDeepChangeListenerpublic void removeDeepChangeListener(DeepChangeListener aLstnr) Removes a deep change listener from shape.
 - 
propertyChangepublic void propertyChange(java.beans.PropertyChangeEvent anEvent) Property change listener implementation.- Specified by:
- propertyChangein interface- java.beans.PropertyChangeListener
 
 - 
deepChangepublic void deepChange(java.beans.PropertyChangeListener aListener, java.beans.PropertyChangeEvent anEvent)Deep property change listener implementation.- Specified by:
- deepChangein interface- DeepChangeListener
 
 - 
getName@Nonnull public java.lang.String getName() Returns the name for the shape.
 - 
setNamepublic void setName(java.lang.String aName) Sets the name for the shape.
 - 
getURLpublic java.lang.String getURL() Sets the URL for the shape.
 - 
setURLpublic void setURL(java.lang.String aURL) Returns the URL for the shape.
 - 
getHoverpublic java.lang.String getHover() Sets the Hover string for the shape.
 - 
setHoverpublic void setHover(java.lang.String aString) Returns 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).
 - 
getTimelinepublic RMTimeline getTimeline() Returns the timeline for animating shape property changes.
 - 
getTimelinepublic RMTimeline getTimeline(boolean create) Returns the timeline for animating shape property changes, with an option to create if absent.
 - 
setTimelineprotected void setTimeline(RMTimeline aTimeline) Sets 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.
 - 
getpublic java.lang.Object get(java.lang.String aName) Returns 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.
 - 
putpublic java.lang.Object put(java.lang.String aName, java.lang.Object anObj)Sets an Object to be associated with the given name for the shape.
 - 
getpublic java.lang.Object get(java.lang.String aName, java.lang.Object aDefault)Returns the object associated with given key, using the given default if not found.
 - 
getPathpublic RMPath getPath() Returns the shape's path.
 - 
getPathInBoundspublic RMPath getPathInBounds() Returns the shape's path scaled to the shape's current bounds.
 - 
getMaskPathpublic RMPath getMaskPath() Returns 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.
 - 
getParentpublic RMParentShape getParent() Returns the parent of this shape.
 - 
setParentpublic void setParent(RMParentShape aShape) Sets the parent of this shape (called automatically by addChild()).
 - 
getParentpublic <T extends RMShape> T getParent(java.lang.Class<T> aClass) Returns 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.
 - 
getChildpublic RMShape getChild(int anIndex) Returns the child at given index.
 - 
getChildrenpublic java.util.List<RMShape> getChildren() Returns the children list.
 - 
getRootShapepublic RMShape getRootShape() Returns the top level shape (usually an RMDocument).
 - 
getDocumentpublic RMDocument getDocument() Returns the RMDocument ancestor of this shape (or null if not there).
 - 
getPageShapepublic RMParentShape getPageShape() Returns the RMPage ancestor of this shape (or null if not there).
 - 
getUndoerpublic RMUndoer getUndoer() Returns the undoer for this shape (or null if not there).
 - 
undoerSetUndoTitlepublic void undoerSetUndoTitle(java.lang.String aTitle) Undoer 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).
 - 
getAncestorpublic RMShape getAncestor(int anIndex) Returns the ancestor at the given index (parent is ancestor 0).
 - 
isAncestorpublic boolean isAncestor(RMShape aShape) Returns true if given shape is one of this shape's ancestors.
 - 
isDescendantpublic boolean isDescendant(RMShape aShape) Returns true if given shape is one of this shape's descendants.
 - 
getAncestorInCommonpublic RMShape getAncestorInCommon(RMShape aShape) Returns first ancestor that the given shape and this shape have in common.
 - 
getShapesToAncestor@Nonnull public java.util.List<RMShape> getShapesToAncestor(RMShape aShape) Returns a list of shapes from this shape to a given ancestor, inclusive.
 - 
getShapesToDescendant@Nonnull public java.util.List<RMShape> getShapesToDescendant(RMShape aShape) Returns a list of shape's from this shape to given descendant, inclusive.
 - 
getShapesToShape@Nonnull public java.util.List<RMShape> getShapesToShape(RMShape aShape) Returns a list of shapes from this shape to given shape.
 - 
getTransformpublic RMTransform getTransform() Returns the transform to this shape from its parent.
 - 
getTransformInversepublic RMTransform getTransformInverse() Returns the transform from this shape to its parent.
 - 
getTransformToShapepublic RMTransform getTransformToShape(RMShape aShape) Returns the transform from this shape to the given shape.
 - 
getTransformFromShapepublic RMTransform getTransformFromShape(RMShape aShape) Returns the transform from the given shape to this shape.
 - 
convertPointToShapepublic RMPoint convertPointToShape(RMPoint point, RMShape shape) Converts the given point to the given shape's coords (returns it for convenience).
 - 
convertPointFromShapepublic RMPoint convertPointFromShape(RMPoint point, RMShape shape) Converts the given point to the given shape's coords (returns it for convenience).
 - 
convertVectorToShapepublic RMSize convertVectorToShape(RMSize size, RMShape shape) Converts the given size (as a vector) to the given shape's coords (returns it for convenience).
 - 
convertVectorFromShapepublic RMSize convertVectorFromShape(RMSize size, RMShape shape) Converts the given size (as a vector) from the given shape's coords (returns it for convenience).
 - 
convertRectToShapepublic RMRect convertRectToShape(RMRect rect, RMShape shape) Converts the given rect to the given shape's coords (returns it for convenience).
 - 
convertRectFromShapepublic RMRect convertRectFromShape(RMRect rect, RMShape shape) Converts the given rect from the given shape's coords (returns it for convenience).
 - 
convertedPointToShapepublic RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape) Returns the given point converted to the given shape's coords.
 - 
convertedPointFromShapepublic RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape) Returns the given point converted from the given shape's coords.
 - 
convertedVectorToShapepublic RMSize convertedVectorToShape(RMSize aSize, RMShape aShape) Returns the given size converted to the given shape's coords and normalized.
 - 
convertedVectorFromShapepublic RMSize convertedVectorFromShape(RMSize aSize, RMShape aShape) Returns the given size converted from the given shape's coords and normalized.
 - 
convertedRectToShapepublic RMRect convertedRectToShape(RMRect aRect, RMShape aShape) Returns the rect encompassing the given rect converted to the given shape's coords.
 - 
convertedRectFromShapepublic RMRect convertedRectFromShape(RMRect aRect, RMShape aShape) Returns the rect encompassing the given rect converted from the given shape's coords.
 - 
convertPathToShapepublic RMPath convertPathToShape(RMPath aPath, RMShape aShape) Returns the given path converted to the given shape's coords.
 - 
convertPathFromShapepublic RMPath convertPathFromShape(RMPath aPath, RMShape aShape) Returns the given path converted from the given shape's coords.
 - 
convertToShapepublic void convertToShape(RMShape aShape) Transforms the given shape to this shape's coords.
 - 
convertFromShapepublic void convertFromShape(RMShape aShape) Transforms 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.
 - 
divideShapeFromTop@Nonnull public RMShape divideShapeFromTop(double anAmount) Divides 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).
 - 
divideShapeFromEdge@Nonnull public RMShape divideShapeFromEdge(double anAmount, byte anEdge, RMShape aNewShape) Divides 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.
 - 
createDivideShapeRemainder@Nonnull protected RMShape createDivideShapeRemainder(byte anEdge) Creates a shape suitable for the "remainder" portion of a divideShape call (just a clone by default).
 - 
getAnimatorpublic RMAnimator getAnimator() Returns the animator that this shape registers changes with.
 - 
getAnimatorpublic RMAnimator getAnimator(boolean create) Returns the animator that this shape registers changes with (creating, if requested and currently null).
 - 
getChildAnimatorpublic RMAnimator getChildAnimator() Returns the animator that this shape's children use.
 - 
getChildAnimatorpublic RMAnimator getChildAnimator(boolean create) Returns 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).
 - 
addMouseListenerpublic void addMouseListener(RMShapeMouseListener aListener) Add mouse listener.
 - 
removeMouseListenerpublic void removeMouseListener(RMShapeMouseListener aLsnr) Remove mouse listener.
 - 
acceptsMousepublic boolean acceptsMouse() Returns whether shape accepts mouse events.
 - 
mousePressedpublic void mousePressed(RMShapeMouseEvent anEvent) Handles mouse pressed events.
 - 
mouseDraggedpublic void mouseDragged(RMShapeMouseEvent anEvent) Handles mouse dragged events.
 - 
mouseReleasedpublic void mouseReleased(RMShapeMouseEvent anEvent) Handles mouse released events.
 - 
mouseClickedpublic void mouseClicked(RMShapeMouseEvent anEvent) Handles mouse clicked events.
 - 
mouseEnteredpublic void mouseEntered(RMShapeMouseEvent anEvent) Handles mouse entered events.
 - 
mouseMovedpublic void mouseMoved(RMShapeMouseEvent anEvent) Handles mouse moved events.
 - 
mouseExitedpublic void mouseExited(RMShapeMouseEvent anEvent) Handles mouse exited events.
 - 
containspublic boolean contains(RMPoint aPoint) Returns whether this shape is hit by the point, given in this shape's parent's coords.
 - 
intersectspublic boolean intersects(RMPath aPath) Returns whether this shape is hit by the path, given in this shape's parent's coords.
 - 
getDatasetKeypublic java.lang.String getDatasetKey() Returns the dataset key associated with this shape.
 - 
getDatasetEntity@Nullable public Entity getDatasetEntity() Returns the entity this shape should show in keys browser.
 - 
getPropertyNamespublic java.util.List<java.lang.String> getPropertyNames() Returns the property names for helper's instance class.
 - 
getPropertyNameMappedpublic java.lang.String getPropertyNameMapped(java.lang.String aName) Returns a mapped property name.
 - 
getPropertyNamesprotected void getPropertyNames(java.util.List<java.lang.String> aList) Returns the property names for RMShape.
 - 
getBindingCountpublic int getBindingCount() Returns the number of bindings associated with shape.
 - 
getBindingpublic Binding getBinding(int anIndex) Returns the individual binding at the given index.
 - 
getBindingsprotected java.util.List<Binding> getBindings(boolean doCreate) Returns the list of bindings, with an option to create if missing.
 - 
addBindingpublic void addBinding(Binding aBinding) Adds the individual binding to the shape's bindings list.
 - 
removeBindingpublic Binding removeBinding(int anIndex) Removes the binding at the given index from shape's bindings list.
 - 
getBinding@Nullable public Binding getBinding(java.lang.String aPropertyName) Returns the individual binding with the given property name.
 - 
removeBindingpublic boolean removeBinding(java.lang.String aPropertyName) Removes the binding with given property name.
 - 
addBindingpublic void addBinding(java.lang.String aPropName, java.lang.String aKey)Adds a binding for given name and key.
 - 
isEnabledpublic boolean isEnabled(UIEvent.Type aType) Returns whether given event is enabled.
 - 
setEnabledpublic void setEnabled(UIEvent.Type aType, boolean aValue) Sets whether given event is enabled.
 - 
getEventAdapterpublic RMShapeEventAdapter getEventAdapter(boolean doCreate) Returns the ShapeEventAdapter for this shape.
 - 
clone@Nonnull public RMShape clone() Standard implementation of Object clone. Nulls out shape's parent and children.- Overrides:
- clonein class- RMListenerList
 
 - 
cloneDeeppublic RMShape cloneDeep() Clones all attributes of this shape with complete clones of its children as well.
 - 
copyShapepublic void copyShape(RMShape aShape) Copies basic shape attributes from given RMShape (location, size, fill, stroke, roll, scale, name, url, etc.).
 - 
rpgAll@Nonnull public RMShape rpgAll(ReportOwner anRptOwner, RMShape aParent) Generate report with report owner.
 - 
rpgShape@Nonnull protected RMShape rpgShape(ReportOwner anRptOwner, RMShape aParent) Generate report with report owner.
 - 
rpgBindingspublic void rpgBindings(ReportOwner anRptOwner, RMShape aShapeRPG) Report generation for URL and bindings.
 - 
resolvePageReferencesprotected void resolvePageReferences(ReportOwner aRptOwner, java.lang.Object userInfo) Replaces 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.
 - 
repaintprotected void repaint(RMShape aShape) Visual 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).
 - 
paintpublic void paint(RMShapePainter aPntr) Top-level generic shape painting - sets transform and opacity then does a paintAll. If a effect is present, has it paint instead of doing paintAll.
 - 
paintShapeAllpublic void paintShapeAll(RMShapePainter aPntr) Calls paintShape, paintShapeChildren and paintShapeOver.
 - 
paintShapepublic void paintShape(RMShapePainter aPntr) Basic shape painting - paints shape fill and stroke.
 - 
paintShapeChildrenpublic void paintShapeChildren(RMShapePainter aPntr) Paints shape children.
 - 
paintShapeOverpublic void paintShapeOver(RMShapePainter aPntr) Paints after (on top) of children.
 - 
getStrokeOnToppublic boolean getStrokeOnTop() Returns whether to stroke on top.
 - 
getClipShapepublic java.awt.Shape getClipShape() Returns clip shape for shape.
 - 
getChildClipShapepublic java.awt.Shape getChildClipShape() Returns clip shape to be used for children.
 - 
getVisbileBoundspublic java.awt.Shape getVisbileBounds() Returns the visible bounds in shape coords, by intersecting this shape's bounds with ancester clip and child clip.
 - 
getVisibleBoundspublic java.awt.Shape getVisibleBounds(RMRect aRect) Returns the visible bounds of given rect in shape coords, by intersecting rect with ancester clip and child clip.
 - 
getVisibleBoundspublic java.awt.Shape getVisibleBounds(RMShape anAncestor) Returns the visible bounds in given ancestor coords, by intersecting this shape's bounds with ancester clip and child clip.
 - 
getVisibleBoundspublic java.awt.Shape 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.
 - 
animUpdatepublic void animUpdate(java.beans.PropertyChangeEvent anEvent) Called to update shape anim.- Overrides:
- animUpdatein class- RMObject
 
 - 
isAnimPropertypublic boolean isAnimProperty(java.lang.String aPropertyName) Returns whether given property name is anim property.
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML Archival.- Specified by:
- toXMLin interface- Archivable
 
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Specified by:
- fromXMLin interface- Archivable
 
 
- 
 
-