Class RMEditorShapePainter
- java.lang.Object
-
- com.inductiveautomation.rm.shape.RMShapePainterJ2D
-
- com.inductiveautomation.rm.editor.RMEditorShapePainter
-
- All Implemented Interfaces:
RMPainter
,RMShapePainter
,java.lang.Cloneable
public class RMEditorShapePainter extends RMShapePainterJ2D
A Java2D painter subclass for editor.
-
-
Constructor Summary
Constructors Constructor Description RMEditorShapePainter(java.awt.Graphics2D aGr, RMEditor anEditor)
Creates an editor java2d painter for the given editor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<RMShape>
getSelected()
boolean
isEditing()
Returns whether painting is for editor.boolean
isSelected(RMShape aShape)
Returns whether given shape is selected.boolean
isSuperSelected(RMShape aShape)
Returns whether given shape is super selected.boolean
isSuperSelectedShape(RMShape aShape)
Returns whether given shape is THE super selected shape.protected void
paintText(RMTextShape aText)
Paints text - special case because uses editor.protected void
paintTextEditor(RMTextEditor aTE)
Paints a given layout in a given graphics.void
sendPaintShape(RMShape aShape)
Override to handle text.-
Methods inherited from class com.inductiveautomation.rm.shape.RMShapePainterJ2D
clip, clone, dispose, draw, drawButton, drawButton, drawGlyphVector, drawImage, drawImage, drawLine, drawRect, drawString, fill, fill3DRect, fillRect, getAlignmentX, getAlignmentY, getBounds, getClip, getClipBounds, getColor, getFont, getFontAscent, getGraphics, getOpacity, getPaint, getScale, getStringBounds, getStroke, isGrowToFit, isPrinting, isShrinkToFit, paintShape, rotate, scale, setAlignmentX, setAlignmentY, setAntialiasing, setBounds, setBounds, setClip, setColor, setFont, setGrowToFit, setOpacity, setPaint, setPrinting, setScale, setShrinkToFit, setStroke, toString, transform, translate
-
-
-
-
Constructor Detail
-
RMEditorShapePainter
public RMEditorShapePainter(java.awt.Graphics2D aGr, RMEditor anEditor)
Creates an editor java2d painter for the given editor.
-
-
Method Detail
-
isEditing
public boolean isEditing()
Returns whether painting is for editor.- Specified by:
isEditing
in interfaceRMShapePainter
- Overrides:
isEditing
in classRMShapePainterJ2D
-
isSelected
public boolean isSelected(RMShape aShape)
Returns whether given shape is selected.- Specified by:
isSelected
in interfaceRMShapePainter
- Overrides:
isSelected
in classRMShapePainterJ2D
-
isSuperSelected
public boolean isSuperSelected(RMShape aShape)
Returns whether given shape is super selected.- Specified by:
isSuperSelected
in interfaceRMShapePainter
- Overrides:
isSuperSelected
in classRMShapePainterJ2D
-
isSuperSelectedShape
public boolean isSuperSelectedShape(RMShape aShape)
Returns whether given shape is THE super selected shape.- Specified by:
isSuperSelectedShape
in interfaceRMShapePainter
- Overrides:
isSuperSelectedShape
in classRMShapePainterJ2D
-
getSelected
public java.util.List<RMShape> getSelected()
-
sendPaintShape
public void sendPaintShape(RMShape aShape)
Override to handle text.- Specified by:
sendPaintShape
in interfaceRMShapePainter
- Overrides:
sendPaintShape
in classRMShapePainterJ2D
-
paintText
protected void paintText(RMTextShape aText)
Paints text - special case because uses editor.
-
paintTextEditor
protected void paintTextEditor(RMTextEditor aTE)
Paints a given layout in a given graphics.
-
-