Interface ILspScaleLevelProvider

All Known Implementing Classes:
TLspRasterBasedScaleLevelProvider

public interface ILspScaleLevelProvider

This interface provides a method to retrieve scale levels for a point in the view.

This interface is used by TLspZoomController and is used to snap to the provided scale levels when using ctrl-zoom.

Since:
2012.0
See Also:
  • Method Details

    • getScaleLevels

      ILspScaleLevelProvider.ScaleLevel[] getScaleLevels(int aX, int aY, ILspView aView)

      Returns the scale levels for the given view point. The scales should be in order, from smallest to largest. The scale levels can be based on the given view coordinate, for example the ideal scales for a raster under this view position.

      Parameters:
      aX - an x view coordinate
      aY - an y view coordinate
      aView - the view
      Returns:
      the scale levels for the given view point, in toolkit pixels/world unit