Package com.reportmill.shape
Class RMShapePainter
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.shape.RMShapePainter
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
- Direct Known Subclasses:
- RMEditorShapePainter
This class is responsible for rendering all the base shapes with AWT and Java2D.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface for shapes that want to define their own drawing.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns a default image to be used in case a shape image fill returns bogus null image.static BufferedImagegetImageForShape(RMShape aShape, boolean alpha, float scale) Returns an image for the given shape (with an option to include transparency and/or scale image).static BufferedImagegetImageForShape(RMShape aShape, Color aColor, float scale) Returns an image for the given shape, with given background color (null for clear) and scale.static booleanReturns whether ShapePainter is printing.voidpaintShape(RMCrossTab aCrossTab, Graphics2D g) Paints a crosstab.voidpaintShape(RMGraph.BarLabel aBarLabel, Graphics2D g) Paint bar label.voidpaintShape(RMLabel aLabel, Graphics2D g) Draw label shape.voidpaintShape(RMLabels labels, Graphics2D g) Paint labels shapes.voidpaintShape(RMNestedDoc aDoc, Graphics2D g) Draw nested doc shape.voidpaintShape(RMPolygon aPolygon, Graphics2D g) Paints a polygon shape.voidpaintShape(RMShape aShape, Graphics2D g) Paints a simple shape.voidpaintShape(RMSound aSound, Graphics2D g) Paints a sound shape.voidpaintShape(RMSwitchShape aSwitchShape, Graphics2D g) Draw switch shape.voidpaintShape(RMTable aTable, Graphics2D g) Paints a table shape.voidpaintShape(RMTableRow aTableRow, Graphics2D g) Paints table row.voidpaintShape(RMText aText, Graphics2D g) Paints a text shape.voidpaintShape_super(RMShape aShape, Graphics2D g) Top-level specific shape paining (forwards call depending on class).voidpaintShapeDeep(RMShape aShape, Graphics2D g) Top-level generic shape painting (sets transform, recurses to children, paints this).voidpaintShapeOver(RMTableGroup aTableGroup, Graphics2D g) Paints table group button after child table has been drawn.voidpaintShapeOver(RMTable aTable, Graphics2D g) Paints stroke around table after all children have drawn.static voidsetPrinting(boolean aValue) Sets whether ShapePainter is printing.Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
RMShapePainterpublic RMShapePainter()Creates a plain shape painter.
 
- 
- 
Method Details- 
isPrintingpublic static boolean isPrinting()Returns whether ShapePainter is printing.
- 
setPrintingpublic static void setPrinting(boolean aValue) Sets whether ShapePainter is printing.
- 
paintShapeDeepTop-level generic shape painting (sets transform, recurses to children, paints this).
- 
paintShape_superTop-level specific shape paining (forwards call depending on class). Broken out for RMShapePainter.Paint implementers.
- 
paintShapePaints a simple shape.
- 
paintShapePaints a text shape.
- 
paintShapePaints a sound shape.
- 
paintShapePaints a polygon shape.
- 
paintShapePaints a table shape.
- 
paintShapeOverPaints stroke around table after all children have drawn.
- 
paintShapeOverPaints table group button after child table has been drawn.
- 
paintShapePaints table row.
- 
paintShapePaints a crosstab.
- 
paintShapePaint bar label.
- 
paintShapeDraw switch shape. Implement this so RMEditorShapePainter can override it.
- 
paintShapeDraw label shape. Implement this so RMEditorShapePainter can override it.
- 
paintShapePaint labels shapes.
- 
paintShapeDraw nested doc shape.
- 
getDefaultImageReturns a default image to be used in case a shape image fill returns bogus null image.
- 
getImageForShapeReturns an image for the given shape (with an option to include transparency and/or scale image).
- 
getImageForShapeReturns an image for the given shape, with given background color (null for clear) and scale.
 
-