Package com.luciad.view.gxy
Class TLcdSingleGXYPainterProvider
java.lang.Object
com.luciad.view.gxy.TLcdSingleGXYPainterProvider
- All Implemented Interfaces:
ILcdCloneable
,ILcdGXYPainterProvider
,Serializable
,Cloneable
This is an implementation of the
ILcdGXYPainterProvider
interface
that returns always the same ILcdGXYPainter
. .- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdSingleGXYPainterProvider
(ILcdGXYPainter aGXYPainter) Creates aILcdGXYPainterProvider
implementation that returns the given painter for every object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
RedefinesObject.clone
to make it public.getGXYPainter
(Object aObject) Finds anILcdGXYPainter
that can be used to paint or locate the object passed.
-
Constructor Details
-
TLcdSingleGXYPainterProvider
Creates aILcdGXYPainterProvider
implementation that returns the given painter for every object.- Parameters:
aGXYPainter
- an editor for every object this painter provider is requested for.
-
-
Method Details
-
getGXYPainter
Description copied from interface:ILcdGXYPainterProvider
Finds anILcdGXYPainter
that can be used to paint or locate the object passed.The painter provider is responsible for setting the object to the painter before returning the painter. An implementation should therefore have the following structure:
public ILcdGXYPainter getGXYPainter(Object aObject) { ILcdGXYPainter painter = ... // find the painter for the object if (painter != null) { painter.setObject(aObject); } return painter; }
- Specified by:
getGXYPainter
in interfaceILcdGXYPainterProvider
- Parameters:
aObject
- the object to find a painter for- Returns:
- a painter that can be used to paint or locate the object; or null if no painter could be found for the given object, or the object could not be set on the retrieved painter.
-
clone
Description copied from interface:ILcdGXYPainterProvider
RedefinesObject.clone
to make it public.- Specified by:
clone
in interfaceILcdCloneable
- Specified by:
clone
in interfaceILcdGXYPainterProvider
- Overrides:
clone
in classObject
- Returns:
- a clone of this painter provider.
- See Also:
-