Package com.luciad.view.gxy.painter
Class TLcdGXYAreaShapeListPainter
java.lang.Object
com.luciad.view.gxy.ALcdGXYPainter
com.luciad.view.gxy.painter.TLcdGXYShapeListPainter
com.luciad.view.gxy.painter.TLcdGXYAreaShapeListPainter
- All Implemented Interfaces:
ILcdCloneable
,ILcdDeepCloneable
,ILcdPropertyChangeSource
,ILcdGXYEditor
,ILcdGXYEditorProvider
,ILcdGXYPainter
,ILcdGXYPainterProvider
,ILcdGXYPathPainter
,Serializable
,Cloneable
Deprecated.
This class extends
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".- See Also:
-
Field Summary
Fields inherited from class com.luciad.view.gxy.painter.TLcdGXYShapeListPainter
FIRST_POSSIBLE_SHAPE_ANCHOR_POINT, FOCUS_POINT, fShapeGXYEditorProvider, fShapeGXYPainterProvider, MIDDLE_OF_BOUNDS, ONE_SHAPE_ANCHOR_POINT
Fields inherited from class com.luciad.view.gxy.ALcdGXYPainter
defaultCreationFillStyle, defaultCreationLineStyle, defaultFillStyle, defaultLineStyle, fWorkBounds
Fields inherited from interface com.luciad.view.gxy.ILcdGXYEditor
CREATING, END_CREATION, RESHAPED, START_CREATION, TRANSLATED
Fields inherited from interface com.luciad.view.gxy.ILcdGXYPainter
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING
-
Constructor Summary
ConstructorDescriptionDeprecated.Constructs aTLcdGXYPolylineShapeListPainter
having as default painting color Color.gray, as selection color Color.red and filled set tofalse
.TLcdGXYAreaShapeListPainter
(Color aDefaultColor) Deprecated.Constructs aTLcdGXYPolylineShapeListPainter
having as default painting color aDefaultColor, as selection color Color.red and filled set tofalse
.TLcdGXYAreaShapeListPainter
(Color aDefaultColor, Color aSelectionColor) Deprecated.Constructs aTLcdGXYPolylineShapeListPainter
having as default painting color aDefaultColor, as selection color aSelectionColor and filled set tofalse
.TLcdGXYAreaShapeListPainter
(Color aDefaultColor, Color aSelectionColor, boolean aFilled) Deprecated.Constructs aTLcdGXYPolylineShapeListPainter
having as default painting color aDefaultColor, as selection color aSelectionColor and filled set to aFilled. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.MakesObject.clone()
public.Deprecated.The property defaultColor holds the color by which the objects will be painted.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
Deprecated.Returns whether the painter used to paint the object uses a cache when painting objects.protected final ILcdGXYPainter
retrieveShapePainter
(ILcdShapeList aShapeList, int aShapeIndex) Deprecated.Returns the painter for the shape at the given index in theILcdShapeList
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.final void
setShapeGXYPainterProvider
(ILcdGXYPainterProvider aShapeGXYPainterProvider) Deprecated.This method should not be called.Methods inherited from class com.luciad.view.gxy.painter.TLcdGXYShapeListPainter
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
Methods inherited from class com.luciad.view.gxy.ALcdGXYPainter
addPropertyChangeListener, firePropertyChangeEvent, firePropertyChangeEvent, getDisplayName, getGXYPainter, isTraceOn, removePropertyChangeListener, setClassTraceOn, setDisplayName, setTraceOn
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.view.gxy.ILcdGXYEditor
getDisplayName
Methods inherited from interface com.luciad.view.gxy.ILcdGXYPainter
getDisplayName
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
TLcdGXYAreaShapeListPainter
public TLcdGXYAreaShapeListPainter()Deprecated.Constructs aTLcdGXYPolylineShapeListPainter
having as default painting color Color.gray, as selection color Color.red and filled set tofalse
. -
TLcdGXYAreaShapeListPainter
Deprecated.Constructs aTLcdGXYPolylineShapeListPainter
having as default painting color aDefaultColor, as selection color Color.red and filled set tofalse
.- Parameters:
aDefaultColor
- the default color for painting.
-
TLcdGXYAreaShapeListPainter
Deprecated.Constructs aTLcdGXYPolylineShapeListPainter
having as default painting color aDefaultColor, as selection color aSelectionColor and filled set tofalse
.- Parameters:
aDefaultColor
- the default color for painting.aSelectionColor
- the color for painting in selection mode.
-
TLcdGXYAreaShapeListPainter
Deprecated.Constructs aTLcdGXYPolylineShapeListPainter
having as default painting color aDefaultColor, as selection color aSelectionColor and filled set to aFilled.- Parameters:
aDefaultColor
- the default color for painting.aSelectionColor
- the color for painting in selection mode.aFilled
- whether to paint the areas filled or not.
-
-
Method Details
-
retrieveShapePainter
Deprecated.Description copied from class:TLcdGXYShapeListPainter
Returns the painter for the shape at the given index in theILcdShapeList
object.- Overrides:
retrieveShapePainter
in classTLcdGXYShapeListPainter
- Parameters:
aShapeList
- The shape list containing the shape.aShapeIndex
- The index of the shape within the shape list.- Returns:
- the painter for the shape at the given index in the
ILcdShapeList
object.
-
setShapeGXYPainterProvider
Deprecated.This method should not be called. This class has an internal painter provider for polygon objects for which a number of properties can be changed.- Overrides:
setShapeGXYPainterProvider
in classTLcdGXYShapeListPainter
- Parameters:
aShapeGXYPainterProvider
- the painter provider for theILcdShape
objects inside theILcdShapeList
object.- Throws:
IllegalArgumentException
- This method cannot be used. Please use a TLcdGXYShapeListPainter instead.- See Also:
-
getDefaultColor
Deprecated.The property defaultColor holds the color by which the objects will be painted. Returns the property defaultColor.- Returns:
- the default color to paint the objects.
- See Also:
-
setDefaultColor
Deprecated.The property defaultColor holds the color by which the objects will be painted. Sets the property defaultColor to aColor.- Parameters:
aColor
- the color to paint objects.- See Also:
-
getSelectionColor
Deprecated.The property selectionColor holds the color by which the objects will be painted when they are selected. Returns the property selectionColor.- Returns:
- the color to paint objects in selected mode.
- See Also:
-
setSelectionColor
Deprecated.The property selectionColor holds the color by which the objects will be painted when they are selected. Sets the property selectionColor to aColor.- Parameters:
aColor
- the color paint objects in selected mode.- See Also:
-
isPaintCache
public boolean isPaintCache()Deprecated.Returns whether the painter used to paint the object uses a cache when painting objects.- Returns:
true
if the painter that is returned by shapeGXYPainterProvider uses a cache when painting the objects. Elsefalse
is returned.- See Also:
-
setPaintCache
public void setPaintCache(boolean aPaintCache) Deprecated.This method sets whether the painter that is returned by shapeGXYPainterProvider uses a cache when painting the objects.- Parameters:
aPaintCache
- whether the painter to paint the objects should use a cache to paint the objects.- See Also:
-
setFilled
public void setFilled(boolean aFilled) Deprecated.Sets whether the objects should be painted filled or not.- Parameters:
aFilled
- true to paint the objects filled.- See Also:
-
isFilled
public boolean isFilled()Deprecated.Returns whether the objects should be painted filled.- Returns:
- whether the objects should be painted filled.
- See Also:
-
clone
Deprecated.Description copied from interface:ILcdCloneable
Makes
When for example extending fromObject.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 ); } }
- Specified by:
clone
in interfaceILcdCloneable
- Specified by:
clone
in interfaceILcdGXYEditorProvider
- Specified by:
clone
in interfaceILcdGXYPainterProvider
- Overrides:
clone
in classTLcdGXYShapeListPainter
- Returns:
- a clone of this painter provider.
- See Also:
-
TLcdGXYShapeListPainter
instead.