Class TLcyAIXMAddOn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ALcyFormatReturns a new data format for this add-on.protected final ALcyFormatcreateFormatWrapper(ALcyFormat aBaseFormat) Returns a new data format wrapper for this add-on.protected TLcyPreferencesToolCreates theTLcyPreferencesToolto be used by this add-on.static booleanDeprecated.This method has been deprecated.voidplugInto(ILcyLucyEnv aLucyEnv) Creates and plugs in the add-on's format.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.Methods inherited from class com.luciad.lucy.addons.ALcyFormatAddOn
createFormatTool, getFormat, unplugFromMethods inherited from class com.luciad.lucy.addons.ALcyPreferencesAddOn
getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefixMethods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Constructor Details
-
TLcyAIXMAddOn
public TLcyAIXMAddOn()Creates a newTLcyAIXMAddOn.
-
-
Method Details
-
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:
-
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:
-
isClassTraceOn
Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrueif tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
setClassTraceOn
Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istruethen all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
createPreferencesTool
Description copied from class:ALcyPreferencesAddOnCreates the
TLcyPreferencesToolto be used by this add-on. Overwriting this method for example allows to register additionalILcyPropertyConverters for (complex) custom properties, to make sure they are correctly decoded from the add-on's configuration file and/or saved to the workspace. Note that this isn't required for simple properties such asString,int,double, etc.The default implementation creates a new tool based on the
ALcyAddOn.getConfigSourceName()and the add-on's prefixes.- Overrides:
createPreferencesToolin classALcyPreferencesAddOn- Returns:
- the created
TLcyPreferencesTool.
-