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 |
clone()
Standard clone implementation.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(RXArchiver anArchiver,
RXElement e)
XML unarchival.
|
RMRect |
getBounds(RMShape aShape)
Returns the bounds required to render this fill for this shape.
|
float[] |
getDashArray()
Returns the dash array for this stroke.
|
static float[] |
getDashArray(java.lang.String aString,
java.lang.String aDelimeter)
Returns a dash array for given dash array string and delimeter.
|
java.lang.String |
getDashArrayString()
Returns the dash array for this stroke as a string.
|
static java.lang.String |
getDashArrayString(float[] dashArray,
java.lang.String aDelimiter)
Returns the dash array for this stroke as a string.
|
float |
getDashPhase()
Returns the dash phase.
|
java.lang.String |
getName()
Returns the name of the fill.
|
protected java.awt.Stroke |
getStroke()
Returns the java2d stroke to be used.
|
java.awt.Shape |
getStrokePath(RMShape aShape)
Returns the path to be stroked, transformed from the input path.
|
float |
getWidth()
Returns the line width of this stroke.
|
void |
paint(RMShapePainter aPntr,
RMShape aShape)
Render this fill in a shape painter.
|
protected void |
readAttributes(RXElement e) |
void |
setColor(RMColor aColor)
Overrides fill version to clear java 2d stroke.
|
void |
setDashArray(float[] anArray)
Sets the dash array for this stroke.
|
void |
setDashArrayString(java.lang.String aString)
Sets the dash array for this stroke from a string.
|
void |
setDashPhase(float aValue)
Sets the dash phase.
|
void |
setWidth(float aValue)
Sets the line width of this stroke.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
deriveFill, getColor, hasAlpha, toString
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public RMStroke()
public RMStroke(RMColor aColor, float aStrokeWidth)
public float getWidth()
public void setWidth(float aValue)
public float[] getDashArray()
public void setDashArray(float[] anArray)
public java.lang.String getDashArrayString()
public void setDashArrayString(java.lang.String aString)
public static float[] getDashArray(java.lang.String aString, java.lang.String aDelimeter)
public static java.lang.String getDashArrayString(float[] dashArray, java.lang.String aDelimiter)
public float getDashPhase()
public void setDashPhase(float aValue)
public void setColor(RMColor aColor)
protected java.awt.Stroke getStroke()
public java.awt.Shape getStrokePath(RMShape aShape)
public RMRect getBounds(RMShape aShape)
public void paint(RMShapePainter aPntr, RMShape aShape)
public java.lang.String getName()
public boolean equals(java.lang.Object anObj)
public RXElement toXML(RXArchiver anArchiver)
toXML
in interface Archivable
toXML
in class RMFill
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement e)
fromXML
in interface Archivable
fromXML
in class RMFill
protected void readAttributes(RXElement e)
readAttributes
in class RMFill