public class TLcyAsynchronousPaintAddOn extends ALcyPreferencesAddOn
Add-on for asynchronous painting using layer wrappers. This add-on installs a
ALcyAsynchronousPaintFacade
that creates
ILcdGXYAsynchronousLayerWrapper
instances.
When added to a map component, these wrappers will paint your layers asynchronously.
While the created wrappers are safe to use in combination with the default Lucy controllers
and controls, installing this add-on has a number of consequences:
ALcyAsynchronousPaintFacade
's invocation methods
if you want to access the wrapped layersTLcdLockUtil
)Override the createAsynchronousPaintFacade()
method to customize the behaviour of this add-on,
e.g. installing a new paint queue manager can be achieved by wrapping the default ALcyAsynchronousPaintFacade
:
// override the createAsynchronousPaintFacade method
protected ALcyAsynchronousPaintFacade createAsynchronousPaintFacade(){
ALcyAsynchronousPaintFacade delegate = super.createAsynchronousPaintFacade();
return new ALcyAsynchronousPaintFacade{
// delegate all methods to the delegate.
...
// use a custom paint queue manager
public void setupGXYAsynchronousPaintQueueManager( ILcdGXYView aView ){
ALcdGXYAsynchronousPaintQueueManager myManager = ...
myManager.setGXYView( aView );
}
}
}
Please consult the Lucy developer's guide for more information on asynchronous painting in Lucy.
Constructor and Description |
---|
TLcyAsynchronousPaintAddOn() |
Modifier and Type | Method and Description |
---|---|
protected ALcyAsynchronousPaintFacade |
createAsynchronousPaintFacade()
Factory method responsible for the creation of the
ALcyAsynchronousPaintFacade
installed by this add-on |
void |
plugInto(ILcyLucyEnv aLucyEnv)
Creates and plugs in the add-on's preferences tool.
|
void |
unplugFrom(ILcyLucyEnv aLucyEnv)
Unplugs the add-on's preferences tool.
|
createPreferencesTool, getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefix
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
public void plugInto(ILcyLucyEnv aLucyEnv)
ALcyPreferencesAddOn
plugInto
in class ALcyPreferencesAddOn
aLucyEnv
- the Lucy environment to plug intoALcyAddOn.unplugFrom(com.luciad.lucy.ILcyLucyEnv)
protected ALcyAsynchronousPaintFacade createAsynchronousPaintFacade()
ALcyAsynchronousPaintFacade
installed by this add-onALcyAsynchronousPaintFacade
public void unplugFrom(ILcyLucyEnv aLucyEnv)
ALcyPreferencesAddOn
unplugFrom
in class ALcyPreferencesAddOn
aLucyEnv
- the Lucy environmentALcyAddOn.plugInto(com.luciad.lucy.ILcyLucyEnv)