Package com.luciad.view.gxy
Interface ILcdGXYPainterProvider<T extends ILcdGXYPainter>
- All Superinterfaces:
Cloneable
,ILcdCloneable
,Serializable
- All Known Implementing Classes:
ALcdEarthGXYPainter
,ALcdGXYAreaPainter
,ALcdGXYPainter
,ALcdRasterPainter
,ALcdSLDFeatureTypeStylePainter
,TLcdAIXM51GXYPainterEditorProvider
,TLcdAllInMemoryRasterPainter
,TLcdAPP6AGXYPainterProvider
,TLcdCGMGXYPainterProvider
,TLcdCompassGridPainter
,TLcdDatabaseGXYPainterProvider
,TLcdDGNCellGXYPainter
,TLcdDGNComplexShapeGXYPainter
,TLcdDGNEllipse2DGXYPainter
,TLcdDGNGXYPainterProvider
,TLcdDWGGXYPainterProvider
,TLcdEarthGXYElevationRasterPainter
,TLcdEarthGXYMultivaluedRasterPainter
,TLcdEarthGXYRasterPainter
,TLcdEarthGXYSinglevaluedRasterPainter
,TLcdEarthGXYVectorPainter
,TLcdEarthGXYVertexArrayPainter
,TLcdGRIBGXYPainterProvider
,TLcdGRIBRasterPainter
,TLcdGXYAISIconProviderPainter
,TLcdGXYAISPointListPainter
,TLcdGXYArcBandPainter
,TLcdGXYArcPainter
,TLcdGXYAreaShapeListPainter
,TLcdGXYBoundsPainter
,TLcdGXYBufferPainter
,TLcdGXYCircleBy3PointsPainter
,TLcdGXYCirclePainter
,TLcdGXYCircularArcPainter
,TLcdGXYClippingPainterWrapper
,TLcdGXYCompositeCurvePainter
,TLcdGXYCompositeRingPainter
,TLcdGXYDynamicSegmentationEventPainter
,TLcdGXYEditableLabelPainter
,TLcdGXYEllipsePainter
,TLcdGXYGeoBufferPainter
,TLcdGXYHaloPainter
,TLcdGXYIconPainter
,TLcdGXYILSPainter
,TLcdGXYImageIconPainter
,TLcdGXYImagePainter
,TLcdGXYLonLatHeightBufferPainter
,TLcdGXYOffsetIconPainter
,TLcdGXYPainterProvider
,TLcdGXYPointListPainter
,TLcdGXYPointShapeListPainter
,TLcdGXYPolylineShapeListPainter
,TLcdGXYProcedureTrajectoryPainter
,TLcdGXYRefuelingTrackPainter
,TLcdGXYRoundedPointListPainter
,TLcdGXYRoutePainter
,TLcdGXYShapeListPainter
,TLcdGXYShapePainter
,TLcdGXYSurfacePainter
,TLcdGXYTextPainter
,TLcdGXYTiledWMSProxyPainter
,TLcdHypsometricEarthPainter
,TLcdHypsometricMultilevelRasterPainter
,TLcdHypsometricRasterPainter
,TLcdICAOAirspacePainter
,TLcdICAORunwayPainter
,TLcdKML22GXYPainterProvider
,TLcdLonLatBorderGridPainter
,TLcdLonLatGridPainter
,TLcdMagneticNorthGXYPainter
,TLcdMIFGXYPainterProvider
,TLcdMS2525bGXYPainterProvider
,TLcdMultilevelRasterPainter
,TLcdMultivaluedRasterPainter
,TLcdNetCDFGXYPainterProvider
,TLcdNoWarpMultilevelRasterPainter
,TLcdNoWarpRasterPainter
,TLcdNVGGXYPainterProvider
,TLcdPOLPainter
,TLcdRasterPainter
,TLcdS52GXYPainterProvider
,TLcdShadedMultilevelRasterPainter
,TLcdShadedRasterPainter
,TLcdSingleGXYPainterProvider
,TLcdSLDFeatureTypeStylePainter
,TLcdUTMZonePainter
,TLcdVPFGXYPainterProvider
,TLcdVPFPointListPainter
,TLcdVPFPointPainter
,TLcdWarpMultilevelRasterPainter
,TLcdWarpRasterPainter
,TLcdWMSProxyGXYPainter
,TLcyGMLPainterProvider
,TLcyPIMPreviewUnitPainterProvider
,TLcySVGPainterProvider
,TLfnVectorGXYPainterProvider
public interface ILcdGXYPainterProvider<T extends ILcdGXYPainter>
extends Serializable, ILcdCloneable
Provides an
ILcdGXYLayer
with an ILcdGXYPainter
to represent
the objects in the layers model.
An ILcdGXYPainterProvider
is part of a ILcdGXYLayer
and is responsible to
provide a suitable painter for every object that is in the layers model.
Since painters are stateful with regard to the object they are painting, their state has to be updated
by the painter provider before it is returned to the layer that will use the painter to put a representation
of the object on a view. An implementation of the getGXYPainter
method therefore
should 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;
}
-
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.
-
Method Details
-
getGXYPainter
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; }
- 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
Object clone()RedefinesObject.clone
to make it public.- Specified by:
clone
in interfaceILcdCloneable
- Returns:
- a clone of this painter provider.
- See Also:
-