Class TLcyKML22AddOn
Lucy AddOn for KML 2.2
This AddOn can decode and visualize KML 2.2. The TLcyKML22AddOn will add
an application pane to Lucy that can display the model content tree of the KML models that have
been added to a specific view. The model content tree can manipulate the visibility of its
elements.
Time dependant data can be visualized using the TLcyKML22RealtimeAddOn.
The model content tree of KML is created with the TLcyKML22GUIFactory, a class that follows
the standard ALcyGUIFactory so it can easily be overridden for customization.
The KML 2.2 AddOn can also display balloons on its features. These balloons contain HTML
documents. This TLcyKML22AddOn will make use of Lucy services to notify any HyperlinkListener that
has been registered using ILcyLucyEnv.addService(). If the TLcyHyperlinkAddOn has been plugged into Lucy, the
TLcyKML22AddOn will use that as default behavior to load hyperlinks.
- Since:
- 10.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ALcyApplicationPaneToolCreates the application pane tool responsible for the creation of the ILcyApplicationPane containing a model content tree.protected ALcyFormatReturns a new data format for this add-on.protected TLcyFormatToolcreateFormatTool(ALcyFormat aFormat) Creates a new format tool for the given format.protected final ALcyFormatcreateFormatWrapper(ALcyFormat aBaseFormat) Returns a new data format wrapper for this add-on.protected ALcyGUIFactory<Component> Creates theALcyGUIFactoryresponsible for creating all the components of the KML model content treeReturns theALcyApplicationPaneToolcreated increateApplicationPaneTool()Returns theALcyGUIFactorycreated increateGUIFactory()voidplugInto(ILcyLucyEnv aLucyEnv) Creates and plugs in the add-on's format.voidunplugFrom(ILcyLucyEnv aLucyEnv) Unplugs the add-on's format.Methods inherited from class com.luciad.lucy.addons.ALcyFormatAddOn
getFormatMethods 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
-
TLcyKML22AddOn
public TLcyKML22AddOn()Creates a newTLcyKML22AddOn.
-
-
Method Details
-
createFormatTool
Description copied from class:ALcyFormatAddOnCreates a new format tool for the given format. It is used to plug all parts of the format ( e.g.
ILcdGXYLayerFactory,ILcdModelDecoder, etc.) intoILcyLucyEnv.- Overrides:
createFormatToolin classALcyFormatAddOn- Parameters:
aFormat- the format for which to create a tool- Returns:
- the created
TLcyFormatTool
-
plugInto
Description copied from class:ALcyFormatAddOnCreates and plugs in the add-on's format.
- Overrides:
plugIntoin classALcyFormatAddOn- Parameters:
aLucyEnv- the Lucy environment to plug into- See Also:
-
unplugFrom
Description copied from class:ALcyFormatAddOnUnplugs the add-on's format.- Overrides:
unplugFromin classALcyFormatAddOn- Parameters:
aLucyEnv- the Lucy environment- See Also:
-
createApplicationPaneTool
Creates the application pane tool responsible for the creation of the ILcyApplicationPane containing a model content tree.
- Returns:
- the application pane tool
- See Also:
-
getApplicationPaneTool
Returns theALcyApplicationPaneToolcreated increateApplicationPaneTool()- Returns:
- the
ALcyApplicationPaneToolcreated increateApplicationPaneTool()
-
createGUIFactory
Creates the
ALcyGUIFactoryresponsible for creating all the components of the KML model content tree- Returns:
- the GUI factory
-
getGUIFactory
Returns theALcyGUIFactorycreated increateGUIFactory()- Returns:
- the
ALcyGUIFactorycreated increateGUIFactory()
-
createBaseFormat
Description copied from class:ALcyFormatAddOnReturns a new data format for this add-on. Override this method to extend the default format with new functionality.
For example, to alter the icon of the layers of this format, you can decorate the layer factory created in the format:
@Override protected ALcyFormat createBaseFormat() { return new ALcyFormatWrapper(super.createBaseFormat()){ @Override protected ILcdGXYLayerFactory createGXYLayerFactory(){ final ILcdGXYLayerFactory delegate = super.createGXYLayerFactory(); return new ILcdGXYLayerFactory(){ @Override public ILcdGXYLayer createGXYLayer(ILcdModel aModel){ ILcdGXYLayer layer = delegate.createGXYLayer(aModel); if (layer != null){ ILcdIcon icon = ...; layer.setIcon(icon); } return layer; } } } } }- Specified by:
createBaseFormatin classALcyFormatAddOn- Returns:
- a new format for this add-on
-
createFormatWrapper
Description copied from class:ALcyFormatAddOnReturns a new data format wrapper for this add-on. A format wrapper extends the base format with aspects such as asynchronous painting, mutable file behavior, safe guarding, etc.
Overriding this method of an existing add-on should be done with extreme care as add-ons typically rely on the wrappers that should be present (e.g. a safe guard).
- Specified by:
createFormatWrapperin classALcyFormatAddOn- Parameters:
aBaseFormat- the base format to wrap- Returns:
- a new format for this add-on
- See Also:
-