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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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.RMFill
deriveFill, getChild, getChildCount, getColor, setColorMethods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
RMStroke
public RMStroke()Creates a plain, black stroke. -
RMStroke
Creates a stroke with the given color and line width.
-
-
Method Details
-
getLineWidth
public float getLineWidth()Returns the line width of this stroke. -
getPath
Returns the path to be stroked, transformed from the input path. -
getBounds
Returns the bounds required to render this fill for this shape. -
paintShape
Render this fill in a Java2D Graphics2D.- Overrides:
paintShapein classRMFill
-
deriveStroke
Returns a stroke just like the receiver, except with the new given color. -
deriveStroke
Returns a stroke just like the receiver, except with the new given line width. -
equals
Standard equals implementation. -
toXML
XML archival. -
fromXML
XML unarchival. -
initWithArchiver
Legacy archival.- Specified by:
initWithArchiverin interfaceRMArchiver.Archiving- Overrides:
initWithArchiverin classRMFill
-