Class RMShadowEffect
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.RMShadowEffect
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- PropertyChangeListener,- Cloneable,- EventListener
This class adds a shadow to a given shape.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.rm.graphics.RMImageEffectRMImageEffect.BoxKernel, RMImageEffect.ConeKernel, RMImageEffect.GaussianKernel
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new shadow effect.RMShadowEffect(RMColor aColor, int aRadius, int dx, int dy) Creates a new shadow effect with the parameters.
- 
Method SummaryModifier and TypeMethodDescriptionderiveFill(int aRadius) Returns a shadow effect just like this one, but with a radius equal to the given value.deriveFill(int dx, int dy) Returns a shadow effect just like this one, but with new offsets.deriveFill(RMColor aColor) Returns a shadow 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.getColor()Returns the color associated with this fill.intgetDX()Returns the X offset of the shadow.intgetDY()Returns the Y offset of the shadow.Returns the effect image.intReturns the radius of the blur.voidpaint(RMShapePainter aPntr, RMShape aShape) Render this fill in a painter.voidSets the color associated with this fill.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.graphics.RMImageEffectclone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, resetMethods inherited from class com.inductiveautomation.rm.graphics.RMEffectdeepChange, getName, isEnabled, propertyChange, setEnabled, toStringMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
RMShadowEffectpublic RMShadowEffect()Creates a new shadow effect.
- 
RMShadowEffectCreates a new shadow effect with the parameters.
 
- 
- 
Method Details- 
getRadiuspublic int getRadius()Returns the radius of the blur.
- 
getDXpublic int getDX()Returns the X offset of the shadow.
- 
getDYpublic int getDY()Returns the Y offset of the shadow.
- 
getColorReturns the color associated with this fill.
- 
setColorSets the color associated with this fill.
- 
deriveFillReturns a shadow effect just like this one, but with a radius equal to the given value.
- 
deriveFillReturns a shadow effect just like this one, but with a radius equal to the given value.
- 
deriveFillReturns a shadow effect just like this one, but with new offsets.
- 
getBoundsReturns the bounds required to render this fill for this shape.
- 
getImageReturns the effect image.- Specified by:
- getImagein class- RMImageEffect
 
- 
paintRender this fill in a painter.
- 
equalsStandard equals implementation.
- 
toXMLXML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMEffect
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMEffect
 
 
-