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 |
clone()
Standard clone implementation.
|
RMFill |
deriveFill(RMFill aFill)
Derives an instance of this class from another fill.
|
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()
Returns the bounds required to render this fill for this shape.
|
RMColor |
getColor()
Returns the color associated with this fill.
|
java.lang.String |
getName()
Returns the name of the fill.
|
RMShape |
getShape()
Return the shape.
|
boolean |
hasAlpha()
Returns whether fill has transparency.
|
void |
paint(java.awt.Graphics2D aGraphics)
Render this fill in a Java2D Graphics2D.
|
void |
setColor(RMColor aColor)
Sets the color associated with this fill.
|
void |
setShape(RMShape aShape)
Sets the shape.
|
java.lang.String |
toString()
Returns a string representation.
|
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
addPropertyChangeListener, animUpdate, removePropertyChangeListener
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public RMFill()
public RMFill(RMColor aColor)
public RMShape getShape()
public void setShape(RMShape aShape)
public java.lang.String getName()
public RMColor getColor()
public void setColor(RMColor aColor)
public RMRect getBounds()
public void paint(java.awt.Graphics2D aGraphics)
public boolean hasAlpha()
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object
public RMFill clone()
clone
in class RMListenerList
public RMFill deriveFill(RMFill aFill)
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)