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,java.beans.PropertyChangeListener,java.lang.Cloneable,java.util.EventListener
public class RMBlurEffect extends RMImageEffect
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
Constructors Constructor Description RMBlurEffect()Creates a new blur effect.RMBlurEffect(int aRadius)Creates a new blur effect with the parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RMBlurEffectderiveFill(int aRadius)Returns a blur effect just like this one, but with a radius equal to the given value.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMRectgetBounds(RMShape aShape)Returns the bounds required to render this fill for this shape.java.awt.image.BufferedImagegetImage(RMShape aShape)Returns the blur image.intgetRadius()Returns the radius of the blur.voidpaint(RMShapePainter aPntr, RMShape aShape)Render this fill in a painter.RXElementtoXML(RXArchiver anArchiver)XML archival.-
Methods inherited from class com.inductiveautomation.rm.graphics.RMImageEffect
clone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, reset
-
Methods inherited from class com.inductiveautomation.rm.graphics.RMEffect
deepChange, getName, isEnabled, propertyChange, setEnabled, toString
-
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
-
-
-
-
Method Detail
-
getRadius
public int getRadius()
Returns the radius of the blur.
-
deriveFill
public RMBlurEffect deriveFill(int aRadius)
Returns a blur effect just like this one, but with a radius equal to the given value.
-
getBounds
public RMRect getBounds(RMShape aShape)
Returns the bounds required to render this fill for this shape.
-
getImage
public java.awt.image.BufferedImage getImage(RMShape aShape)
Returns the blur image.- Specified by:
getImagein classRMImageEffect
-
paint
public void paint(RMShapePainter aPntr, RMShape aShape)
Render this fill in a painter.
-
equals
public boolean equals(java.lang.Object anObj)
Standard equals implementation.- Overrides:
equalsin classjava.lang.Object
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.- Specified by:
toXMLin interfaceArchivable- Overrides:
toXMLin classRMEffect
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.- Specified by:
fromXMLin interfaceArchivable- Overrides:
fromXMLin classRMEffect
-
-