Package com.reportmill.graphics
Class RMShadowFill
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.graphics.RMFill
com.reportmill.graphics.RMImageFill
com.reportmill.graphics.RMShadowFill
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
This class adds a shadow to a given shape.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classExtends Kernel with constructor which takes Kernel size and automatically generates a gaussian matrix.
- 
Field SummaryFields inherited from class com.reportmill.graphics.RMImageFillATTRIBUTE_FILL_STYLE, ATTRIBUTE_ROLL, ATTRIBUTE_SCALE_X, ATTRIBUTE_SCALE_Y, ATTRIBUTE_X, ATTRIBUTE_Y, STYLE_FIT, STYLE_FIT_IFNEEDED, STYLE_STRETCH, STYLE_TILE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionderiveFill(int aRadius) Returns a shadow fill just like this one, but with a radius equal to the given value.deriveFill(int dx, int dy) Returns a shadow fill just like this one, but with new offsets.deriveFill(RMColor aColor) Returns a shadow fill just like this one, but with a radius equal to the given value.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the bounds required to render this fill for this shape.intgetDX()Returns the X offset of the shadow.intgetDY()Returns the Y offset of the shadow.getImageBounds(RMRect boundsRect) Overrides normal image fill behavior to to account for shadow fringes and shadow offset.Returns the shadow image data.intReturns the radius of the blur.voidpaintShape(RMShape aShape, RMPath aPath, Graphics2D g, RMShapePainter sp) Render this fill in a Java2D Graphics2D.booleanOverrides normal image fill behavior to suppress clip to path, since shadow is an image of path.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.reportmill.graphics.RMImageFillawt, deriveFill, deriveFill, getFillStyle, getImageBounds, getImageMargins, getImageShape, getImageSize2D, getPageNumber, getRoll, getScaleX, getScaleY, getType, getX, getY, initWithArchiver, setFillStyle, setImageData, setImageMargins, setPageNumberMethods inherited from class com.reportmill.graphics.RMFillgetChild, getChildCount, getColor, setColorMethods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
RMShadowFillpublic RMShadowFill()Creates a new shadow fill.
 
- 
- 
Method Details- 
getRadiuspublic int getRadius()Returns the radius of the blur.
- 
getDXpublic int getDX()Returns the X offset of the shadow.
- 
getDYpublic int getDY()Returns the Y offset of the shadow.
- 
deriveFillReturns a shadow fill just like this one, but with a radius equal to the given value.
- 
deriveFillReturns a shadow fill just like this one, but with a radius equal to the given value.- Overrides:
- deriveFillin class- RMImageFill
 
- 
deriveFillReturns a shadow fill just like this one, but with new offsets.
- 
getBoundsReturns the bounds required to render this fill for this shape.
- 
getImageBoundsOverrides normal image fill behavior to to account for shadow fringes and shadow offset.- Overrides:
- getImageBoundsin class- RMImageFill
 
- 
shouldClipToPathpublic boolean shouldClipToPath()Overrides normal image fill behavior to suppress clip to path, since shadow is an image of path.- Overrides:
- shouldClipToPathin class- RMImageFill
 
- 
paintShapeRender this fill in a Java2D Graphics2D.- Overrides:
- paintShapein class- RMImageFill
 
- 
getImageDataReturns the shadow image data.- Overrides:
- getImageDatain class- RMImageFill
 
- 
equalsStandard equals implementation.- Overrides:
- equalsin class- RMImageFill
 
- 
toXMLXML archival.- Overrides:
- toXMLin class- RMImageFill
 
- 
fromXMLXML unarchival.- Overrides:
- fromXMLin class- RMImageFill
 
 
-