Package com.luciad.lucy.map.asynchronous
Class TLcyGXYAsynchronousLayerFactory
java.lang.Object
com.luciad.lucy.map.asynchronous.TLcyGXYAsynchronousLayerFactory
- All Implemented Interfaces:
ILcdGXYLayerFactory
Asynchronous layer factory, wrapping around an existing layer factory.
It allows to easily convert a layer factory into a layer factory that supports asynchronous painting:
layers produced by this factory will be painted asynchronously.
-
Constructor Summary
ConstructorDescriptionTLcyGXYAsynchronousLayerFactory
(ILcyLucyEnv aLucyEnv, ILcdGXYLayerFactory aLayerFactory, ILcdFilter aAsynchronousLayerFilter) Creates a new layer factory. -
Method Summary
Modifier and TypeMethodDescriptioncreateGXYLayer
(ILcdModel aModel) This method creates anILcdGXYLayer
for representing anILcdModel
on anILcdGXYView
.
-
Constructor Details
-
TLcyGXYAsynchronousLayerFactory
public TLcyGXYAsynchronousLayerFactory(ILcyLucyEnv aLucyEnv, ILcdGXYLayerFactory aLayerFactory, ILcdFilter aAsynchronousLayerFilter) Creates a new layer factory.- Parameters:
aLucyEnv
- Lucy environmentaLayerFactory
- existing factory to wrap. Created layers will be made asynchronous.aAsynchronousLayerFilter
- the filter to use to determine if a created layer should be painted asynchronously. If null, all created layers are painted asynchronously.
-
-
Method Details
-
createGXYLayer
This method creates anILcdGXYLayer
for representing anILcdModel
on anILcdGXYView
. It creates a layer using the wrapped factory and makes it asynchronous if it is accepted by the asynchronous layer filter, usingALcyAsynchronousPaintFacade.createGXYAsynchronousLayer(com.luciad.view.gxy.ILcdGXYLayer)
- Specified by:
createGXYLayer
in interfaceILcdGXYLayerFactory
- Parameters:
aModel
- the model for which to create a layer- Returns:
- the result of
ALcyAsynchronousPaintFacade.createGXYAsynchronousLayer(com.luciad.view.gxy.ILcdGXYLayer)
- See Also:
-