Interface IPinPointProvider

All Known Implementing Classes:
LabelImageProvider

public interface IPinPointProvider
Interface for telling a GeoMapViewer the position of the tip of an icon, e.g. a pin, relative to the icon's topleft corner. Since the GeoMapViewer does not have a separate IPinPointProvider, your ILabelProvider should implement this interface to properly position the icon.
  • Method Summary

    Modifier and Type Method Description
    org.eclipse.swt.graphics.Point getPinPoint​(java.lang.Object element)
    Provides the relative position of the hot spot for the an image of an element, e.g. a pin on a map.
  • Method Details

    • getPinPoint

      org.eclipse.swt.graphics.Point getPinPoint​(java.lang.Object element)
      Provides the relative position of the hot spot for the an image of an element, e.g. a pin on a map.
      Parameters:
      element - the element for which to find the hot spot
      Returns:
      the relative position, or null for 0, 0