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,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 
 public class RMShadowEffect extends RMImageEffect This class adds a shadow to a given shape.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.rm.graphics.RMImageEffectRMImageEffect.BoxKernel, RMImageEffect.ConeKernel, RMImageEffect.GaussianKernel
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMShadowEffect()Creates a new shadow effect.RMShadowEffect(RMColor aColor, int aRadius, int dx, int dy)Creates a new shadow effect with the parameters.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMShadowEffectderiveFill(int aRadius)Returns a shadow effect just like this one, but with a radius equal to the given value.RMShadowEffectderiveFill(int dx, int dy)Returns a shadow effect just like this one, but with new offsets.RMShadowEffectderiveFill(RMColor aColor)Returns a shadow 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.RMColorgetColor()Returns the color associated with this fill.intgetDX()Returns the X offset of the shadow.intgetDY()Returns the Y offset of the shadow.java.awt.image.BufferedImagegetImage(RMShape aShape)Returns the effect image.intgetRadius()Returns the radius of the blur.voidpaint(RMShapePainter aPntr, RMShape aShape)Render this fill in a painter.voidsetColor(RMColor aColor)Sets the color associated with this fill.RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.inductiveautomation.rm.graphics.RMImageEffectclone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, reset
 - 
Methods inherited from class com.inductiveautomation.rm.graphics.RMEffectdeepChange, getName, isEnabled, propertyChange, setEnabled, toString
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Constructor Detail- 
RMShadowEffectpublic RMShadowEffect() Creates a new shadow effect.
 - 
RMShadowEffectpublic RMShadowEffect(RMColor aColor, int aRadius, int dx, int dy) Creates a new shadow effect with the parameters.
 
- 
 - 
Method Detail- 
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.
 - 
getColorpublic RMColor getColor() Returns the color associated with this fill.
 - 
setColorpublic void setColor(RMColor aColor) Sets the color associated with this fill.
 - 
deriveFillpublic RMShadowEffect deriveFill(int aRadius) Returns a shadow effect just like this one, but with a radius equal to the given value.
 - 
deriveFillpublic RMShadowEffect deriveFill(RMColor aColor) Returns a shadow effect just like this one, but with a radius equal to the given value.
 - 
deriveFillpublic RMShadowEffect deriveFill(int dx, int dy) Returns a shadow effect just like this one, but with new offsets.
 - 
getBoundspublic RMRect getBounds(RMShape aShape) Returns the bounds required to render this fill for this shape.
 - 
getImagepublic java.awt.image.BufferedImage getImage(RMShape aShape) Returns the effect image.- Specified by:
- getImagein class- RMImageEffect
 
 - 
paintpublic void paint(RMShapePainter aPntr, RMShape aShape) Render this fill in a painter.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- java.lang.Object
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMEffect
 
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMEffect
 
 
- 
 
-