public class RMReflectionEffect extends RMImageEffect
RMImageEffect.BoxKernel, RMImageEffect.ConeKernel, RMImageEffect.GaussianKernel
Constructor and Description |
---|
RMReflectionEffect() |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival.
|
RMRect |
getBounds()
Returns the bounds required to render this fill for this shape.
|
float |
getFadeHeight()
Returns the height of the faded region as a fraction of reflection height (defaults to .5).
|
float |
getGapHeight()
Returns the height of the gap between the shape and the reflection in points (defaults to 0).
|
java.awt.image.BufferedImage |
getImage()
Returns the effect image.
|
float |
getReflectionHeight()
Returns the height of the reflected image as fraction of shape height (defaults to 1).
|
void |
paint(java.awt.Graphics2D aGraphics)
Render this fill in a Java2D Graphics2D.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Overridden to tell shape to repaint when child changes.
|
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
clone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, setShape
getName, isEnabled, setEnabled
deriveFill, getColor, getShape, hasAlpha, setColor, toString
addPropertyChangeListener, animUpdate, removePropertyChangeListener
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public float getReflectionHeight()
public float getFadeHeight()
public float getGapHeight()
public RMReflectionEffect deriveEffect(float aReflectionHeight, float aFadeHeight, float aGapHeight)
public RMRect getBounds()
public java.awt.image.BufferedImage getImage()
getImage
in class RMImageEffect
public void paint(java.awt.Graphics2D aGraphics)
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class RMImageEffect
public boolean equals(java.lang.Object anObj)
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)