TLcdGXYShapeListPainter
instead.public class TLcdGXYPolylineShapeListPainter extends TLcdGXYShapeListPainter
TLcdGXYShapeListPainter
for painting
ILcdShapeList
objects containing only ILcdPointList
objects.
This class holds an instance of TLcdSingleGXYPainterProvider
,
shapeGXYPainterProvider, which will be responsible for providing an
ILcdGXYPainter
for each of the ILcdPointList
objects.
The painter that is returned by shapeGXYPainterProvider is a
TLcdGXYPointListPainter
, whose mode is set to
TLcdGXYPointListPainter.POLYLINE
.
Its property displayName (see ALcdGXYPainter
) is set to "Polyline".FIRST_POSSIBLE_SHAPE_ANCHOR_POINT, FOCUS_POINT, fShapeGXYEditorProvider, fShapeGXYPainterProvider, MIDDLE_OF_BOUNDS, ONE_SHAPE_ANCHOR_POINT
defaultCreationFillStyle, defaultCreationLineStyle, defaultFillStyle, defaultLineStyle, fWorkBounds
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING
CREATING, END_CREATION, RESHAPED, START_CREATION, TRANSLATED
Constructor and Description |
---|
TLcdGXYPolylineShapeListPainter()
Deprecated.
Default constructor.
|
TLcdGXYPolylineShapeListPainter(Color aDefaultColor)
Deprecated.
Constructs a
TLcdGXYPolylineShapeListPainter having as default painting color
aDefaultColor and as selection color Color.red. |
TLcdGXYPolylineShapeListPainter(Color aDefaultColor,
Color aSelectionColor)
Deprecated.
Constructs a
TLcdGXYPolylineShapeListPainter having as default painting color
aDefaultColor and as selection color aSelectionColor. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
Makes
Object.clone() public. |
Color |
getDefaultColor()
Deprecated.
The property defaultColor holds the color by which the objects will be painted in default mode.
|
Color |
getSelectionColor()
Deprecated.
The property selectionColor holds the color by which the objects will be painted
when they are selected.
|
boolean |
isPaintCache()
Deprecated.
Returns whether caching will be used when painting the objects.
|
protected ILcdGXYPainter |
retrieveShapePainter(ILcdShapeList aShapeList,
int aShapeIndex)
Deprecated.
Returns the painter for the shape at the given index in the
ILcdShapeList object. |
void |
setDefaultColor(Color aColor)
Deprecated.
The property defaultColor holds the color by which the objects will be painted.
|
void |
setPaintCache(boolean aPaintCache)
Deprecated.
This method sets whether the painter that is returned by shapeGXYPainterProvider uses
a cache when painting the objects.
|
void |
setSelectionColor(Color aSelectionColor)
Deprecated.
The property selectionColor holds the color by which the objects will be painted
when they are selected.
|
void |
setShapeGXYPainterProvider(ILcdGXYPainterProvider aShapeGXYPainterProvider)
Deprecated.
This method should not be called.
|
acceptSnapTarget, anchorPointSFCT, appendAWTPath, appendGeneralPath, boundsSFCT, clone, edit, editShape, getAnchorPointLocation, getCreationClickCount, getCursor, getGXYEditor, getObject, getShapeGXYEditorProvider, getShapeGXYPainterProvider, isEditTouchedOnly, isTouched, paint, retrieveShapeEditor, setAnchorPointLocation, setEditTouchedOnly, setObject, setShapeGXYEditorProvider, snapTarget, supportSnap
addPropertyChangeListener, firePropertyChangeEvent, firePropertyChangeEvent, getDisplayName, getGXYPainter, isTraceOn, removePropertyChangeListener, setClassTraceOn, setDisplayName, setTraceOn
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName
addPropertyChangeListener, removePropertyChangeListener
getDisplayName
public TLcdGXYPolylineShapeListPainter()
public TLcdGXYPolylineShapeListPainter(Color aDefaultColor)
TLcdGXYPolylineShapeListPainter
having as default painting color
aDefaultColor and as selection color Color.red.aDefaultColor
- the color to paint objects in default mode.public TLcdGXYPolylineShapeListPainter(Color aDefaultColor, Color aSelectionColor)
TLcdGXYPolylineShapeListPainter
having as default painting color
aDefaultColor and as selection color aSelectionColor.aDefaultColor
- the color to paint objects in default mode.aSelectionColor
- the color to paint objects in selection mode.protected final ILcdGXYPainter retrieveShapePainter(ILcdShapeList aShapeList, int aShapeIndex)
TLcdGXYShapeListPainter
ILcdShapeList
object.retrieveShapePainter
in class TLcdGXYShapeListPainter
aShapeList
- The shape list containing the shape.aShapeIndex
- The index of the shape within the shape list.ILcdShapeList
object.public final void setShapeGXYPainterProvider(ILcdGXYPainterProvider aShapeGXYPainterProvider)
setShapeGXYPainterProvider
in class TLcdGXYShapeListPainter
aShapeGXYPainterProvider
- the painter provider for the ILcdShape
objects
inside the ILcdShapeList
object.IllegalArgumentException
- This method cannot be used. Please use a TLcdGXYShapeListPainter instead.TLcdGXYShapeListPainter.getShapeGXYPainterProvider()
public Color getDefaultColor()
setDefaultColor(java.awt.Color)
public void setDefaultColor(Color aColor)
aColor
- the color objects will be painted in default mode.getDefaultColor()
public Color getSelectionColor()
setSelectionColor(java.awt.Color)
public void setSelectionColor(Color aSelectionColor)
aSelectionColor
- the color objects will be painted in in selection mode.getSelectionColor()
public boolean isPaintCache()
true
if the painter that is returned by shapeGXYPainterProvider uses
a cache when painting the objects. Else false
is returned.setPaintCache(boolean)
public void setPaintCache(boolean aPaintCache)
aPaintCache
- true to make the painter use caching when painting the objects. Caching increases performance.isPaintCache()
public Object clone()
ILcdCloneable
Makes Object.clone()
public.
java.lang.Object
, it can be implemented like this:
public Object clone() {
try {
return super.clone();
} catch ( CloneNotSupportedException e ) {
// Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
throw new RuntimeException( e );
}
}
clone
in interface ILcdCloneable
clone
in interface ILcdGXYEditorProvider
clone
in interface ILcdGXYPainterProvider
clone
in class TLcdGXYShapeListPainter
Object.clone()