Class RMBlurEffect
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.graphics.RMEffect
com.inductiveautomation.rm.graphics.RMImageEffect
com.inductiveautomation.rm.graphics.RMBlurEffect
- All Implemented Interfaces:
Archivable,DeepChangeListener,RMPropertyChanger,PropertyChangeListener,Cloneable,EventListener
This class adds a blur to a given shape.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.rm.graphics.RMImageEffect
RMImageEffect.BoxKernel, RMImageEffect.ConeKernel, RMImageEffect.GaussianKernel -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new blur effect.RMBlurEffect(int aRadius) Creates a new blur effect with the parameters. -
Method Summary
Modifier and TypeMethodDescriptionderiveFill(int aRadius) Returns a blur effect just like this one, but with a radius equal to the given value.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the bounds required to render this fill for this shape.Returns the blur image.intReturns the radius of the blur.voidpaint(RMShapePainter aPntr, RMShape aShape) Render this fill in a painter.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.graphics.RMImageEffect
clone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, resetMethods inherited from class com.inductiveautomation.rm.graphics.RMEffect
deepChange, getName, isEnabled, propertyChange, setEnabled, toStringMethods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Constructor Details
-
RMBlurEffect
public RMBlurEffect()Creates a new blur effect. -
RMBlurEffect
public RMBlurEffect(int aRadius) Creates a new blur effect with the parameters.
-
-
Method Details
-
getRadius
public int getRadius()Returns the radius of the blur. -
deriveFill
Returns a blur effect just like this one, but with a radius equal to the given value. -
getBounds
Returns the bounds required to render this fill for this shape. -
getImage
Returns the blur image.- Specified by:
getImagein classRMImageEffect
-
paint
Render this fill in a painter. -
equals
Standard equals implementation. -
toXML
XML archival.- Specified by:
toXMLin interfaceArchivable- Overrides:
toXMLin classRMEffect
-
fromXML
XML unarchival.- Specified by:
fromXMLin interfaceArchivable- Overrides:
fromXMLin classRMEffect
-