Class RMEffect
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.graphics.RMEffect
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- PropertyChangeListener,- Cloneable,- EventListener
- Direct Known Subclasses:
- RMImageEffect
public class RMEffect
extends RMObject
implements PropertyChangeListener, DeepChangeListener, Archivable
An RMFill subclass for drawing effects that rely on shape's standard fill/stroke.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Standard clone implementation.voiddeepChange(PropertyChangeListener aSource, PropertyChangeEvent anEvent) DeepChangeListener method.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the bounds required to render this fill for this shape.getName()Returns the name of the effect.booleanReturns whether effect is currently enabled.voidpaint(RMShapePainter aPntr, RMShape aShape) Render this fill in a Java2D Graphics2D.voidpropertyChange(PropertyChangeEvent anEvent) PropertyChangeListener method.voidreset()Tells the effect to reset.booleansetEnabled(boolean aValue) Sets whether effect is currently enabled.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- 
RMEffectpublic RMEffect()
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()Returns whether effect is currently enabled.
- 
setEnabledpublic boolean setEnabled(boolean aValue) Sets whether effect is currently enabled.
- 
getNameReturns the name of the effect.
- 
getBoundsReturns the bounds required to render this fill for this shape.
- 
paintRender this fill in a Java2D Graphics2D.
- 
resetpublic void reset()Tells the effect to reset.
- 
propertyChangePropertyChangeListener method. Forward to deepChange().- Specified by:
- propertyChangein interface- PropertyChangeListener
 
- 
deepChangeDeepChangeListener method. When shape or shape child has property change clear cache and/or remove listener.- Specified by:
- deepChangein interface- DeepChangeListener
 
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMListenerList
 
- 
toXMLXML archival.- Specified by:
- toXMLin interface- Archivable
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
 
- 
toStringReturns a string representation.
 
-