Class RMReflectionEffect
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.RMReflectionEffect
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- PropertyChangeListener,- Cloneable,- EventListener
This class adds a reflection to a given shape.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.rm.graphics.RMImageEffectRMImageEffect.BoxKernel, RMImageEffect.ConeKernel, RMImageEffect.GaussianKernel
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionderiveEffect(float aReflectionHeight, float aFadeHeight, float aGapHeight) Creates a new reflection effect by cloning this one and substituting given reflection, fade and gap heights, if greater than zero.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the bounds required to render this fill for this shape.floatReturns the height of the faded region as a fraction of reflection height (defaults to .5).floatReturns the height of the gap between the shape and the reflection in points (defaults to 0).Returns the effect image.floatReturns the height of the reflected image as fraction of shape height (defaults to 1).voidpaint(RMShapePainter aPntr, RMShape aShape) Render this fill in a Java2D Graphics2D.protected voidsetFadeHeight(float aValue) Sets the height of the faded region as a fraction of reflection height.protected voidsetGapHeight(float aValue) Sets the height of the gap between the shape and the reflection in points.protected voidsetReflectionHeight(float aValue) Sets the height of the reflected image as fraction of shape height.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- 
RMReflectionEffectpublic RMReflectionEffect()
 
- 
- 
Method Details- 
getReflectionHeightpublic float getReflectionHeight()Returns the height of the reflected image as fraction of shape height (defaults to 1).
- 
setReflectionHeightprotected void setReflectionHeight(float aValue) Sets the height of the reflected image as fraction of shape height.
- 
getFadeHeightpublic float getFadeHeight()Returns the height of the faded region as a fraction of reflection height (defaults to .5).
- 
setFadeHeightprotected void setFadeHeight(float aValue) Sets the height of the faded region as a fraction of reflection height.
- 
getGapHeightpublic float getGapHeight()Returns the height of the gap between the shape and the reflection in points (defaults to 0).
- 
setGapHeightprotected void setGapHeight(float aValue) Sets the height of the gap between the shape and the reflection in points.
- 
deriveEffectpublic RMReflectionEffect deriveEffect(float aReflectionHeight, float aFadeHeight, float aGapHeight) Creates a new reflection effect by cloning this one and substituting given reflection, fade and gap heights, if greater than zero.
- 
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 Java2D Graphics2D.
- 
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
 
 
-