Package com.reportmill.graphics
Class RMFill
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.graphics.RMFill
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 - Direct Known Subclasses:
- RMGradientFill,- RMImageFill,- RMStroke
 
 public class RMFill extends RMObject This class represents a simple shape fill, drawing a given color in a provided path. Subclasses support things like gradients, textures, drop-shadow, etc.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMFillderiveFill(RMColor aColor)Returns a fill just like the receiver, but with the given color (only interesting for subsclasses).booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMRectgetBounds(RMShape aShape, RMRect pathBounds)Returns the bounds required to render this fill for this shape.RMFillgetChild(int anIndex)Returns the individual child stroke at the given index for composite strokes.intgetChildCount()Returns the number of child strokes if this stroke is a composite stroke.RMColorgetColor()Returns the color associated with this fill.java.lang.ObjectinitWithArchiver(RMArchiver anArchiver)Legacy unarchival.voidpaintShape(RMShape aShape, RMPath aPath, java.awt.Graphics2D g2, RMShapePainter sp)Render this fill in a Java2D Graphics2D.voidsetColor(RMColor aColor)Sets the color associated with this fill.RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULTpublic static final RMFill DEFAULT 
 
- 
 - 
Constructor Detail- 
RMFillpublic RMFill() Creates a plain, black fill.
 - 
RMFillpublic RMFill(RMColor aColor) Creates a plain fill with the given color.
 
- 
 - 
Method Detail- 
getColorpublic RMColor getColor() Returns the color associated with this fill.
 - 
setColorpublic void setColor(RMColor aColor) Sets the color associated with this fill.
 - 
getChildCountpublic int getChildCount() Returns the number of child strokes if this stroke is a composite stroke.
 - 
getChildpublic RMFill getChild(int anIndex) Returns the individual child stroke at the given index for composite strokes.
 - 
getBoundspublic RMRect getBounds(RMShape aShape, RMRect pathBounds) Returns the bounds required to render this fill for this shape.
 - 
deriveFillpublic RMFill deriveFill(RMColor aColor) Returns a fill just like the receiver, but with the given color (only interesting for subsclasses).
 - 
paintShapepublic void paintShape(RMShape aShape, RMPath aPath, java.awt.Graphics2D g2, RMShapePainter sp) Render this fill in a Java2D Graphics2D.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- java.lang.Object
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.
 - 
initWithArchiverpublic java.lang.Object initWithArchiver(RMArchiver anArchiver) Legacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMObject
 
 
- 
 
-