Package com.reportmill.graphics
Class RMFill
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.graphics.RMFill
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
- Direct Known Subclasses:
- RMGradientFill,- RMImageFill,- RMStroke
This class represents a simple shape fill, drawing a given color in a provided path. Subclasses support things
 like gradients, textures, drop-shadow, etc.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionderiveFill(RMColor aColor) Returns a fill just like the receiver, but with the given color (only interesting for subsclasses).booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the bounds required to render this fill for this shape.getChild(int anIndex) Returns the individual child stroke at the given index for composite strokes.intReturns the number of child strokes if this stroke is a composite stroke.getColor()Returns the color associated with this fill.initWithArchiver(RMArchiver anArchiver) Legacy unarchival.voidpaintShape(RMShape aShape, RMPath aPath, Graphics2D g2, RMShapePainter sp) Render this fill in a Java2D Graphics2D.voidSets the color associated with this fill.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
- 
Field Details- 
DEFAULT
 
- 
- 
Constructor Details- 
RMFillpublic RMFill()Creates a plain, black fill.
- 
RMFillCreates a plain fill with the given color.
 
- 
- 
Method Details- 
getColorReturns the color associated with this fill.
- 
setColorSets the color associated with this fill.
- 
getChildCountpublic int getChildCount()Returns the number of child strokes if this stroke is a composite stroke.
- 
getChildReturns the individual child stroke at the given index for composite strokes.
- 
getBoundsReturns the bounds required to render this fill for this shape.
- 
deriveFillReturns a fill just like the receiver, but with the given color (only interesting for subsclasses).
- 
paintShapeRender this fill in a Java2D Graphics2D.
- 
equalsStandard equals implementation.
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
- 
initWithArchiverLegacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMObject
 
 
-