public class RMShadowEffect extends RMImageEffect
RMImageEffect.BoxKernel, RMImageEffect.ConeKernel, RMImageEffect.GaussianKernel
Constructor and Description |
---|
RMShadowEffect()
Creates a new shadow effect.
|
RMShadowEffect(RMColor aColor,
int aRadius,
int dx,
int dy)
Creates a new shadow effect with the parameters.
|
Modifier and Type | Method and Description |
---|---|
RMShadowEffect |
deriveFill(int aRadius)
Returns a shadow effect just like this one, but with a radius equal to the given value.
|
RMShadowEffect |
deriveFill(int dx,
int dy)
Returns a shadow effect just like this one, but with new offsets.
|
RMShadowEffect |
deriveFill(RMColor aColor)
Returns a shadow effect just like this one, but with a radius equal to the given value.
|
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.
|
RMColor |
getColor()
Returns the color associated with this fill.
|
int |
getDX()
Returns the X offset of the shadow.
|
int |
getDY()
Returns the Y offset of the shadow.
|
java.awt.image.BufferedImage |
getImage(RMShape aShape)
Returns the effect image.
|
int |
getRadius()
Returns the radius of the blur.
|
void |
paint(RMShapePainter aPntr,
RMShape aShape)
Render this fill in a painter.
|
void |
setColor(RMColor aColor)
Sets the color associated with this fill.
|
XMLElement |
toXML(XMLArchiver anArchiver)
XML archival.
|
clone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, reset
deepChange, getName, isEnabled, propertyChange, setEnabled, toString
public RMShadowEffect()
public RMShadowEffect(RMColor aColor, int aRadius, int dx, int dy)
public int getRadius()
public int getDX()
public int getDY()
public RMColor getColor()
public void setColor(RMColor aColor)
public RMShadowEffect deriveFill(int aRadius)
public RMShadowEffect deriveFill(RMColor aColor)
public RMShadowEffect deriveFill(int dx, int dy)
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)