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(RXArchiver anArchiver,
RXElement 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.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
clone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, resetdeepChange, getName, isEnabled, propertyChange, setEnabled, toStringaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListenerpublic 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 RMImageEffectpublic void paint(RMShapePainter aPntr, RMShape aShape)
public boolean equals(java.lang.Object anObj)
equals in class java.lang.Objectpublic RXElement toXML(RXArchiver anArchiver)
toXML in interface ArchivabletoXML in class RMEffectpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
fromXML in interface ArchivablefromXML in class RMEffect