Class RMImageEffect
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.graphics.RMEffect
com.inductiveautomation.rm.graphics.RMImageEffect
- All Implemented Interfaces:
Archivable
,DeepChangeListener
,RMPropertyChanger
,PropertyChangeListener
,Cloneable
,EventListener
- Direct Known Subclasses:
RMBlurEffect
,RMEmbossEffect
,RMReflectionEffect
,RMShadowEffect
A effect based on image filtering.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A kernel class for box filters (really?).static class
A kernel class for cone effects.static class
Extends Kernel with constructor which takes Kernel size and automatically generates a gaussian matrix. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Standard clone implementation.getBlurredImage
(BufferedImage anImage, int imageInset, int aRadius) Returns the blur image (can be set pre-inset image for efficiency of ConvolveOp).getBlurredImage
(BufferedImage anImage, int imageInset, Kernel kernel) Returns the image blurred with the particular Kernel.getCachedImage
(RMShape aShape) Returns the effect image from cache (calls getImage to load image into cache).abstract BufferedImage
Returns the effect image.getShapeImage
(RMShape aShape, int anInset, boolean premultiply) Returns image of given shape inside a gutter of given inset (maybe should be insets one day).void
reset()
Override to reset image.Methods inherited from class com.inductiveautomation.rm.graphics.RMEffect
deepChange, fromXML, getBounds, getName, isEnabled, paint, propertyChange, setEnabled, toString, toXML
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
-
RMImageEffect
public RMImageEffect()
-
-
Method Details
-
getImage
Returns the effect image. -
getShapeImage
Returns image of given shape inside a gutter of given inset (maybe should be insets one day). -
getBlurredImage
Returns the blur image (can be set pre-inset image for efficiency of ConvolveOp). -
getBlurredImage
Returns the image blurred with the particular Kernel. -
getCachedImage
Returns the effect image from cache (calls getImage to load image into cache). -
reset
public void reset()Override to reset image. -
clone
Standard clone implementation.
-