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(XMLArchiver anArchiver,
XMLElement anElement)
XML unarchival.
|
RMRect |
getBounds(RMShape aShape)
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(RMShape aShape)
Returns the effect image.
|
float |
getReflectionHeight()
Returns the height of the reflected image as fraction of shape height (defaults to 1).
|
void |
paint(RMShapePainter aPntr,
RMShape aShape)
Render this fill in a Java2D Graphics2D.
|
XMLElement |
toXML(XMLArchiver anArchiver)
XML archival.
|
clone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, reset
deepChange, getName, isEnabled, propertyChange, setEnabled, toString
public float getReflectionHeight()
public float getFadeHeight()
public float getGapHeight()
public RMReflectionEffect deriveEffect(float aReflectionHeight, float aFadeHeight, float aGapHeight)
public RMRect getBounds(RMShape aShape)
public java.awt.image.BufferedImage getImage(RMShape aShape)
getImage
in class RMImageEffect
public void paint(RMShapePainter aPntr, RMShape aShape)
public boolean equals(java.lang.Object anObj)
public XMLElement toXML(XMLArchiver anArchiver)