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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Standard clone implementation.void
deepChange
(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.boolean
Returns whether effect is currently enabled.void
paint
(RMShapePainter aPntr, RMShape aShape) Render this fill in a Java2D Graphics2D.void
propertyChange
(PropertyChangeEvent anEvent) PropertyChangeListener method.void
reset()
Tells the effect to reset.boolean
setEnabled
(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.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Constructor Details
-
RMEffect
public RMEffect()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether effect is currently enabled. -
setEnabled
public boolean setEnabled(boolean aValue) Sets whether effect is currently enabled. -
getName
Returns the name of the effect. -
getBounds
Returns the bounds required to render this fill for this shape. -
paint
Render this fill in a Java2D Graphics2D. -
reset
public void reset()Tells the effect to reset. -
propertyChange
PropertyChangeListener method. Forward to deepChange().- Specified by:
propertyChange
in interfacePropertyChangeListener
-
deepChange
DeepChangeListener method. When shape or shape child has property change clear cache and/or remove listener.- Specified by:
deepChange
in interfaceDeepChangeListener
-
clone
Standard clone implementation.- Overrides:
clone
in classRMListenerList
-
toXML
XML archival.- Specified by:
toXML
in interfaceArchivable
-
fromXML
XML unarchival.- Specified by:
fromXML
in interfaceArchivable
-
toString
Returns a string representation.
-