Class TLcdAIXMDefaultLayerFactory

java.lang.Object
com.luciad.format.aixm.TLcdAIXMDefaultLayerFactory
All Implemented Interfaces:
ILcdGXYLayerFactory

@LcdService(service=ILcdGXYLayerFactory.class, priority=20000) public class TLcdAIXMDefaultLayerFactory extends Object implements ILcdGXYLayerFactory
The default layer factory for AIXM models. All models created by the AIXM decoder are supported.

If a model list is supplied, a TLcdGXYLayerList or ILcdLayerTreeNode is created depending on the flag isCreateLayerTreeNodes(), otherwise a normal GXY layer is created.

For each supplied model (list), a primary check is done on the model descriptor's type name: this should be "AIXM". A second check is done on the type of model descriptor (except for the model descriptor of a model list): this should be one of the AIS defined model descriptors in com.luciad.ais.model.*.

This layer factory has support for setting colors and other display properties, through the use of a TLcdAIXMLayerConfiguration object which can be set on the factory (see setLayerConfiguration). The general layer properties can be set through the use of a Properties object (see setProperties).

Note that the constants named CFG_* are also available in the class TLcdAIXMLayerConfiguration and are documented in that class.

  • Constructor Details

  • Method Details

    • createGXYLayer

      public ILcdGXYLayer createGXYLayer(ILcdModel aModel)
      Description copied from interface: ILcdGXYLayerFactory
      Creates an ILcdGXYLayer for representing an ILcdModel on an ILcdGXYView.
      Specified by:
      createGXYLayer in interface ILcdGXYLayerFactory
      Parameters:
      aModel - a model that needs to be visualized in an ILcdGXYView
      Returns:
      a layer representing the given model, or null if such a layer cannot be created
      See Also:
    • isTraceOn

      public static boolean isTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • setTraceOn

      public static void setTraceOn(boolean aTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for this class instance. Calling this method with either true or false as argument automatically turns off tracing for all other class instances for which setTraceOn has not been called. If the argument is false then only the informative, warning and error log messages are recorded.
      Parameters:
      aTraceOn - if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
    • getProperties

      public Properties getProperties()
      Returns the Properties object used by this layer factory to configure the general properties of AIXM layers.
      Returns:
      the Properties object used by this layer factory
      See Also:
    • setProperties

      public void setProperties(Properties aProperties)
      Specifies a Properties object to be used by this layerFactory to configure the general properties of AIXM layers.
      Parameters:
      aProperties - a Properties object. Keys must be taken from the String fields named LAYER_DEFAULT_* in this class . The String values depend on the type of property, for instance for LAYER_DEFAULT_EDITABLE: a boolean value indicating if a layer is editable.
      See Also:
    • isCreateLayerTreeNodes

      public boolean isCreateLayerTreeNodes()
      Returns whether layer nodes are created for model lists. If false, the decoder creates layer lists instead. This property is by default true.
      Returns:
      true if layer nodes are created for model lists, false if instead layer lists are used.
    • setCreateLayerTreeNodes

      public void setCreateLayerTreeNodes(boolean aCreateLayerTreeNodes)
      Sets whether to create a layer node or layer list when a model list is passed.
      Parameters:
      aCreateLayerTreeNodes - if true, the factory will produce a layer node for a given model list. If false, a layer list is created.
    • setLayerConfiguration

      public void setLayerConfiguration(TLcdAIXMLayerConfiguration aLayerConfiguration)
      Sets the layer configuration to be used by this layer factory to configure AIXM layers and its painters and label painters. See TLcdAIXMLayerConfiguration for the available configuration properties.
      Parameters:
      aLayerConfiguration - the layer configuration to be used by this layer factory.
    • createGXYLayer

      protected TLcdGXYLayer createGXYLayer()
      Creates a new instance of TLcdGXYLayer, which will be used as layer for an ILcdModel containing AIXM objects.
      Returns:
      a new instance of TLcdGXYLayer.