Class TLcdGXYViewMeasureProvider

java.lang.Object
com.luciad.util.measure.ALcdMeasureProvider
com.luciad.view.gxy.measure.TLcdGXYViewMeasureProvider

public final class TLcdGXYViewMeasureProvider extends ALcdMeasureProvider

This class retrieves measures of the layers in a GXY view. The default behavior retrieves the topmost measures for every type of measure.

It is possible to configure this measure provider with model measure provider factories or layer measure provider factories. Both are optional, so it is possible to create a view measure provider based on model measure provider factories only, layer measure provider factories only, or both. In the latter case, the model measure provider factories are used as a fallback for the layer measure provider factories.

This class properly handles asynchronous layer wrappers. It makes sure that asynchronous layers are unwrapped safely. Delegate ILcdLayerMeasureProviderFactory don't need to handle asynchronous layer wrappers when using this class.

This class is thread safe, as long as the given ILcdModelMeasureProviderFactory instances are thread safe, and as long as they produce ALcdMeasureProvider instances that are thread safe. Note that TLcdGXYViewMeasureProvider instances should always be created on the EDT thread.

Note that LuciadLightspeed uses a more specific API for height values: TLcdViewHeightProvider.

Since:
2013.0
See Also:
  • Constructor Details

    • TLcdGXYViewMeasureProvider

      public TLcdGXYViewMeasureProvider(ILcdGXYView aView, Iterable<? extends ILcdModelMeasureProviderFactory> aMeasureProviderFactories)
      Creates a new measure provider for the given view, using the given collection of model measure provider factories.
      Parameters:
      aView - the view.
      aMeasureProviderFactories - a collection of model measure provider factories. Can be null.
    • TLcdGXYViewMeasureProvider

      public TLcdGXYViewMeasureProvider(ILcdGXYView aView, Iterable<? extends ILcdModelMeasureProviderFactory> aModelMeasureProviderFactories, Iterable<? extends ILcdLayerMeasureProviderFactory> aLayerMeasureProviderFactories)
      Creates a new measure provider for the given view, using the given collections of model and layer measure provider factories. Both are optional, and can be null. See class doc for more information.
      Parameters:
      aView - the view for which measures are retrieved.
      aModelMeasureProviderFactories - a collection of model measure provider factories. Can be null.
      aLayerMeasureProviderFactories - a collection of layer measure provider factories. Can be null.
  • Method Details