public class RMStroke extends RMFill
Constructor and Description |
---|
RMStroke()
Creates a plain, black stroke.
|
RMStroke(RMColor aColor,
float aStrokeWidth)
Creates a stroke with the given color and line width.
|
Modifier and Type | Method and Description |
---|---|
RMStroke |
deriveStroke(float aWidth)
Returns a stroke just like the receiver, except with the new given line width.
|
RMStroke |
deriveStroke(RMColor aColor)
Returns a stroke just like the receiver, except with the new given color.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
RMRect |
getBounds(RMShape aShape,
RMRect pathBounds)
Returns the bounds required to render this fill for this shape.
|
float |
getLineWidth()
Returns the line width of this stroke.
|
RMPath |
getPath(RMPath inputPath)
Returns the path to be stroked, transformed from the input path.
|
java.lang.Object |
initWithArchiver(RMArchiver anArchiver)
Legacy archival.
|
void |
paintShape(RMShape aShape,
RMPath aPath,
java.awt.Graphics2D g2,
RMShapePainter sp)
Render this fill in a Java2D Graphics2D.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
deriveFill, getChild, getChildCount, getColor, setColor
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
public static final RMStroke DEFAULT
public RMStroke()
public RMStroke(RMColor aColor, float aStrokeWidth)
public float getLineWidth()
public RMPath getPath(RMPath inputPath)
public RMRect getBounds(RMShape aShape, RMRect pathBounds)
public void paintShape(RMShape aShape, RMPath aPath, java.awt.Graphics2D g2, RMShapePainter sp)
paintShape
in class RMFill
public RMStroke deriveStroke(RMColor aColor)
public RMStroke deriveStroke(float aWidth)
public boolean equals(java.lang.Object anObj)
public RXElement toXML(RXArchiver anArchiver)
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
public java.lang.Object initWithArchiver(RMArchiver anArchiver)
initWithArchiver
in interface RMArchiver.Archiving
initWithArchiver
in class RMFill