public class RMShadowFill extends RMImageFill
| Modifier and Type | Class and Description |
|---|---|
static class |
RMShadowFill.GaussianKernel
Extends Kernel with constructor which takes Kernel size and automatically generates a gaussian matrix.
|
ATTRIBUTE_FILL_STYLE, ATTRIBUTE_ROLL, ATTRIBUTE_SCALE_X, ATTRIBUTE_SCALE_Y, ATTRIBUTE_X, ATTRIBUTE_Y, STYLE_FIT, STYLE_FIT_IFNEEDED, STYLE_STRETCH, STYLE_TILE| Constructor and Description |
|---|
RMShadowFill()
Creates a new shadow fill.
|
| Modifier and Type | Method and Description |
|---|---|
RMFill |
deriveFill(int aRadius)
Returns a shadow fill just like this one, but with a radius equal to the given value.
|
RMFill |
deriveFill(int dx,
int dy)
Returns a shadow fill just like this one, but with new offsets.
|
RMFill |
deriveFill(RMColor aColor)
Returns a shadow fill 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,
RMRect pathBounds)
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.
|
RMRect |
getImageBounds(RMRect boundsRect)
Overrides normal image fill behavior to to account for shadow fringes and shadow offset.
|
RMImageData |
getImageData()
Returns the shadow image data.
|
int |
getRadius()
Returns the radius of the blur.
|
void |
paintShape(RMShape aShape,
RMPath aPath,
java.awt.Graphics2D g,
RMShapePainter sp)
Render this fill in a Java2D Graphics2D.
|
boolean |
shouldClipToPath()
Overrides normal image fill behavior to suppress clip to path, since shadow is an image of path.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
awt, deriveFill, deriveFill, getFillStyle, getImageBounds, getImageMargins, getImageShape, getImageSize2D, getPageNumber, getRoll, getScaleX, getScaleY, getType, getX, getY, initWithArchiver, setFillStyle, setImageData, setImageMargins, setPageNumbergetChild, getChildCount, getColor, setColorclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEqualspublic int getRadius()
public int getDX()
public int getDY()
public RMFill deriveFill(int aRadius)
public RMFill deriveFill(RMColor aColor)
deriveFill in class RMImageFillpublic RMFill deriveFill(int dx, int dy)
public RMRect getBounds(RMShape aShape, RMRect pathBounds)
public RMRect getImageBounds(RMRect boundsRect)
getImageBounds in class RMImageFillpublic boolean shouldClipToPath()
shouldClipToPath in class RMImageFillpublic void paintShape(RMShape aShape, RMPath aPath, java.awt.Graphics2D g, RMShapePainter sp)
paintShape in class RMImageFillpublic RMImageData getImageData()
getImageData in class RMImageFillpublic boolean equals(java.lang.Object anObj)
equals in class RMImageFillpublic RXElement toXML(RXArchiver anArchiver)
toXML in class RMImageFillpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
fromXML in class RMImageFill