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,- java.lang.Cloneable
 - Direct Known Subclasses:
- RMHarvardRuleStroke
 
 public class RMStroke extends RMFill An RMFill subclass specifically desgined to describe strokes.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMStrokederiveStroke(float aWidth)Returns a stroke just like the receiver, except with the new given line width.RMStrokederiveStroke(RMColor aColor)Returns a stroke just like the receiver, except with the new given color.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.floatgetLineWidth()Returns the line width of this stroke.RMPathgetPath(RMPath inputPath)Returns the path to be stroked, transformed from the input path.java.lang.ObjectinitWithArchiver(RMArchiver anArchiver)Legacy archival.voidpaintShape(RMShape aShape, RMPath aPath, java.awt.Graphics2D g2, RMShapePainter sp)Render this fill in a Java2D Graphics2D.RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.reportmill.graphics.RMFillderiveFill, getChild, getChildCount, getColor, setColor
 - 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULTpublic static final RMStroke DEFAULT 
 
- 
 - 
Constructor Detail- 
RMStrokepublic RMStroke() Creates a plain, black stroke.
 - 
RMStrokepublic RMStroke(RMColor aColor, float aStrokeWidth) Creates a stroke with the given color and line width.
 
- 
 - 
Method Detail- 
getLineWidthpublic float getLineWidth() Returns the line width of this stroke.
 - 
getPathpublic RMPath getPath(RMPath inputPath) Returns the path to be stroked, transformed from the input path.
 - 
getBoundspublic RMRect getBounds(RMShape aShape, RMRect pathBounds) Returns the bounds required to render this fill for this shape.
 - 
paintShapepublic void paintShape(RMShape aShape, RMPath aPath, java.awt.Graphics2D g2, RMShapePainter sp) Render this fill in a Java2D Graphics2D.- Overrides:
- paintShapein class- RMFill
 
 - 
deriveStrokepublic RMStroke deriveStroke(RMColor aColor) Returns a stroke just like the receiver, except with the new given color.
 - 
deriveStrokepublic RMStroke deriveStroke(float aWidth) Returns a stroke just like the receiver, except with the new given line width.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.
 - 
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 archival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMFill
 
 
- 
 
-