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(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.
|
int |
getDX()
Returns the X offset of the shadow.
|
int |
getDY()
Returns the Y offset of the shadow.
|
java.awt.image.BufferedImage |
getImage()
Returns the effect image.
|
int |
getRadius()
Returns the radius of the blur.
|
void |
paint(java.awt.Graphics2D aGraphics)
Render this fill in a Java2D Graphics2D.
|
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
clone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, propertyChange, setShape
getName, isEnabled, setEnabled
deriveFill, getColor, getShape, hasAlpha, setColor, toString
addPropertyChangeListener, animUpdate, removePropertyChangeListener
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public RMShadowEffect()
public RMShadowEffect(RMColor aColor, int aRadius, int dx, int dy)
public int getRadius()
public int getDX()
public int getDY()
public RMShadowEffect deriveFill(int aRadius)
public RMShadowEffect deriveFill(RMColor aColor)
public RMShadowEffect deriveFill(int dx, int dy)
public RMRect getBounds()
public java.awt.image.BufferedImage getImage()
getImage
in class RMImageEffect
public void paint(java.awt.Graphics2D aGraphics)
public boolean equals(java.lang.Object anObj)
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)