Class TLcyAsynchronousPaintAddOn
java.lang.Object
com.luciad.lucy.addons.ALcyAddOn
com.luciad.lucy.addons.ALcyPreferencesAddOn
com.luciad.lucy.addons.asynchronouspaint.TLcyAsynchronousPaintAddOn
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:
- you must use one of
ALcyAsynchronousPaintFacade's invocation methods if you want to access the wrapped layers - you must obtain a model write lock before making changes to models of asynchronously painted layers
(see
TLcdLockUtil)
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ALcyAsynchronousPaintFacadeFactory method responsible for the creation of theALcyAsynchronousPaintFacadeinstalled by this add-onvoidplugInto(ILcyLucyEnv aLucyEnv) Creates and plugs in the add-on's preferences tool.voidunplugFrom(ILcyLucyEnv aLucyEnv) Unplugs the add-on's preferences tool.Methods inherited from class com.luciad.lucy.addons.ALcyPreferencesAddOn
createPreferencesTool, getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefixMethods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Constructor Details
-
TLcyAsynchronousPaintAddOn
public TLcyAsynchronousPaintAddOn()
-
-
Method Details
-
plugInto
Description copied from class:ALcyPreferencesAddOnCreates and plugs in the add-on's preferences tool.- Overrides:
plugIntoin classALcyPreferencesAddOn- Parameters:
aLucyEnv- the Lucy environment to plug into- See Also:
-
createAsynchronousPaintFacade
Factory method responsible for the creation of theALcyAsynchronousPaintFacadeinstalled by this add-on- Returns:
- a new
ALcyAsynchronousPaintFacade
-
unplugFrom
Description copied from class:ALcyPreferencesAddOnUnplugs the add-on's preferences tool.- Overrides:
unplugFromin classALcyPreferencesAddOn- Parameters:
aLucyEnv- the Lucy environment- See Also:
-