Class TLspInitialLayerIndexProvider

java.lang.Object
com.luciad.view.lightspeed.layer.TLspInitialLayerIndexProvider
All Implemented Interfaces:
ILcdInitialLayerIndexProvider

public class TLspInitialLayerIndexProvider extends Object implements ILcdInitialLayerIndexProvider
Default implementation of ILcdInitialLayerIndexProvider for Lightspeed views. This implementation sorts layers based on their layer type: background layers are moved to the bottom and realtime layers are moved to the top.
Since:
2012.0
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    int
    Looks at the layer's type and determines an initial index as follows: For BACKGROUND layers, this method starts from the bottom up and inserts the new layer just below the first layer which is not also a background layer. For INTERACTIVE layers, the method starts from the bottom up and inserts the new layer just above the first layer which is not a BACKGROUND or INTERACTIVE layer. For EDITABLE layers, the method starts from the top down and inserts the new layer just below the first layer which is not a REALTIME layer. REALTIME layers are simply added at the top of the layer list.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • TLspInitialLayerIndexProvider Link icon

      public TLspInitialLayerIndexProvider()
  • Method Details Link icon

    • getInitialLayerIndex Link icon

      public int getInitialLayerIndex(ILcdLayer aLayer, ILcdLayerTreeNode aLayerNode)
      Looks at the layer's type and determines an initial index as follows:
      • For BACKGROUND layers, this method starts from the bottom up and inserts the new layer just below the first layer which is not also a background layer.
      • For INTERACTIVE layers, the method starts from the bottom up and inserts the new layer just above the first layer which is not a BACKGROUND or INTERACTIVE layer.
      • For EDITABLE layers, the method starts from the top down and inserts the new layer just below the first layer which is not a REALTIME layer.
      • REALTIME layers are simply added at the top of the layer list.
      Specified by:
      getInitialLayerIndex in interface ILcdInitialLayerIndexProvider
      Parameters:
      aLayer - The layer for which to determine a good initial index.
      aLayerNode - The layer node in which the layer is about to be inserted. This could be the root node of a view, or any of its sub-nodes.
      Returns:
      the index at which the given layer should be inserted into the layer list