Class RMFill
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.graphics.RMFill
- All Implemented Interfaces:
- Archivable,- RMPropertyChanger,- Cloneable
- Direct Known Subclasses:
- RMContourFill,- RMGradientFill,- RMImageFill,- RMStroke
This class represents a simple shape fill, drawing a given color in a provided path. Subclasses support things
 like gradients, textures, etc.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Standard clone implementation.deriveFill(RMFill aFill) Derives an instance of this class from another fill.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the bounds required to render this fill for this shape.getColor()Returns the color associated with this fill.getName()Returns the name of the fill.booleanhasAlpha()Returns whether fill has transparency.voidpaint(RMShapePainter aPntr, RMShape aShape) Render this fill in a Java2D Graphics2D.protected voidreadAttributes(RXElement anElement) voidSets the color associated with this fill.toString()Returns a string representation.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
RMFillpublic RMFill()Creates a plain, black fill.
- 
RMFillCreates a plain fill with the given color.
 
- 
- 
Method Details- 
getNameReturns the name of the fill.
- 
getColorReturns the color associated with this fill.
- 
setColorSets the color associated with this fill.
- 
getBoundsReturns the bounds required to render this fill for this shape.
- 
paintRender this fill in a Java2D Graphics2D.
- 
hasAlphapublic boolean hasAlpha()Returns whether fill has transparency.
- 
equalsStandard equals implementation.
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMListenerList
 
- 
deriveFillDerives an instance of this class from another fill.
- 
toXMLXML archival.- Specified by:
- toXMLin interface- Archivable
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
 
- 
readAttributes
- 
toStringReturns a string representation.
 
-