|
ReportMill 10 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.reportmill.base.RMObject
com.reportmill.graphics.RMFill
com.reportmill.graphics.RMStroke
public class RMStroke
An RMFill subclass specifically desgined to describe strokes.
Field Summary | |
---|---|
static RMStroke |
DEFAULT
|
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 |
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(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.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. |
void |
paintShape(RMShape aShape,
RMPath aPath,
java.awt.Graphics2D g2,
com.reportmill.shape.RMShapePainter sp)
Render this fill in a Java2D Graphics2D. |
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver)
XML archival. |
Methods inherited from class com.reportmill.graphics.RMFill |
---|
deriveFill, getChild, getChildCount, getColor, setColor |
Methods inherited from class com.reportmill.base.RMObject |
---|
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RMStroke DEFAULT
Constructor Detail |
---|
public RMStroke()
public RMStroke(RMColor aColor, float aStrokeWidth)
Method Detail |
---|
public float getLineWidth()
public RMPath getPath(RMPath inputPath)
public RMRect getBounds(RMShape aShape, RMRect pathBounds)
getBounds
in class RMFill
public void paintShape(RMShape aShape, RMPath aPath, java.awt.Graphics2D g2, com.reportmill.shape.RMShapePainter sp)
paintShape
in class RMFill
public RMStroke deriveStroke(RMColor aColor)
public RMStroke deriveStroke(float aWidth)
public boolean equals(java.lang.Object anObj)
equals
in class RMFill
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver)
toXML
in class RMFill
public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement)
fromXML
in class RMFill
|
ReportMill 10 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |