public class RMFill extends RMObject implements Archivable
| 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(RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
RMRect |
getBounds(RMShape aShape)
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.
|
boolean |
hasAlpha()
Returns whether fill has transparency.
|
void |
paint(RMShapePainter aPntr,
RMShape aShape)
Render this fill in a Java2D Graphics2D.
|
protected void |
readAttributes(RXElement anElement) |
void |
setColor(RMColor aColor)
Sets the color associated with this fill.
|
java.lang.String |
toString()
Returns a string representation.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListenerpublic RMFill()
public RMFill(RMColor aColor)
public java.lang.String getName()
@Nonnull public RMColor getColor()
public void setColor(@Nonnull
RMColor aColor)
public RMRect getBounds(RMShape aShape)
public void paint(RMShapePainter aPntr, RMShape aShape)
public boolean hasAlpha()
public boolean equals(java.lang.Object anObj)
equals in class java.lang.Objectpublic RMFill clone()
clone in class RMListenerListpublic RMFill deriveFill(RMFill aFill)
public RXElement toXML(RXArchiver anArchiver)
toXML in interface Archivablepublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
fromXML in interface Archivableprotected void readAttributes(RXElement anElement)