Class PixelPosStatusLineElementProvider

java.lang.Object
org.esa.snap.rcp.status.PixelPosStatusLineElementProvider
All Implemented Interfaces:
eu.esa.snap.netbeans.docwin.DocumentWindowManager.Listener<Object,ProductSceneView>, EventListener, PreferenceChangeListener, PixelPositionListener, org.openide.awt.StatusLineElementProvider

public class PixelPosStatusLineElementProvider extends Object implements org.openide.awt.StatusLineElementProvider, eu.esa.snap.netbeans.docwin.DocumentWindowManager.Listener<Object,ProductSceneView>, PixelPositionListener, PreferenceChangeListener
Displays current pixel position in the status bar.
  • Constructor Details

    • PixelPosStatusLineElementProvider

      public PixelPosStatusLineElementProvider()
  • Method Details

    • getStatusLineElement

      public Component getStatusLineElement()
      Specified by:
      getStatusLineElement in interface org.openide.awt.StatusLineElementProvider
    • pixelPosChanged

      public void pixelPosChanged(ImageLayer imageLayer, int pixelX, int pixelY, int currentLevel, boolean pixelPosValid, MouseEvent e)
      Description copied from interface: PixelPositionListener
      Informs a client that the pixel position within the image has changed.
      Specified by:
      pixelPosChanged in interface PixelPositionListener
      Parameters:
      imageLayer - the image layer
      pixelX - the x position within the image in pixel co-ordinates on the given level
      pixelY - the y position within the image in pixel co-ordinates on the given level
      currentLevel - the current level at which the image is displayed
      pixelPosValid - if true, pixel position is valid
    • pixelPosNotAvailable

      public void pixelPosNotAvailable()
      Description copied from interface: PixelPositionListener
      Informs a client that the pixel positions are no longer available.
      Specified by:
      pixelPosNotAvailable in interface PixelPositionListener
    • preferenceChange

      public void preferenceChange(PreferenceChangeEvent evt)
      Specified by:
      preferenceChange in interface PreferenceChangeListener
    • windowSelected

      public void windowSelected(eu.esa.snap.netbeans.docwin.DocumentWindowManager.Event<Object,ProductSceneView> e)
      Specified by:
      windowSelected in interface eu.esa.snap.netbeans.docwin.DocumentWindowManager.Listener<Object,ProductSceneView>
    • windowDeselected

      public void windowDeselected(eu.esa.snap.netbeans.docwin.DocumentWindowManager.Event<Object,ProductSceneView> e)
      Specified by:
      windowDeselected in interface eu.esa.snap.netbeans.docwin.DocumentWindowManager.Listener<Object,ProductSceneView>