public class TLspInitialLayerIndexProvider extends java.lang.Object implements ILcdInitialLayerIndexProvider
ILcdInitialLayerIndexProviderfor 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.
|Constructor and Description|
|Modifier and Type||Method and Description|
Looks at the layer's
public int getInitialLayerIndex(ILcdLayer aLayer, ILcdLayerTreeNode aLayerNode)
typeand determines an initial index as follows:
BACKGROUNDlayers, this method starts from the bottom up and inserts the new layer just below the first layer which is not also a background layer.
INTERACTIVElayers, the method starts from the bottom up and inserts the new layer just above the first layer which is not a
EDITABLElayers, the method starts from the top down and inserts the new layer just below the first layer which is not a
REALTIMElayers are simply added at the top of the layer list.
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.