Class TLcdARINCDefaultLayerFactory

java.lang.Object
com.luciad.format.arinc.TLcdARINCDefaultLayerFactory
All Implemented Interfaces:
ILcdGXYLayerFactory

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

If a model list is supplied, a TLcdGXYLayerList or ILcdLayerTreeNode is created depending on the flag isCreateLayerTreeNodes(), otherwise an ILcdGXYLayer instance is created through the protected method createGXYLayer().

For each supplied model (list), a primary check is done on the model descriptor's type name: this should be "ARINC". 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 TLcdARINCLayerConfiguration 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 TLcdARINCLayerConfiguration and are documented in that class.

  • Field Details

  • Constructor Details

    • TLcdARINCDefaultLayerFactory

      public TLcdARINCDefaultLayerFactory(Properties aProperties)
      Create a layer factory with the supplied configuration properties.
      Parameters:
      aProperties - a properties object that configures a number of display properties of objects in the layer.
      See Also:
    • TLcdARINCDefaultLayerFactory

      public TLcdARINCDefaultLayerFactory()
      Creates a layer factory with default display properties.
      See Also:
  • Method Details

    • createGXYLayer

      public ILcdGXYLayer createGXYLayer(ILcdModel aModel)
      Creates and returns an ILcdGXYLayer for representing the given 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 ARINC 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 ARINC 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(TLcdARINCLayerConfiguration aLayerConfiguration)
      Sets the layer configuration to be used by this layer factory to configure ARINC layers and its painters and label painters. See TLcdARINCLayerConfiguration 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 ARINC objects.
      Returns:
      a new instance of TLcdGXYLayer.