Package com.reportmill.shape
Class RMShapePainter
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.shape.RMShapePainter
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 - Direct Known Subclasses:
- RMEditorShapePainter
 
 public class RMShapePainter extends RMObject This class is responsible for rendering all the base shapes with AWT and Java2D.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceRMShapePainter.PaintAn interface for shapes that want to define their own drawing.
 - 
Constructor SummaryConstructors Constructor Description RMShapePainter()Creates a plain shape painter.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ImagegetDefaultImage()Returns a default image to be used in case a shape image fill returns bogus null image.static java.awt.image.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 java.awt.image.BufferedImagegetImageForShape(RMShape aShape, java.awt.Color aColor, float scale)Returns an image for the given shape, with given background color (null for clear) and scale.static booleanisPrinting()Returns whether ShapePainter is printing.voidpaintShape(RMCrossTab aCrossTab, java.awt.Graphics2D g)Paints a crosstab.voidpaintShape(RMGraph.BarLabel aBarLabel, java.awt.Graphics2D g)Paint bar label.voidpaintShape(RMLabel aLabel, java.awt.Graphics2D g)Draw label shape.voidpaintShape(RMLabels labels, java.awt.Graphics2D g)Paint labels shapes.voidpaintShape(RMNestedDoc aDoc, java.awt.Graphics2D g)Draw nested doc shape.voidpaintShape(RMPolygon aPolygon, java.awt.Graphics2D g)Paints a polygon shape.voidpaintShape(RMShape aShape, java.awt.Graphics2D g)Paints a simple shape.voidpaintShape(RMSound aSound, java.awt.Graphics2D g)Paints a sound shape.voidpaintShape(RMSwitchShape aSwitchShape, java.awt.Graphics2D g)Draw switch shape.voidpaintShape(RMTable aTable, java.awt.Graphics2D g)Paints a table shape.voidpaintShape(RMTableRow aTableRow, java.awt.Graphics2D g)Paints table row.voidpaintShape(RMText aText, java.awt.Graphics2D g)Paints a text shape.voidpaintShape_super(RMShape aShape, java.awt.Graphics2D g)Top-level specific shape paining (forwards call depending on class).voidpaintShapeDeep(RMShape aShape, java.awt.Graphics2D g)Top-level generic shape painting (sets transform, recurses to children, paints this).voidpaintShapeOver(RMTableGroup aTableGroup, java.awt.Graphics2D g)Paints table group button after child table has been drawn.voidpaintShapeOver(RMTable aTable, java.awt.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
 
- 
 
- 
- 
- 
Method Detail- 
isPrintingpublic static boolean isPrinting() Returns whether ShapePainter is printing.
 - 
setPrintingpublic static void setPrinting(boolean aValue) Sets whether ShapePainter is printing.
 - 
paintShapeDeeppublic void paintShapeDeep(RMShape aShape, java.awt.Graphics2D g) Top-level generic shape painting (sets transform, recurses to children, paints this).
 - 
paintShape_superpublic void paintShape_super(RMShape aShape, java.awt.Graphics2D g) Top-level specific shape paining (forwards call depending on class). Broken out for RMShapePainter.Paint implementers.
 - 
paintShapepublic void paintShape(RMShape aShape, java.awt.Graphics2D g) Paints a simple shape.
 - 
paintShapepublic void paintShape(RMText aText, java.awt.Graphics2D g) Paints a text shape.
 - 
paintShapepublic void paintShape(RMSound aSound, java.awt.Graphics2D g) Paints a sound shape.
 - 
paintShapepublic void paintShape(RMPolygon aPolygon, java.awt.Graphics2D g) Paints a polygon shape.
 - 
paintShapepublic void paintShape(RMTable aTable, java.awt.Graphics2D g) Paints a table shape.
 - 
paintShapeOverpublic void paintShapeOver(RMTable aTable, java.awt.Graphics2D g) Paints stroke around table after all children have drawn.
 - 
paintShapeOverpublic void paintShapeOver(RMTableGroup aTableGroup, java.awt.Graphics2D g) Paints table group button after child table has been drawn.
 - 
paintShapepublic void paintShape(RMTableRow aTableRow, java.awt.Graphics2D g) Paints table row.
 - 
paintShapepublic void paintShape(RMCrossTab aCrossTab, java.awt.Graphics2D g) Paints a crosstab.
 - 
paintShapepublic void paintShape(RMGraph.BarLabel aBarLabel, java.awt.Graphics2D g) Paint bar label.
 - 
paintShapepublic void paintShape(RMSwitchShape aSwitchShape, java.awt.Graphics2D g) Draw switch shape. Implement this so RMEditorShapePainter can override it.
 - 
paintShapepublic void paintShape(RMLabel aLabel, java.awt.Graphics2D g) Draw label shape. Implement this so RMEditorShapePainter can override it.
 - 
paintShapepublic void paintShape(RMLabels labels, java.awt.Graphics2D g) Paint labels shapes.
 - 
paintShapepublic void paintShape(RMNestedDoc aDoc, java.awt.Graphics2D g) Draw nested doc shape.
 - 
getDefaultImagepublic java.awt.Image getDefaultImage() Returns a default image to be used in case a shape image fill returns bogus null image.
 - 
getImageForShapepublic static java.awt.image.BufferedImage getImageForShape(RMShape aShape, boolean alpha, float scale) Returns an image for the given shape (with an option to include transparency and/or scale image).
 - 
getImageForShapepublic static java.awt.image.BufferedImage getImageForShape(RMShape aShape, java.awt.Color aColor, float scale) Returns an image for the given shape, with given background color (null for clear) and scale.
 
- 
 
-