TLcdGXYShapeListPainter
instead.public class TLcdGXYAreaShapeListPainter extends TLcdGXYShapeListPainter
TLcdGXYShapeListPainter
for painting
ILcdShapeList
objects which constituting ILcdShape
objects
can be casted to an ILcdPointList
.
All ILcdShape
objects of an ILcdShapeList
painted with this ILcdGXYPainter
are painted as a polygon
They are all painted in the same color.
The constructor allows to set the default outline color, selection color
and fill color.
It has a property filled which determines whether or not to paint the
polygons as filled.
Its property displayName (see ALcdGXYPainter
) is set to "Area".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 |
---|
TLcdGXYAreaShapeListPainter()
Deprecated.
Constructs a
TLcdGXYPolylineShapeListPainter having as default painting color
Color.gray, as selection color Color.red and filled set to false . |
TLcdGXYAreaShapeListPainter(Color aDefaultColor)
Deprecated.
Constructs a
TLcdGXYPolylineShapeListPainter having as default painting color
aDefaultColor, as selection color Color.red and filled set to false . |
TLcdGXYAreaShapeListPainter(Color aDefaultColor,
Color aSelectionColor)
Deprecated.
Constructs a
TLcdGXYPolylineShapeListPainter having as default painting color
aDefaultColor, as selection color aSelectionColor and filled set to false . |
TLcdGXYAreaShapeListPainter(Color aDefaultColor,
Color aSelectionColor,
boolean aFilled)
Deprecated.
Constructs a
TLcdGXYPolylineShapeListPainter having as default painting color
aDefaultColor, as selection color aSelectionColor and filled set to aFilled. |
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.
|
Color |
getSelectionColor()
Deprecated.
The property selectionColor holds the color by which the objects will be painted
when they are selected.
|
boolean |
isFilled()
Deprecated.
Returns whether the objects should be painted filled.
|
boolean |
isPaintCache()
Deprecated.
Returns whether the painter used to paint the object uses a cache when painting 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 |
setFilled(boolean aFilled)
Deprecated.
Sets whether the objects should be painted filled or not.
|
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 aColor)
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 TLcdGXYAreaShapeListPainter()
TLcdGXYPolylineShapeListPainter
having as default painting color
Color.gray, as selection color Color.red and filled set to false
.public TLcdGXYAreaShapeListPainter(Color aDefaultColor)
TLcdGXYPolylineShapeListPainter
having as default painting color
aDefaultColor, as selection color Color.red and filled set to false
.aDefaultColor
- the default color for painting.public TLcdGXYAreaShapeListPainter(Color aDefaultColor, Color aSelectionColor)
TLcdGXYPolylineShapeListPainter
having as default painting color
aDefaultColor, as selection color aSelectionColor and filled set to false
.aDefaultColor
- the default color for painting.aSelectionColor
- the color for painting in selection mode.public TLcdGXYAreaShapeListPainter(Color aDefaultColor, Color aSelectionColor, boolean aFilled)
TLcdGXYPolylineShapeListPainter
having as default painting color
aDefaultColor, as selection color aSelectionColor and filled set to aFilled.aDefaultColor
- the default color for painting.aSelectionColor
- the color for painting in selection mode.aFilled
- whether to paint the areas filled or not.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 to paint objects.getDefaultColor()
public Color getSelectionColor()
setSelectionColor(java.awt.Color)
public void setSelectionColor(Color aColor)
aColor
- the color paint objects in selected 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
- whether the painter to paint the objects should use a cache to paint the objects.isPaintCache()
public void setFilled(boolean aFilled)
aFilled
- true to paint the objects filled.isFilled()
public boolean isFilled()
setFilled(boolean)
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()