Package com.reportmill.graphics
Class RMStroke
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.graphics.RMFill
com.reportmill.graphics.RMStroke
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
- Direct Known Subclasses:
- RMHarvardRuleStroke
An RMFill subclass specifically desgined to describe strokes.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionderiveStroke(float aWidth) Returns a stroke just like the receiver, except with the new given line width.deriveStroke(RMColor aColor) Returns a stroke just like the receiver, except with the new given color.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the bounds required to render this fill for this shape.floatReturns the line width of this stroke.Returns the path to be stroked, transformed from the input path.initWithArchiver(RMArchiver anArchiver) Legacy archival.voidpaintShape(RMShape aShape, RMPath aPath, Graphics2D g2, RMShapePainter sp) Render this fill in a Java2D Graphics2D.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.reportmill.graphics.RMFillderiveFill, getChild, getChildCount, getColor, setColorMethods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
- 
Field Details- 
DEFAULT
 
- 
- 
Constructor Details- 
RMStrokepublic RMStroke()Creates a plain, black stroke.
- 
RMStrokeCreates a stroke with the given color and line width.
 
- 
- 
Method Details- 
getLineWidthpublic float getLineWidth()Returns the line width of this stroke.
- 
getPathReturns the path to be stroked, transformed from the input path.
- 
getBoundsReturns the bounds required to render this fill for this shape.
- 
paintShapeRender this fill in a Java2D Graphics2D.- Overrides:
- paintShapein class- RMFill
 
- 
deriveStrokeReturns a stroke just like the receiver, except with the new given color.
- 
deriveStrokeReturns a stroke just like the receiver, except with the new given line width.
- 
equalsStandard equals implementation.
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
- 
initWithArchiverLegacy archival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMFill
 
 
-