public class RMShapePainter extends RMObject
Modifier and Type | Class and Description |
---|---|
static interface |
RMShapePainter.Paint
An interface for shapes that want to define their own drawing.
|
Constructor and Description |
---|
RMShapePainter()
Creates a plain shape painter.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Image |
getDefaultImage()
Returns a default image to be used in case a shape image fill returns bogus null image.
|
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).
|
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.
|
static boolean |
isPrinting()
Returns whether ShapePainter is printing.
|
void |
paintShape_super(RMShape aShape,
java.awt.Graphics2D g)
Top-level specific shape paining (forwards call depending on class).
|
void |
paintShape(RMCrossTab aCrossTab,
java.awt.Graphics2D g)
Paints a crosstab.
|
void |
paintShape(RMGraph.BarLabel aBarLabel,
java.awt.Graphics2D g)
Paint bar label.
|
void |
paintShape(RMLabel aLabel,
java.awt.Graphics2D g)
Draw label shape.
|
void |
paintShape(RMLabels labels,
java.awt.Graphics2D g)
Paint labels shapes.
|
void |
paintShape(RMNestedDoc aDoc,
java.awt.Graphics2D g)
Draw nested doc shape.
|
void |
paintShape(RMPolygon aPolygon,
java.awt.Graphics2D g)
Paints a polygon shape.
|
void |
paintShape(RMShape aShape,
java.awt.Graphics2D g)
Paints a simple shape.
|
void |
paintShape(RMSound aSound,
java.awt.Graphics2D g)
Paints a sound shape.
|
void |
paintShape(RMSwitchShape aSwitchShape,
java.awt.Graphics2D g)
Draw switch shape.
|
void |
paintShape(RMTable aTable,
java.awt.Graphics2D g)
Paints a table shape.
|
void |
paintShape(RMTableRow aTableRow,
java.awt.Graphics2D g)
Paints table row.
|
void |
paintShape(RMText aText,
java.awt.Graphics2D g)
Paints a text shape.
|
void |
paintShapeDeep(RMShape aShape,
java.awt.Graphics2D g)
Top-level generic shape painting (sets transform, recurses to children, paints this).
|
void |
paintShapeOver(RMTable aTable,
java.awt.Graphics2D g)
Paints stroke around table after all children have drawn.
|
void |
paintShapeOver(RMTableGroup aTableGroup,
java.awt.Graphics2D g)
Paints table group button after child table has been drawn.
|
static void |
setPrinting(boolean aValue)
Sets whether ShapePainter is printing.
|
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public static boolean isPrinting()
public static void setPrinting(boolean aValue)
public void paintShapeDeep(RMShape aShape, java.awt.Graphics2D g)
public void paintShape_super(RMShape aShape, java.awt.Graphics2D g)
public void paintShape(RMShape aShape, java.awt.Graphics2D g)
public void paintShape(RMText aText, java.awt.Graphics2D g)
public void paintShape(RMSound aSound, java.awt.Graphics2D g)
public void paintShape(RMPolygon aPolygon, java.awt.Graphics2D g)
public void paintShape(RMTable aTable, java.awt.Graphics2D g)
public void paintShapeOver(RMTable aTable, java.awt.Graphics2D g)
public void paintShapeOver(RMTableGroup aTableGroup, java.awt.Graphics2D g)
public void paintShape(RMTableRow aTableRow, java.awt.Graphics2D g)
public void paintShape(RMCrossTab aCrossTab, java.awt.Graphics2D g)
public void paintShape(RMGraph.BarLabel aBarLabel, java.awt.Graphics2D g)
public void paintShape(RMSwitchShape aSwitchShape, java.awt.Graphics2D g)
public void paintShape(RMLabel aLabel, java.awt.Graphics2D g)
public void paintShape(RMLabels labels, java.awt.Graphics2D g)
public void paintShape(RMNestedDoc aDoc, java.awt.Graphics2D g)
public java.awt.Image getDefaultImage()
public static java.awt.image.BufferedImage getImageForShape(RMShape aShape, boolean alpha, float scale)
public static java.awt.image.BufferedImage getImageForShape(RMShape aShape, java.awt.Color aColor, float scale)