|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.reportmill.shape.fill.RMFill
com.reportmill.shape.fill.RMStroke
public class RMStroke
An RMFill subclass specifically designed to describe strokes.
Constructor Summary | |
---|---|
RMStroke()
Creates a plain, black stroke. |
|
RMStroke(RMColor aColor,
float aStrokeWidth)
Creates a stroke with the given color and line width. |
Method Summary | |
---|---|
RMStroke |
clone()
Standard clone implementation. |
boolean |
equals(java.lang.Object anObj)
Standard equals implementation. |
java.lang.Object |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival. |
RMRect |
getBounds(RMShape aShape,
RMRect pathBounds)
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. |
float |
getLineWidth()
Returns the line width of this stroke. |
java.lang.String |
getName()
Returns the name of the fill. |
java.awt.Shape |
getStrokePath(RMShape aShape)
Returns the path to be stroked, transformed from the input path. |
void |
paint(com.reportmill.shape.RMShapePainter sp,
java.awt.Graphics2D g,
RMShape aShape)
Render this fill in a Java2D Graphics2D. |
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 |
setLineWidth(float aValue)
Sets the line width of this stroke. |
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival. |
Methods inherited from class com.reportmill.shape.fill.RMFill |
---|
deriveFill, getColor, hasAlpha |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RMStroke()
public RMStroke(RMColor aColor, float aStrokeWidth)
Method Detail |
---|
public float getLineWidth()
public void setLineWidth(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)
setColor
in class RMFill
public java.awt.Shape getStrokePath(RMShape aShape)
public RMRect getBounds(RMShape aShape, RMRect pathBounds)
getBounds
in class RMFill
public void paint(com.reportmill.shape.RMShapePainter sp, java.awt.Graphics2D g, RMShape aShape)
paint
in class RMFill
public java.lang.String getName()
getName
in class RMFill
public boolean equals(java.lang.Object anObj)
equals
in class RMFill
public RMStroke clone()
clone
in class RMFill
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
toXML
in class RMFill
public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXML
in class RMFill
|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |