public class RMFill extends RMObject
Constructor and Description |
---|
RMFill()
Creates a plain, black fill.
|
RMFill(RMColor aColor)
Creates a plain fill with the given color.
|
Modifier and Type | Method and Description |
---|---|
RMFill |
deriveFill(RMColor aColor)
Returns a fill just like the receiver, but with the given color (only interesting for subsclasses).
|
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.
|
RMFill |
getChild(int anIndex)
Returns the individual child stroke at the given index for composite strokes.
|
int |
getChildCount()
Returns the number of child strokes if this stroke is a composite stroke.
|
RMColor |
getColor()
Returns the color associated with this fill.
|
java.lang.Object |
initWithArchiver(RMArchiver anArchiver)
Legacy unarchival.
|
void |
paintShape(RMShape aShape,
RMPath aPath,
java.awt.Graphics2D g2,
RMShapePainter sp)
Render this fill in a Java2D Graphics2D.
|
void |
setColor(RMColor aColor)
Sets the color associated with this fill.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
public static final RMFill DEFAULT
public RMFill()
public RMFill(RMColor aColor)
public RMColor getColor()
public void setColor(RMColor aColor)
public int getChildCount()
public RMFill getChild(int anIndex)
public RMRect getBounds(RMShape aShape, RMRect pathBounds)
public RMFill deriveFill(RMColor aColor)
public void paintShape(RMShape aShape, RMPath aPath, java.awt.Graphics2D g2, RMShapePainter sp)
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object
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 RMObject