Package com.reportmill.editor
Class RMEditorShapePainter
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.shape.RMShapePainter
-
- com.reportmill.editor.RMEditorShapePainter
-
- All Implemented Interfaces:
RMArchiver.Archiving
,java.lang.Cloneable
- Direct Known Subclasses:
RBEditorShapePainter
public class RMEditorShapePainter extends RMShapePainter
A Shape painter subclass for painting shapes in an editor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.reportmill.shape.RMShapePainter
RMShapePainter.Paint
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.Image
_frameIcon
-
Constructor Summary
Constructors Constructor Description RMEditorShapePainter(RMEditor anEditor)
Creates a shape painter 2 for the given editor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Image
getDefaultImage()
Returns the default image.RMEditor
getEditor()
Returns the editor associated with this shape painter.void
paintShape(RMLabel aLabel, java.awt.Graphics2D g)
Handles painting a label shape.void
paintShape(RMNestedDoc aDoc, java.awt.Graphics2D g)
Handles painting a nested document shape.void
paintShape(RMPolygon aPoly, java.awt.Graphics2D g)
Handles painting a polygon shape.void
paintShape(RMSound aSound, java.awt.Graphics2D g)
Handles painting a sound shape.void
paintShape(RMSwitchShape aSwitch, java.awt.Graphics2D g)
Handles painting a switch shape.void
paintShape(RMTable aTable, java.awt.Graphics2D g)
Handles painting a table.void
paintShape(RMTableRow aTableRow, java.awt.Graphics2D g)
Handles painting a table row.void
paintShape(RMText aText, java.awt.Graphics2D g)
Paints text.-
Methods inherited from class com.reportmill.shape.RMShapePainter
getImageForShape, getImageForShape, isPrinting, paintShape, paintShape, paintShape, paintShape, paintShape_super, paintShapeDeep, paintShapeOver, paintShapeOver, setPrinting
-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
Constructor Detail
-
RMEditorShapePainter
public RMEditorShapePainter(RMEditor anEditor)
Creates a shape painter 2 for the given editor.
-
-
Method Detail
-
getEditor
public RMEditor getEditor()
Returns the editor associated with this shape painter.
-
paintShape
public void paintShape(RMText aText, java.awt.Graphics2D g)
Paints text.- Overrides:
paintShape
in classRMShapePainter
-
paintShape
public void paintShape(RMSound aSound, java.awt.Graphics2D g)
Handles painting a sound shape.- Overrides:
paintShape
in classRMShapePainter
-
paintShape
public void paintShape(RMPolygon aPoly, java.awt.Graphics2D g)
Handles painting a polygon shape.- Overrides:
paintShape
in classRMShapePainter
-
paintShape
public void paintShape(RMSwitchShape aSwitch, java.awt.Graphics2D g)
Handles painting a switch shape.- Overrides:
paintShape
in classRMShapePainter
-
paintShape
public void paintShape(RMTable aTable, java.awt.Graphics2D g)
Handles painting a table.- Overrides:
paintShape
in classRMShapePainter
-
paintShape
public void paintShape(RMTableRow aTableRow, java.awt.Graphics2D g)
Handles painting a table row.- Overrides:
paintShape
in classRMShapePainter
-
paintShape
public void paintShape(RMLabel aLabel, java.awt.Graphics2D g)
Handles painting a label shape.- Overrides:
paintShape
in classRMShapePainter
-
paintShape
public void paintShape(RMNestedDoc aDoc, java.awt.Graphics2D g)
Handles painting a nested document shape.- Overrides:
paintShape
in classRMShapePainter
-
getDefaultImage
public java.awt.Image getDefaultImage()
Returns the default image.- Overrides:
getDefaultImage
in classRMShapePainter
-
-