Package com.reportmill.shape
Class RMShape
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.shape.RMShape
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
- Direct Known Subclasses:
- BarcodeShape,- LineGraph,- RJShape,- RMCellTable,- RMCrossTab,- RMDocument,- RMGraph,- RMGraphBar.RMGraphBarView,- RMGraphPie.RMGraphPieView,- RMGraphRPG,- RMLabel,- RMLabels,- RMLineSegment,- RMNestedDoc,- RMOval,- RMPage,- RMPolygon,- RMRectangle,- RMScene3D,- RMSound,- RMSplitShape,- RMSwitchShape,- RMTableGroup,- RMTableRPG
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);
 - 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final bytestatic final byte
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanEditor method.booleanEditor method.booleanReturns whether the shape can accept a format.booleanViewer method.voidAdds the given child to the end of this shape's children list.voidAdds the given child to this shape's children list at the given index.voidaddChildBelowLastChild(RMShape aChild) Adds the given child to the end of this shape's children list at a y position just below previously last child.bounds()Returns raw x, y, width and height of shape as rect (preserves possible negative sizes).voidNotifies a shape and its parents that its bounds changed.voidboundsChanged(RMShape aShape) Notifies this shape that a given shape's bounds have changed (presumably a descendant).voidbringShapesToFront(List shapes) Moves the subset of children in the given list to the front of the children list.booleanEditor method.booleanEditor method.clone()Standard implementation of Object clone.Clones all attributes of this shape with complete clones of its children as well.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.convertedSizeFromShape(RMSize aSize, RMShape aShape) Returns the given size converted from the given shape's coords.convertedSizeToShape(RMSize aSize, RMShape aShape) Returns the given size 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).convertSizeFromShape(RMSize size, RMShape shape) Converts the given size from the given shape's coords (returns it for convenience).convertSizeToShape(RMSize size, RMShape shape) Converts the given size 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 all the attributes of the given object that are in common with this object.voidCopies basic shape attributes from given RMShape (location, size, fill, stroke, roll, scale, name, url, etc.).voiddelete()Called when a shape is removed from a shape heirarchy.voidUndo support.divideShapeFromEdge(float amount, byte edge, RMShape newShape) Divides the shape by a given amount from the given edge.divideShapeFromTop(float amount) Divides the shape by a given amount from the top.voiddragExit()Editor method.voiddragKeyAtPoint(String aKey, RMPoint aPoint) Editor method.voiddropKeyAtPoint(String aKey, RMPoint aPoint) Editor method.booleanStandard implementation of Object equals.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.voidfromXMLDeep(RXArchiver anArchiver, RXElement anElement) XML unarchival for shape childrenReturns the Object associated with the given name for the shape.Sets the ActionScript for the shape.getAnim()Returns the collection of animation records for this shape.getAnim(boolean create) Returns the collection of animation records for this shape, with an option to create if absent.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).booleanReturns whether the shape's height is set automatically to its ideal height during report generation.Returns the autosizing settings as a string with hyphens for struts and tilde for sprints (horiz,vert).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 parent coords, ajusted to account for stroke width.Returns bounds of all children of this shape, which can sometimes differ from this shapes bounds.getBoundsOfChildren(List aList) Returns the bounds of a given subset of this shape's children.Returns the bounds of the shape in parect coords when super selected (same as getBoundsMarked by default).booleanReturns whether this shape causes text wrap.byteReturns how this shape causes text wrap.getChild(int anIndex) Returns the child at the 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).getChildContaining(RMPoint aPoint) Returns the first (top) shape hit by the point given in this shape's coords.intReturns the number of children associated with this shape.Returns the last child of this shape.Returns the list of children associated with this shape.getChildrenIntersecting(RMPath aPath) Returns the child shapes hit by the path given in this shape's coords.getChildrenWhoCauseWrap(RMShape aPeer) Returns the subset of children that cause wrap.Returns the subset of children that should be drawn (useful for implementing page layering).Returns the subset of children that should be used for hit detection (useful for implementing page layering).getChildSortedByX(int anIndex) Returns the child at a given index, ordered by X (left-to-right) ordergetChildWithClass(Class aClass) Returns first child found with the given class (called recursively on children if not found at current level).getChildWithName(String aName) Returns first child found with the given name (called recursively on children if not found at current level).getColor()Returns the color of the shape.getCommonAncestor(RMShape aShape) Returns first ancestor that the given shape and this shape have in common.Returns the RMDocument ancestor of this shape (or null if not there).getFill()Returns the fill for this shape.getFill(int anIndex) Returns the specific fill at the given index.Returns the specific fill with the given class.intReturns the number of fills associated with this shape.getFills()Returns this list of fills - a special list that can be operated on directly.getFont()Returns the font for the shape.Returns the format for the shape.getFrame()Returns the rect in parent coords that fully encloses the shape.Returns the rect that fully encloses the receiver in the given shape's coords.floatReturns the max X of the shape's frame.floatReturns the max Y of the shape's frame.floatReturns 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.floatReturns the Y of the rect that fully encloses the shape in parent coords.getGroupShape(List shapes) Returns a newly created RMShape whose bounds has been set to the combined bounds of the subset of children in the given list.floatReturns the height of the shape.floatReturns the ideal height of this shape to accommodate its contents (just the current height for most shapes).Returns the imageFill for this shape (or null, if fill isn't an RMImageFill).floatReturns the line width of the shape's stroke in printer points.Returns the "List Key" associated with this shape.Returns the concatenated list keys of this shape and its parents (useful for nested list key shapes.Returns the real shape used to resolve the list key for this shape.floatgetMaxX()Returns the max X of the shape (assumes not rotated, scaled or skewed).floatgetMaxY()Returns the max Y of the shape (assumes not rotated, scaled or skewed).getName()Returns the name for the shape.floatReturns the opactiy 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 number of pages associated with this shape.Returns the RMPage ancestor of this shape (or null if not there).Returns the parent of this shape.intReturns the number of ancestors (from this shape's parent up to the document).Returns a list of this shape's parent, and that shape's parent, up to document.getPath()Returns the shape's path.Returns the shape's path scaled to the shape's current bounds.getPropertyKey(String aName) Returns the specific property key for the given property name.intReturns the number of property keys (like IsVisible, FillColor, StrokeColor, Width, etc.)getPropertyKeyName(int anIndex) Returns the specific settable property key name at the given index.floatgetRoll()Returns the roll of the shape.Returns the top level shape (usually an RMDocument).floatReturns the scale of the X axis of the shape.floatReturns the scale of the Y axis of the shape.getShapesToAncestor(RMShape shape) Returns a list of shapes from this shape to a given ancestor.getShapesToDescendant(RMShape aShape) Returns a list of shape's from this shape to given desendant.getShapesToShape(RMShape aShape) Returns a list of shapes from this shape to given shape.getSize()Returns the size of the shape.getSizeP()Returns the size of the shape in parent coords.floatgetSkewX()Returns the skew of the X axis of the shape.floatgetSkewY()Returns the skew of the Y axis of the shape.Returns the stroke for this shape.Returns the stroke color of the shape.Returns the text color for the shape.Editor method - returns the tool class name for this shape.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 it's 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.floatgetWidth()Returns the width of the shape.floatReturns the ideal width of this shape to accommodate its contents (just the current width for most shapes).floatgetX()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.floatgetY()Returns the Y location of the shape.groupShapes(List shapes, RMShape groupShape) Adds the subset of children in given list into a given group shape, which is then added back to receiver.booleanPage number resolution.floatheight()Returns raw height of shape.intindexOf()Returns the index of this child in its parent.intReturns the index of the given child in this shape's children list.initWithArchiver(RMArchiver anArchiver) Legacy unarchival.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.booleanisDescendant(RMShape aShape) Returns true if given shape is one of this shape's descendants.booleanisLocked()Returns the locked state of the shape (really just to prevent location/size changes in the editor).booleanisRoot()Editor method - returns whether this shape is at the top level (usually RMPage).booleanReturns whether the shape is underlined.voidmouseDragged(RMViewer aViewer, MouseEvent anEvent) Viewer method.voidmouseEntered(RMViewer aViewer, MouseEvent anEvent) Viewer method.voidmouseExited(RMViewer aViewer, MouseEvent anEvent) Viewer method.voidmouseMoved(RMViewer aViewer, MouseEvent anEvent) Viewer method.voidmousePressed(RMViewer aViewer, MouseEvent anEvent) Viewer method.voidmouseReleased(RMViewer aViewer, MouseEvent anEvent) Viewer method.booleannotRSS()Returns whether the shape has been rotated, scaled or skewed (for efficientency).voidoffsetChildrenXY(float dx, float dy) Offsets this shape's children by the given dx, dy.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.intPage number resolution.intPage number resolution.intpageMax()Page number resolution.voidSets an Object to be associated with the given name for the shape.voidputPropertyKey(String aName, String aKey) Puts the specific property key for the given property name.voidEnsures that children associated with this shape know who's their daddy.voidremoveChild(int anIndex) Remove's the child at the given index from this shape's children list.voidremoveChild(RMShape aChild) Removes the given child from this shape's children list.voidRemoves all children from this shape.voidRemoves the given list of children from this shape.voidRemoves this shape from it's parent.voidresolvePageReferences(ReportMill rm, Object userInfo) Replaces all @Page@ style keys with their actual values for this shape and it's children.rpgClone(ReportMill rm) A clone implementation that copies this shape and its children, performing data substituion as well.An rpgClone hook to provide the basic rpgClone (default implementation just calls Object clone).voidrpgCloneChildren(ReportMill rm, RMShape copy) An rpgClone hook to rpgClone a shape's children.voidAn rpgClone hook called by RMDocument after this shape's page is rpgCloned.voidrpgCloneNotification(ReportMill aReportMill, RMShape copy) An rpgClone hook to call ReportMill's rpgClone notification, if shape is named.voidAn rpgClone hook called by RMDocument before this shape's page is rpgCloned.voidAn rpgClone hook called by RMDocument on all children before anything else.voidrpgCloneUrl(ReportMill aReportMill, RMShape rpgClone) An rpgClone hook to clone a shape's URL with data substitution.voidsendShapesToBack(List shapes) Moves the subset of children in the given list to the back of the children list.voidsetActionScript(String aString) Returns the ActionScript for the shape.voidsetAnim(RMShapeAnim anAnim) Sets the collection of animation records for this shape.voidsetAutosizeHeight(boolean aValue) Sets whether the shape's height is set automatically to its ideal height during report generation.voidsetAutosizing(String aVal) Sets the autosizing settings as a string with hyphens for struts and tilde for sprints (horiz,vert).voidsetBounds(double x, double y, double w, double h) 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.voidsetCausesWrapType(byte aType) Sets how this shape causes text wrap.voidsetChildren(List aList) Sets the list of children associated with this shape.voidSets the color of the shape.voidSets the fill for this shape.voidSets the font for the shape.voidSets the format for the shape.voidsetFrame(double x, double y, double w, double h) Sets the bounds of the shape such that it exacly fits in the given parent coord rect.voidsetFrame(Rectangle2D aRect) Sets the bounds of the shape such that it exacly fits in the given parent coord rect.voidsetFrameSize(double w, double h) Sets a shape's size such that its frame (enclosing rect in parent coords) will have the given width and height.voidsetFrameX(double x) Sets a shape's X such that its bounds rect (in parent coords) has origin at the given X.voidsetFrameXY(double x, double y) 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 y) Sets a shape's Y such that its bounds rect (in parent coords) has origin at the given Y.voidsetHeight(double aHeight) Sets the height of the shape.voidsetHeightDeep(float h) Sets the height of this shape and its children (proportionally using their autosizing).voidsetHeightDeep(float h, boolean c) Sets the height of this shape and its children (proportionally using their autosizing).voidSets the shape to its getHeightToFit (which is just the current height for most shapes).voidsetLineWidth(float aValue) Sets the line width of the shape's stroke in printer points.voidsetListKey(String aKeyPath) Sets the List Key associated with this shape.voidsetLocked(boolean aValue) Sets the locked state of the shape (really just to prevent location/size changes in the editor).voidSets the name for the shape.voidVisual change notification - call before making changes that will require repaint.voidsetNeedsRepaint(RMShape aShape) Visual change notification - call before making changes that will require repaint.voidsetOpacity(float aValue) Sets the opactiy of the shape (1 for opaque, 0 for transparent).voidsetOutline(RMXString.Outline anOutline) Sets the outline for the shape.voidSets the parent of this shape (called automatically by addChild()).voidsetRoll(float aValue) Sets the roll of the shape.voidsetScaleX(float aValue) Sets the scale of the X axis of the shape.voidsetScaleXY(float sx, float sy) Sets the scale of the X and Y axis.voidsetScaleY(float aValue) Sets the scale of the Y axis of the shape.voidsetSize(double width, double height) Sets the size of the shape.voidSets the size of the shape.voidsetSizeDeep(float aWidth, float aHeight) Sets the size of this shape and its children (proportionally using their autosizing).voidsetSizeP(double w, double h) Sets the size of the shape to the given width and height in parent's coords.voidSets the shape to its ideal size from getWidthToFit and getHeightToFit.voidsetSizeToFit(float maxWidth, float maxHeight) This convenience method sets the shape to its ideal size from getWidthToFit and getHeightToFit, allowing you to additionally specify a maxWidth and maxHeight.voidsetSkewX(float aValue) Sets the skew of the X axis of the shape.voidsetSkewXY(float skx, float sky) Sets the skew of the X and Y axis.voidsetSkewY(float 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.voidsetTextColor(RMColor aColor) Sets the text color for the shape.voidsetTime(float aTime) Tells the shape's anim records to update the shape to the given time.voidsetUnderlined(boolean aFlag) Sets the shape to underline.voidReturns the URL for the shape.voidsetWidth(double aWidth) Sets the width of the shape.voidsetWidthDeep(float w) Sets the width of this shape and its children (proportionally using their autosizing).voidsetWidthDeep(float w, boolean c) Sets the width of this shape and its children (proportionally using their autosizing).voidSets the shape to its getWidthToFit (which is just the current width for most shapes).voidsetX(double x) Sets the X location of the shape.voidsetXY(double x, double y) 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(float x, float y) Sets the origin point of the shape to the given X and Y in parent's coords.voidsetY(double y) Sets the Y location of the shape.booleanEditor method.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.Undo support.voidUndo support.booleanundoEquals(RMObject anObj) Undo support.voidundoerAddDirtyObject(RMObject anObj) Undoer convenience - tells undoer to add a dirty object.voidUndoer convenience - disable the undoer.voidUndoer convenience - enables the undoer.voidundoerSetUndoTitle(String aTitle) Undoer convenience - sets title of next registered undo.floatwidth()Returns raw width of shape.voidChange notification - call before making attribute changes (provides hook for undo support).voidChange notification - call before making attribute changes (provides hook for undo support).floatx()Returns raw x location of shape.floaty()Returns raw y location of shape.Methods inherited from class com.reportmill.base.RMObjectdidUndo, getAnimAttribute, getClassNameShort
- 
Field Details- 
WRAP_TYPE_NONEpublic static final byte WRAP_TYPE_NONE- See Also:
 
- 
WRAP_TYPE_BOTHpublic static final byte WRAP_TYPE_BOTH- See Also:
 
 
- 
- 
Constructor Details- 
RMShapepublic RMShape()Creates a plain shape.
- 
RMShapeCreates a shape with the same basic attributes as the given shape.
 
- 
- 
Method Details- 
xpublic float x()Returns raw x location of shape. Developers should use the more common getX, which presents positive x.
- 
ypublic float y()Returns raw y location of shape. Developers should use the more common getY, which presents positive y.
- 
widthpublic float width()Returns raw width of shape. Developers should use the more common getWidth, which presents positive width.
- 
heightpublic float 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 float getX()Returns the X location of the shape.
- 
setXpublic void setX(double x) Sets the X location of the shape.
- 
getYpublic float getY()Returns the Y location of the shape.
- 
setYpublic void setY(double y) Sets the Y location of the shape.
- 
getWidthpublic float getWidth()Returns the width of the shape.
- 
setWidthpublic void setWidth(double aWidth) Sets the width of the shape.
- 
getHeightpublic float getHeight()Returns the height of the shape.
- 
setHeightpublic void setHeight(double aHeight) Sets the height of the shape.
- 
getMaxXpublic float getMaxX()Returns the max X of the shape (assumes not rotated, scaled or skewed).
- 
getMaxYpublic float 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 x, double y) 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 width, double height) 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 x, double y, double w, double h) Sets X, Y, width and height of shape to given dimensions.
- 
getBoundsInsideReturns the bounds of the shape in the shape's own coords.
- 
offsetXYpublic void offsetXY(double dx, double dy) Offsets the X and Y location of the shape by the given dx & dy amount (convenience).
- 
getXYPReturns the origin point of the shape in parent's coords.
- 
setXYPpublic void setXYP(float x, float y) Sets the origin point of the shape to the given X and Y in parent's coords.
- 
getSizePReturns the size of the shape in parent coords.
- 
setSizePpublic void setSizeP(double w, double h) Sets the size of the shape to the given width and height in parent's coords.
- 
getFrameReturns the rect in parent coords that fully encloses the shape.
- 
setFrameSets the bounds of the shape such that it exacly fits in the given parent coord rect.
- 
setFramepublic void setFrame(double x, double y, double w, double h) Sets the bounds of the shape such that it exacly fits in the given parent coord rect.
- 
getFrameXpublic float getFrameX()Returns the X of the rect that fully encloses the shape in parent coords.
- 
setFrameXpublic void setFrameX(double x) Sets a shape's X such that its bounds rect (in parent coords) has origin at the given X.
- 
getFrameYpublic float getFrameY()Returns the Y of the rect that fully encloses the shape in parent coords.
- 
setFrameYpublic void setFrameY(double y) Sets a shape's Y such that its bounds rect (in parent coords) has origin at the given Y.
- 
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 x, double y) 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 w, double h) Sets a shape's size such that its frame (enclosing rect in parent coords) will have the given width and height.
- 
getFrameMaxXpublic float getFrameMaxX()Returns the max X of the shape's frame.
- 
getFrameMaxYpublic float getFrameMaxY()Returns the max Y of the shape's frame.
- 
getFrameReturns the rect that fully encloses the receiver in the given shape's coords.
- 
getRollpublic float getRoll()Returns the roll of the shape.
- 
setRollpublic void setRoll(float aValue) Sets the roll of the shape.
- 
getScaleXpublic float getScaleX()Returns the scale of the X axis of the shape.
- 
setScaleXpublic void setScaleX(float aValue) Sets the scale of the X axis of the shape.
- 
getScaleYpublic float getScaleY()Returns the scale of the Y axis of the shape.
- 
setScaleYpublic void setScaleY(float aValue) Sets the scale of the Y axis of the shape.
- 
setScaleXYpublic void setScaleXY(float sx, float sy) Sets the scale of the X and Y axis.
- 
getSkewXpublic float getSkewX()Returns the skew of the X axis of the shape.
- 
setSkewXpublic void setSkewX(float aValue) Sets the skew of the X axis of the shape.
- 
getSkewYpublic float getSkewY()Returns the skew of the Y axis of the shape.
- 
setSkewYpublic void setSkewY(float aValue) Sets the skew of the Y axis of the shape.
- 
setSkewXYpublic void setSkewXY(float skx, float sky) Sets the skew of the X and Y axis.
- 
notRSSpublic boolean notRSS()Returns whether the shape has been rotated, scaled or skewed (for efficientency).
- 
getFillCountpublic int getFillCount()Returns the number of fills associated with this shape.
- 
getFillReturns the specific fill at the given index.
- 
getFillReturns the specific fill with the given class.
- 
getFillsReturns this list of fills - a special list that can be operated on directly.
- 
getFillReturns the fill for this shape.
- 
setFillSets the fill for this shape.
- 
getStrokeReturns the stroke for this shape.
- 
setStrokeSets the stroke for this shape, with an option to turn on drawsStroke.
- 
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.
- 
getLineWidthpublic float getLineWidth()Returns the line width of the shape's stroke in printer points.
- 
setLineWidthpublic void setLineWidth(float aValue) Sets the line width of the shape's stroke in printer points.
- 
getOpacitypublic float getOpacity()Returns the opactiy of the shape (1 for opaque, 0 for transparent).
- 
setOpacitypublic void setOpacity(float aValue) Sets the opactiy of the shape (1 for opaque, 0 for transparent).
- 
getOpacityDeeppublic float getOpacityDeep()Returns the combined opacity of this shape and its parent.
- 
getImageFillReturns the imageFill for this shape (or null, if fill isn't an RMImageFill).
- 
getTextColorReturns the text color for the shape.
- 
setTextColorSets the text color for the shape.
- 
getNameReturns the name for the shape.
- 
setNameSets the name for the shape.
- 
getUrlSets the URL for the shape.
- 
setUrlReturns 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).
- 
getCausesWrappublic boolean getCausesWrap()Returns whether this shape causes text wrap.
- 
getCausesWrapTypepublic byte getCausesWrapType()Returns how this shape causes text wrap.
- 
setCausesWrapTypepublic void setCausesWrapType(byte aType) Sets how this shape causes text wrap.
- 
getPropertyKeyCountpublic int getPropertyKeyCount()Returns the number of property keys (like IsVisible, FillColor, StrokeColor, Width, etc.)
- 
getPropertyKeyNameReturns the specific settable property key name at the given index.
- 
getPropertyKeyReturns the specific property key for the given property name.
- 
putPropertyKeyPuts the specific property key for the given property name.
- 
getAnimReturns the collection of animation records for this shape.
- 
getAnimReturns the collection of animation records for this shape, with an option to create if absent.
- 
setAnimSets the collection of animation records for this shape.
- 
setTimepublic void setTime(float aTime) Tells the shape's anim records to update the shape to the given time. Recurses to shape children.
- 
getActionScriptSets the ActionScript for the shape.
- 
setActionScriptReturns the ActionScript for the shape.
- 
getReturns the Object associated with the given name for the shape.
- 
putSets an Object to be associated with the given name for the shape.
- 
getFontReturns the font for the shape.
- 
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.
- 
getFormatReturns the format for the shape.
- 
setFormatSets the format for the shape.
- 
acceptsFormatpublic boolean acceptsFormat()Returns whether the shape can accept a format.
- 
getAutosizingReturns the autosizing settings as a string with hyphens for struts and tilde for sprints (horiz,vert).
- 
setAutosizingSets the autosizing settings as a string with hyphens for struts and tilde for sprints (horiz,vert).
- 
getAutosizeHeightpublic boolean getAutosizeHeight()Returns whether the shape's height is set automatically to its ideal height during report generation.
- 
setAutosizeHeightpublic void setAutosizeHeight(boolean aValue) Sets whether the shape's height is set automatically to its ideal height during report generation.
- 
getPathReturns the shape's path.
- 
getPathInBoundsReturns the shape's path scaled to the shape's current bounds.
- 
setWidthDeeppublic void setWidthDeep(float w) Sets the width of this shape and its children (proportionally using their autosizing).
- 
setWidthDeeppublic void setWidthDeep(float w, boolean c) Sets the width of this shape and its children (proportionally using their autosizing).
- 
setHeightDeeppublic void setHeightDeep(float h) Sets the height of this shape and its children (proportionally using their autosizing).
- 
setHeightDeeppublic void setHeightDeep(float h, boolean c) Sets the height of this shape and its children (proportionally using their autosizing).
- 
setSizeDeeppublic void setSizeDeep(float aWidth, float aHeight) Sets the size of this shape and its children (proportionally using their autosizing).
- 
getBoundsOfChildrenReturns bounds of all children of this shape, which can sometimes differ from this shapes bounds.
- 
getBoundsOfChildrenReturns the bounds of a given subset of this shape's children.
- 
getBoundsSuperSelectedReturns the bounds of the shape in parect coords when super selected (same as getBoundsMarked by default).
- 
getBoundsMarkedReturns the bounds of the path associated with this shape in parent coords, ajusted to account for stroke width.
- 
getParentReturns the parent of this shape.
- 
setParentSets the parent of this shape (called automatically by addChild()).
- 
getParentsReturns a list of this shape's parent, and that shape's parent, up to document.
- 
getParentCountpublic int getParentCount()Returns the number of ancestors (from this shape's parent up to the document).
- 
getChildCountpublic int getChildCount()Returns the number of children associated with this shape.
- 
getChildReturns the child at the given index.
- 
getChildLastReturns the last child of this shape.
- 
getChildrenReturns the list of children associated with this shape.
- 
getChildSortedByXReturns the child at a given index, ordered by X (left-to-right) order
- 
setChildrenSets the list of children associated with this shape.
- 
reclaimChildrenpublic void reclaimChildren()Ensures that children associated with this shape know who's their daddy.
- 
indexOfpublic int indexOf()Returns the index of this child in its parent.
- 
indexOfReturns the index of the given child in this shape's children list.
- 
addChildAdds the given child to the end of this shape's children list.
- 
addChildAdds the given child to this shape's children list at the given index.
- 
addChildBelowLastChildAdds the given child to the end of this shape's children list at a y position just below previously last child.
- 
removeChildRemoves the given child from this shape's children list.
- 
removeChildpublic void removeChild(int anIndex) Remove's the child at the given index from this shape's children list.
- 
removeChildrenpublic void removeChildren()Removes all children from this shape.
- 
removeChildrenRemoves the given list of children from this shape.
- 
removeFromParentpublic void removeFromParent()Removes this shape from it's parent.
- 
deletepublic void delete()Called when a shape is removed from a shape heirarchy.
- 
getChildWithNameReturns first child found with the given name (called recursively on children if not found at current level).
- 
getChildWithClassReturns first child found with the given class (called recursively on children if not found at current level).
- 
offsetChildrenXYpublic void offsetChildrenXY(float dx, float dy) Offsets this shape's children by the given dx, dy.
- 
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.
- 
undoerAddDirtyObjectUndoer convenience - tells undoer to add a dirty object.
- 
isRootpublic boolean isRoot()Editor method - returns whether this shape is at the top level (usually RMPage).
- 
isAncestorReturns true if given shape is one of this shape's ancestors.
- 
isDescendantReturns true if given shape is one of this shape's descendants.
- 
getCommonAncestorReturns first ancestor that the given shape and this shape have in common.
- 
getShapesToDescendantReturns a list of shape's from this shape to given desendant.
- 
getShapesToAncestorReturns a list of shapes from this shape to a given ancestor.
- 
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 it's 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).
- 
convertSizeToShapeConverts the given size to the given shape's coords (returns it for convenience).
- 
convertSizeFromShapeConverts the given size 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.
- 
convertedSizeToShapeReturns the given size converted to the given shape's coords.
- 
convertedSizeFromShapeReturns the given size converted from the given shape's coords.
- 
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.
- 
getWidthToFitpublic float getWidthToFit()Returns the ideal width of this shape to accommodate its contents (just the current width for most shapes).
- 
setWidthToFitpublic void setWidthToFit()Sets the shape to its getWidthToFit (which is just the current width for most shapes).
- 
getHeightToFitpublic float getHeightToFit()Returns the ideal height of this shape to accommodate its contents (just the current height for most shapes).
- 
setHeightToFitpublic void setHeightToFit()Sets the shape to its getHeightToFit (which is just the current height for most shapes).
- 
setSizeToFitpublic void setSizeToFit()Sets the shape to its ideal size from getWidthToFit and getHeightToFit.
- 
setSizeToFitpublic void setSizeToFit(float maxWidth, float maxHeight) This convenience method sets the shape to its ideal size from getWidthToFit and getHeightToFit, allowing you to additionally specify a maxWidth and maxHeight.
- 
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.
- 
divideShapeFromTopDivides the shape by a given amount from the top. Returns a clone of the given shape with bounds set to the remainder. Divies children among the two shapes (recursively calling divide shape for those stradling).
- 
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).
- 
acceptsMousepublic boolean acceptsMouse()Viewer method.
- 
mousePressedViewer method.
- 
mouseDraggedViewer method.
- 
mouseReleasedViewer method.
- 
mouseEnteredViewer method.
- 
mouseMovedViewer method.
- 
mouseExitedViewer method.
- 
rpgCloneA clone implementation that copies this shape and its children, performing data substituion as well.
- 
rpgCloneBaseAn rpgClone hook to provide the basic rpgClone (default implementation just calls Object clone).
- 
rpgCloneUrlAn rpgClone hook to clone a shape's URL with data substitution.
- 
rpgCloneChildrenAn rpgClone hook to rpgClone a shape's children.
- 
rpgCloneNotificationAn rpgClone hook to call ReportMill's rpgClone notification, if shape is named.
- 
rpgClonePreprocessAn rpgClone hook called by RMDocument on all children before anything else.
- 
rpgClonePrepareAn rpgClone hook called by RMDocument before this shape's page is rpgCloned.
- 
rpgCloneConcludeAn rpgClone hook called by RMDocument after this shape's page is rpgCloned.
- 
resolvePageReferencesReplaces all @Page@ style keys with their actual values for this shape and it's children.
- 
getPageCountpublic int getPageCount()Returns the number of pages associated with this shape. This is generally zero, except for RMDocument's implementation. Additionally, transient RPG objects use this to declare if they have paginated themselves over multiple pages during rpgCloning.
- 
getListKeyReturns the "List Key" associated with this shape. A List Key is a key path that specifies a specific list of objects in the document's datasource.
- 
setListKeySets the List Key associated with this shape. Not all shapes support this (only List Key shapes, like table, graph, crosstab and labels). In fact this default implementation does nothing.
- 
getListKeyDeepReturns the concatenated list keys of this shape and its parents (useful for nested list key shapes.
- 
getListKeyShapeReturns the real shape used to resolve the list key for this shape. This seems bogus - might go soon.
- 
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.
- 
getChildContainingReturns the first (top) shape hit by the point given in this shape's coords.
- 
getChildrenIntersectingReturns the child shapes hit by the path given in this shape's coords.
- 
bringShapesToFrontMoves the subset of children in the given list to the front of the children list.
- 
sendShapesToBackMoves the subset of children in the given list to the back of the children list.
- 
groupShapesAdds the subset of children in given list into a given group shape, which is then added back to receiver.
- 
getGroupShapeReturns a newly created RMShape whose bounds has been set to the combined bounds of the subset of children in the given list.
- 
getChildrenWhoHitTestReturns the subset of children that should be used for hit detection (useful for implementing page layering).
- 
getChildrenWhoDrawReturns the subset of children that should be drawn (useful for implementing page layering).
- 
getChildrenWhoCauseWrapReturns the subset of children that cause wrap.
- 
cloneStandard implementation of Object clone. Null's out shape's parent and children.
- 
cloneDeepClones all attributes of this shape with complete clones of its children as well.
- 
equalsStandard implementation of Object equals.
- 
copyCopies all the attributes of the given object that are in common with this object.
- 
copyShapeCopies basic shape attributes from given RMShape (location, size, fill, stroke, roll, scale, name, url, etc.).
- 
initWithArchiverLegacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMObject
 
- 
toXMLXML Archival.
- 
fromXMLXML unarchival.
- 
fromXMLDeepXML unarchival for shape children
- 
willChangepublic void willChange()Change notification - call before making attribute changes (provides hook for undo support).
- 
willChangeChange notification - call before making attribute changes (provides hook for undo support).
- 
setNeedsRepaintpublic void setNeedsRepaint()Visual change notification - call before making changes that will require repaint.
- 
setNeedsRepaintVisual change notification - call before making changes that will require repaint.
- 
boundsChangedpublic void boundsChanged()Notifies a shape and its parents that its bounds changed.
- 
boundsChangedNotifies this shape that a given shape's bounds have changed (presumably a descendant).
- 
getToolClassNameEditor method - returns the tool class name for this shape.
- 
canBeUngroupedpublic boolean canBeUngrouped()Editor method.
- 
acceptsChildrenpublic boolean acceptsChildren()Editor method.
- 
sizesToFitChildrenpublic boolean sizesToFitChildren()Editor method.
- 
superSelectablepublic boolean superSelectable()Editor method - indicates whether this shape can be super selected.
- 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately()Editor method.
- 
acceptsDragKeyspublic boolean acceptsDragKeys()Editor method.
- 
dragKeyAtPointEditor method.
- 
dropKeyAtPointEditor method.
- 
dragExitpublic void dragExit()Editor method.
- 
toStringStandard to string implementation (prints class name and shape bounds).
- 
pagepublic int page()Page number resolution.
- 
pageMaxpublic int pageMax()Page number resolution.
- 
pageBreakMaxpublic int pageBreakMax()Page number resolution.
- 
pageBreakPageMaxpublic int pageBreakPageMax()Page number resolution.
- 
hasPageBreakspublic boolean hasPageBreaks()Page number resolution.
- 
undoEqualsUndo support.- Overrides:
- undoEqualsin class- RMObject
 
- 
undoCloneUndo support.
- 
undoCopyUndo support.
- 
didChangeUndo support.
 
-