Package com.luciad.lucy.map.asynchronous
Class TLcyGXYAsynchronousLayerPaintHintProvider
java.lang.Object
com.luciad.lucy.map.asynchronous.TLcyGXYAsynchronousLayerPaintHintProvider
- All Implemented Interfaces:
ILcyAsynchronousPaintHintProvider
public class TLcyGXYAsynchronousLayerPaintHintProvider
extends Object
implements ILcyAsynchronousPaintHintProvider
Asynchronous paint hint provider wrapper, passing safe-to-use layers to the wrapped provider.
It allows to easily convert a paint hint provider into a paint hint provider that supports asynchronous
painting.
-
Constructor Summary
ConstructorDescriptionTLcyGXYAsynchronousLayerPaintHintProvider
(ILcyLucyEnv aLucyEnv, ILcyAsynchronousPaintHintProvider aPaintHintProvider) Creates a new paint hint provider wrapper. -
Method Summary
Modifier and TypeMethodDescriptiongetAsynchronousPaintHint
(ILcdLayer aLayer) Returns a paint hint for the specified layer.
-
Constructor Details
-
TLcyGXYAsynchronousLayerPaintHintProvider
public TLcyGXYAsynchronousLayerPaintHintProvider(ILcyLucyEnv aLucyEnv, ILcyAsynchronousPaintHintProvider aPaintHintProvider) Creates a new paint hint provider wrapper.- Parameters:
aLucyEnv
- Lucy environmentaPaintHintProvider
- existing paint hint provider to wrap. The provider will be offered layers that are safe to cast and access.
-
-
Method Details
-
getAsynchronousPaintHint
Description copied from interface:ILcyAsynchronousPaintHintProvider
Returns a paint hint for the specified layer. If a paint hint provider cannot determine a paint hint for the specified layer,null
should be returned.- Specified by:
getAsynchronousPaintHint
in interfaceILcyAsynchronousPaintHintProvider
- Parameters:
aLayer
- the layer for which we wish to retrieve a paint hint- Returns:
- an asynchronous paint hint if the provider knows it;
null
otherwise - See Also:
-