Package com.luciad.view.gxy.painter
Class TLcdGXYPolylineShapeListPainter
java.lang.Object
com.luciad.view.gxy.ALcdGXYPainter
com.luciad.view.gxy.painter.TLcdGXYShapeListPainter
com.luciad.view.gxy.painter.TLcdGXYPolylineShapeListPainter
- All Implemented Interfaces:
ILcdCloneable,ILcdDeepCloneable,ILcdPropertyChangeSource,ILcdGXYEditor,ILcdGXYEditorProvider,ILcdGXYPainter,ILcdGXYPainterProvider,ILcdGXYPathPainter,Serializable,Cloneable
Deprecated.
This class extends
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".- 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_POINTFields inherited from class com.luciad.view.gxy.ALcdGXYPainter
defaultCreationFillStyle, defaultCreationLineStyle, defaultFillStyle, defaultLineStyle, fWorkBoundsFields inherited from interface com.luciad.view.gxy.ILcdGXYEditor
CREATING, END_CREATION, RESHAPED, START_CREATION, TRANSLATEDFields inherited from interface com.luciad.view.gxy.ILcdGXYPainter
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor.TLcdGXYPolylineShapeListPainter(Color aDefaultColor) Deprecated.Constructs aTLcdGXYPolylineShapeListPainterhaving as default painting color aDefaultColor and as selection color Color.red.TLcdGXYPolylineShapeListPainter(Color aDefaultColor, Color aSelectionColor) Deprecated.Constructs aTLcdGXYPolylineShapeListPainterhaving as default painting color aDefaultColor and as selection color aSelectionColor. -
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated.MakesObject.clone()public.Deprecated.The property defaultColor holds the color by which the objects will be painted in default mode.Deprecated.The property selectionColor holds the color by which the objects will be painted when they are selected.booleanDeprecated.Returns whether caching will be used when painting the objects.protected final ILcdGXYPainterretrieveShapePainter(ILcdShapeList aShapeList, int aShapeIndex) Deprecated.Returns the painter for the shape at the given index in theILcdShapeListobject.voidsetDefaultColor(Color aColor) Deprecated.The property defaultColor holds the color by which the objects will be painted.voidsetPaintCache(boolean aPaintCache) Deprecated.This method sets whether the painter that is returned by shapeGXYPainterProvider uses a cache when painting the objects.voidsetSelectionColor(Color aSelectionColor) Deprecated.The property selectionColor holds the color by which the objects will be painted when they are selected.final voidsetShapeGXYPainterProvider(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, supportSnapMethods inherited from class com.luciad.view.gxy.ALcdGXYPainter
addPropertyChangeListener, firePropertyChangeEvent, firePropertyChangeEvent, getDisplayName, getGXYPainter, isTraceOn, removePropertyChangeListener, setClassTraceOn, setDisplayName, setTraceOnMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.view.gxy.ILcdGXYEditor
getDisplayNameMethods inherited from interface com.luciad.view.gxy.ILcdGXYPainter
getDisplayNameMethods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
TLcdGXYPolylineShapeListPainter
public TLcdGXYPolylineShapeListPainter()Deprecated.Default constructor. Sets the default color to gray and the selection color to red. -
TLcdGXYPolylineShapeListPainter
Deprecated.Constructs aTLcdGXYPolylineShapeListPainterhaving as default painting color aDefaultColor and as selection color Color.red.- Parameters:
aDefaultColor- the color to paint objects in default mode.
-
TLcdGXYPolylineShapeListPainter
Deprecated.Constructs aTLcdGXYPolylineShapeListPainterhaving as default painting color aDefaultColor and as selection color aSelectionColor.- Parameters:
aDefaultColor- the color to paint objects in default mode.aSelectionColor- the color to paint objects in selection mode.
-
-
Method Details
-
retrieveShapePainter
Deprecated.Description copied from class:TLcdGXYShapeListPainterReturns the painter for the shape at the given index in theILcdShapeListobject.- Overrides:
retrieveShapePainterin 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
ILcdShapeListobject.
-
setShapeGXYPainterProvider
Deprecated.This method should not be called. This class has an internal painter provider for polyline objects for which a number of properties can be changed.- Overrides:
setShapeGXYPainterProviderin classTLcdGXYShapeListPainter- Parameters:
aShapeGXYPainterProvider- the painter provider for theILcdShapeobjects inside theILcdShapeListobject.- 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 in default mode. Returns the property defaultColor.- Returns:
- the color by which objects will be painted in default mode.
- 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 objects will be painted in default mode.- 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 objects will be painted in in selection 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 aSelectionColor.- Parameters:
aSelectionColor- the color objects will be painted in in selection mode.- See Also:
-
isPaintCache
public boolean isPaintCache()Deprecated.Returns whether caching will be used when painting the objects.- Returns:
trueif the painter that is returned by shapeGXYPainterProvider uses a cache when painting the objects. Elsefalseis 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- true to make the painter use caching when painting the objects. Caching increases performance.- See Also:
-
clone
Deprecated.Description copied from interface:ILcdCloneableMakes
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:
clonein interfaceILcdCloneable- Specified by:
clonein interfaceILcdGXYEditorProvider- Specified by:
clonein interfaceILcdGXYPainterProvider- Overrides:
clonein classTLcdGXYShapeListPainter- Returns:
- a clone of this painter provider.
- See Also:
-
TLcdGXYShapeListPainterinstead.