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
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.util.EventListener
- Direct Known Subclasses:
RMBlurEffect
,RMEmbossEffect
,RMReflectionEffect
,RMShadowEffect
public abstract class RMImageEffect extends RMEffect
A effect based on image filtering.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RMImageEffect.BoxKernel
A kernel class for box filters (really?).static class
RMImageEffect.ConeKernel
A kernel class for cone effects.static class
RMImageEffect.GaussianKernel
Extends Kernel with constructor which takes Kernel size and automatically generates a gaussian matrix.
-
Constructor Summary
Constructors Constructor Description RMImageEffect()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description RMImageEffect
clone()
Standard clone implementation.java.awt.image.BufferedImage
getBlurredImage(java.awt.image.BufferedImage anImage, int imageInset, int aRadius)
Returns the blur image (can be set pre-inset image for efficiency of ConvolveOp).java.awt.image.BufferedImage
getBlurredImage(java.awt.image.BufferedImage anImage, int imageInset, java.awt.image.Kernel kernel)
Returns the image blurred with the particular Kernel.java.awt.image.BufferedImage
getCachedImage(RMShape aShape)
Returns the effect image from cache (calls getImage to load image into cache).abstract java.awt.image.BufferedImage
getImage(RMShape aShape)
Returns the effect image.java.awt.image.BufferedImage
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
-
-
-
-
Method Detail
-
getImage
public abstract java.awt.image.BufferedImage getImage(RMShape aShape)
Returns the effect image.
-
getShapeImage
public java.awt.image.BufferedImage getShapeImage(RMShape aShape, int anInset, boolean premultiply)
Returns image of given shape inside a gutter of given inset (maybe should be insets one day).
-
getBlurredImage
public java.awt.image.BufferedImage getBlurredImage(java.awt.image.BufferedImage anImage, int imageInset, int aRadius)
Returns the blur image (can be set pre-inset image for efficiency of ConvolveOp).
-
getBlurredImage
public java.awt.image.BufferedImage getBlurredImage(java.awt.image.BufferedImage anImage, int imageInset, java.awt.image.Kernel kernel)
Returns the image blurred with the particular Kernel.
-
getCachedImage
public java.awt.image.BufferedImage getCachedImage(RMShape aShape)
Returns the effect image from cache (calls getImage to load image into cache).
-
clone
public RMImageEffect clone()
Standard clone implementation.
-
-