Package com.luciad.lucy.map.asynchronous
Class TLcyGXYAsynchronousLayerTypeProvider
java.lang.Object
com.luciad.lucy.map.asynchronous.TLcyGXYAsynchronousLayerTypeProvider
- All Implemented Interfaces:
ILcyGXYLayerType
,ILcyGXYLayerTypeProvider
public class TLcyGXYAsynchronousLayerTypeProvider
extends Object
implements ILcyGXYLayerTypeProvider
Layer type provider wrapper for asynchronous painting, passing safe-to-use layers to the wrapped provider.
It allows to easily convert a layer type provider into a layer type provider that supports asynchronous
painting.
-
Field Summary
Fields inherited from interface com.luciad.lucy.map.ILcyGXYLayerType
BACKGROUND, EDITABLE, REALTIME, UNKNOWN
-
Constructor Summary
ConstructorDescriptionTLcyGXYAsynchronousLayerTypeProvider
(ILcyLucyEnv aLucyEnv, ILcyGXYLayerTypeProvider aLayerTypeProvider) Creates a new layer type provider wrapper. -
Method Summary
Modifier and TypeMethodDescriptionint
getGXYLayerType
(ILcdGXYLayer aGXYLayer) Returns the type of a specified layer.
-
Constructor Details
-
TLcyGXYAsynchronousLayerTypeProvider
public TLcyGXYAsynchronousLayerTypeProvider(ILcyLucyEnv aLucyEnv, ILcyGXYLayerTypeProvider aLayerTypeProvider) Creates a new layer type provider wrapper.- Parameters:
aLucyEnv
- Lucy environmentaLayerTypeProvider
- existing layer type provider to wrap. The provider will be offered layers that are safe to cast and access.
-
-
Method Details
-
getGXYLayerType
Description copied from interface:ILcyGXYLayerTypeProvider
Returns the type of a specified layer. If a layer type provider does not know the type of the specified layer,ILcyGXYLayerType.UNKNOWN
should be returned. The layer type must be one of the constants defined inILcyGXYLayerType
.- Specified by:
getGXYLayerType
in interfaceILcyGXYLayerTypeProvider
- Parameters:
aGXYLayer
- the layer whose type we wish to retrieve- Returns:
- the layers type if the provider knows it; ILcyGXYLayerType.UNKNOWN otherwise
- See Also:
-