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.
  • Constructor Details

    • TLcyGXYAsynchronousLayerTypeProvider

      public TLcyGXYAsynchronousLayerTypeProvider(ILcyLucyEnv aLucyEnv, ILcyGXYLayerTypeProvider aLayerTypeProvider)
      Creates a new layer type provider wrapper.
      Parameters:
      aLucyEnv - Lucy environment
      aLayerTypeProvider - existing layer type provider to wrap. The provider will be offered layers that are safe to cast and access.
  • Method Details

    • getGXYLayerType

      public int getGXYLayerType(ILcdGXYLayer aGXYLayer)
      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 in ILcyGXYLayerType.
      Specified by:
      getGXYLayerType in interface ILcyGXYLayerTypeProvider
      Parameters:
      aGXYLayer - the layer whose type we wish to retrieve
      Returns:
      the layers type if the provider knows it; ILcyGXYLayerType.UNKNOWN otherwise
      See Also: