Package com.luciad.format.arinc
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionCreates a layer factory with default display properties.TLcdARINCDefaultLayerFactory(Properties aProperties) Create a layer factory with the supplied configuration properties. -
Method Summary
Modifier and TypeMethodDescriptionprotected TLcdGXYLayerCreates a new instance ofTLcdGXYLayer, which will be used as layer for anILcdModelcontaining ARINC objects.createGXYLayer(ILcdModel aModel) Creates and returns anILcdGXYLayerfor representing the givenILcdModelon anILcdGXYView.Returns thePropertiesobject used by this layer factory to configure the general properties of ARINC layers.booleanReturns whether layer nodes are created for model lists.static booleanDeprecated.This method has been deprecated.voidsetCreateLayerTreeNodes(boolean aCreateLayerTreeNodes) Sets whether to create alayer nodeorlayer listwhen a model list is passed.voidsetLayerConfiguration(TLcdARINCLayerConfiguration aLayerConfiguration) Sets the layer configuration to be used by this layer factory to configure ARINC layers and its painters and label painters.voidsetProperties(Properties aProperties) Specifies aPropertiesobject to be used by this layerFactory to configure the general properties of ARINC layers.static voidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.
-
Field Details
-
CFG_AIRPORT_ICONSTYLE_COLOR
- See Also:
-
CFG_AIRPORT_ICONSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_AIRPORT_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_AIRPORT_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_AIRPORT_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_AIRPORT_LABELSTYLE_FRAMED
- See Also:
-
CFG_AIRPORT_LABELSTYLE_WITHPIN
- See Also:
-
CFG_AIRPORT_LABELSTYLE_WITHANCHOR
- See Also:
-
CFG_AIRPORT_LABELSTYLE_SHIFTLABELPOSITION
- See Also:
-
CFG_AIRSPACE_ICONSTYLE_COLOR
- See Also:
-
CFG_AIRSPACE_ICONSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_COLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_SELECTIONCOLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_LINEWIDTH
- See Also:
-
CFG_AIRSPACE_LINESTYLE_SELECTIONLINEWIDTH
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSA_COLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSA_SELECTIONCOLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSA_BANDWIDTH
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSB_COLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSB_SELECTIONCOLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSB_BANDWIDTH
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSC_COLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSC_SELECTIONCOLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSC_BANDWIDTH
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSD_COLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSD_SELECTIONCOLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSD_BANDWIDTH
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSE_COLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSE_SELECTIONCOLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSE_BANDWIDTH
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSF_COLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSF_SELECTIONCOLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSF_BANDWIDTH
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSG_COLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSG_SELECTIONCOLOR
- See Also:
-
CFG_AIRSPACE_LINESTYLE_CLASSG_BANDWIDTH
- See Also:
-
CFG_AIRSPACE_FILLSTYLE_COLOR
- See Also:
-
CFG_AIRSPACE_FILLSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_AIRSPACE_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_AIRSPACE_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_AIRSPACE_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_RUNWAY_LINESTYLE_COLOR
- See Also:
-
CFG_RUNWAY_LINESTYLE_SELECTIONCOLOR
- See Also:
-
CFG_RUNWAY_LINESTYLE_LINEWIDTH
- See Also:
-
CFG_RUNWAY_LINESTYLE_SELECTIONLINEWIDTH
- See Also:
-
CFG_RUNWAY_FILLSTYLE_COLOR
- See Also:
-
CFG_RUNWAY_FILLSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_RUNWAY_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_RUNWAY_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_RUNWAY_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_RUNWAY_LABELSTYLE_WITHPIN
- See Also:
-
CFG_RUNWAY_LABELSTYLE_WITHANCHOR
- See Also:
-
CFG_RUNWAY_LABELSTYLE_SHIFTLABELPOSITION
- See Also:
-
CFG_RUNWAY_LABELSTYLE_FRAMED
- See Also:
-
CFG_HELIPORT_ICONSTYLE_COLOR
- See Also:
-
CFG_HELIPORT_ICONSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_HELIPORT_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_HELIPORT_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_HELIPORT_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_HELIPORT_LABELSTYLE_WITHPIN
- See Also:
-
CFG_HELIPORT_LABELSTYLE_WITHANCHOR
- See Also:
-
CFG_HELIPORT_LABELSTYLE_SHIFTLABELPOSITION
- See Also:
-
CFG_HELIPORT_LABELSTYLE_FRAMED
- See Also:
-
CFG_WAYPOINT_ICONSTYLE_COLOR
- See Also:
-
CFG_WAYPOINT_ICONSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_WAYPOINT_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_WAYPOINT_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_WAYPOINT_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_WAYPOINT_LABELSTYLE_WITHPIN
- See Also:
-
CFG_WAYPOINT_LABELSTYLE_WITHANCHOR
- See Also:
-
CFG_WAYPOINT_LABELSTYLE_SHIFTLABELPOSITION
- See Also:
-
CFG_WAYPOINT_LABELSTYLE_FRAMED
- See Also:
-
CFG_ATS_ROUTE_LINESTYLE_COLOR
- See Also:
-
CFG_ATS_ROUTE_LINESTYLE_SELECTIONCOLOR
- See Also:
-
CFG_ATS_ROUTE_LINESTYLE_LINEWIDTH
- See Also:
-
CFG_ATS_ROUTE_LINESTYLE_SELECTIONLINEWIDTH
- See Also:
-
CFG_ATS_ROUTE_ICONSTYLE_COLOR
- See Also:
-
CFG_ATS_ROUTE_ICONSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_ATS_ROUTE_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_ATS_ROUTE_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_ATS_ROUTE_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_ATS_ROUTE_LABELSTYLE_WITHPIN
- See Also:
-
CFG_ATS_ROUTE_LABELSTYLE_WITHANCHOR
- See Also:
-
CFG_ATS_ROUTE_LABELSTYLE_SHIFTLABELPOSITION
- See Also:
-
CFG_ATS_ROUTE_LABELSTYLE_FRAMED
- See Also:
-
CFG_HOLDING_ICONSTYLE_COLOR
- See Also:
-
CFG_HOLDING_ICONSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_HOLDING_NORMAL_LINESTYLE_COLOR
- See Also:
-
CFG_HOLDING_NORMAL_LINESTYLE_SELECTIONCOLOR
- See Also:
-
CFG_HOLDING_DECORATION_LINESTYLE_COLOR
- See Also:
-
CFG_HOLDING_DECORATION_LINESTYLE_SELECTIONCOLOR
- See Also:
-
CFG_HOLDING_ERROR_LINESTYLE_COLOR
- See Also:
-
CFG_HOLDING_ERROR_LINESTYLE_SELECTIONCOLOR
- See Also:
-
CFG_HOLDING_MISSED_APPROACH_LINESTYLE_COLOR
- See Also:
-
CFG_HOLDING_MISSED_APPROACH_LINESTYLE_SELECTIONCOLOR
- See Also:
-
CFG_HOLDING_CONNECTION_LINESTYLE_COLOR
- See Also:
-
CFG_HOLDING_CONNECTION_LINESTYLE_SELECTIONCOLOR
- See Also:
-
CFG_HOLDING_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_HOLDING_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_HOLDING_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_HOLDING_LABELSTYLE_WITHPIN
- See Also:
-
CFG_HOLDING_LABELSTYLE_WITHANCHOR
- See Also:
-
CFG_HOLDING_LABELSTYLE_SHIFTLABELPOSITION
- See Also:
-
CFG_HOLDING_LABELSTYLE_FRAMED
- See Also:
-
CFG_PROCEDURES_PAINTMODE
- See Also:
-
CFG_PROCEDURES_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_PROCEDURES_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_ILS_ICONSTYLE_COLOR
- See Also:
-
CFG_ILS_ICONSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_ILS_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_ILS_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_ILS_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_ILS_LABELSTYLE_WITHPIN
- See Also:
-
CFG_ILS_LABELSTYLE_WITHANCHOR
- See Also:
-
CFG_ILS_LABELSTYLE_SHIFTLABELPOSITION
- See Also:
-
CFG_ILS_LABELSTYLE_FRAMED
- See Also:
-
CFG_VOR_ICONSTYLE_COLOR
- See Also:
-
CFG_VOR_ICONSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_VOR_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_VOR_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_VOR_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_VOR_LABELSTYLE_WITHPIN
- See Also:
-
CFG_VOR_LABELSTYLE_WITHANCHOR
- See Also:
-
CFG_VOR_LABELSTYLE_SHIFTLABELPOSITION
- See Also:
-
CFG_VOR_LABELSTYLE_FRAMED
- See Also:
-
CFG_TACAN_ICONSTYLE_COLOR
- See Also:
-
CFG_TACAN_ICONSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_TACAN_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_TACAN_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_TACAN_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_TACAN_LABELSTYLE_WITHPIN
- See Also:
-
CFG_TACAN_LABELSTYLE_WITHANCHOR
- See Also:
-
CFG_TACAN_LABELSTYLE_SHIFTLABELPOSITION
- See Also:
-
CFG_TACAN_LABELSTYLE_FRAMED
- See Also:
-
CFG_NDB_ICONSTYLE_COLOR
- See Also:
-
CFG_NDB_ICONSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_NDB_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_NDB_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_NDB_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_NDB_LABELSTYLE_WITHPIN
- See Also:
-
CFG_NDB_LABELSTYLE_WITHANCHOR
- See Also:
-
CFG_NDB_LABELSTYLE_SHIFTLABELPOSITION
- See Also:
-
CFG_NDB_LABELSTYLE_FRAMED
- See Also:
-
CFG_DME_ICONSTYLE_COLOR
- See Also:
-
CFG_DME_ICONSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_DME_LABELSTYLE_FONTSTYLE_COLOR
- See Also:
-
CFG_DME_LABELSTYLE_FONTSTYLE_SELECTIONCOLOR
- See Also:
-
CFG_DME_LABELSTYLE_FILLCOLOR
- See Also:
-
CFG_DME_LABELSTYLE_WITHPIN
- See Also:
-
CFG_DME_LABELSTYLE_WITHANCHOR
- See Also:
-
CFG_DME_LABELSTYLE_SHIFTLABELPOSITION
- See Also:
-
CFG_DME_LABELSTYLE_FRAMED
- See Also:
-
-
Constructor Details
-
TLcdARINCDefaultLayerFactory
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
Creates and returns anILcdGXYLayerfor representing the givenILcdModelon anILcdGXYView.- Specified by:
createGXYLayerin interfaceILcdGXYLayerFactory- Parameters:
aModel- a model that needs to be visualized in anILcdGXYView- Returns:
- a layer representing the given model, or
nullif 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.Returnstrueif 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 eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen 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
Returns thePropertiesobject used by this layer factory to configure the general properties of ARINC layers.- Returns:
- the
Propertiesobject used by this layer factory. - See Also:
-
setProperties
Specifies aPropertiesobject to be used by this layerFactory to configure the general properties of ARINC layers.- Parameters:
aProperties- aPropertiesobject. 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 defaulttrue.- 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 alayer nodeorlayer listwhen 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
Sets the layer configuration to be used by this layer factory to configure ARINC layers and its painters and label painters. SeeTLcdARINCLayerConfigurationfor the available configuration properties.- Parameters:
aLayerConfiguration- The layer configuration to be used by this layer factory.
-
createGXYLayer
Creates a new instance ofTLcdGXYLayer, which will be used as layer for anILcdModelcontaining ARINC objects.- Returns:
- a new instance of
TLcdGXYLayer.
-