Package org.esa.snap.rcp.status
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 Summary
Constructors Constructor Description PixelPosStatusLineElementProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetStatusLineElement()voidpixelPosChanged(ImageLayer imageLayer, int pixelX, int pixelY, int currentLevel, boolean pixelPosValid, MouseEvent e)Informs a client that the pixel position within the image has changed.voidpixelPosNotAvailable()Informs a client that the pixel positions are no longer available.voidpreferenceChange(PreferenceChangeEvent evt)voidwindowDeselected(eu.esa.snap.netbeans.docwin.DocumentWindowManager.Event<Object,ProductSceneView> e)voidwindowSelected(eu.esa.snap.netbeans.docwin.DocumentWindowManager.Event<Object,ProductSceneView> e)
-
-
-
Method Detail
-
getStatusLineElement
public Component getStatusLineElement()
- Specified by:
getStatusLineElementin interfaceorg.openide.awt.StatusLineElementProvider
-
pixelPosChanged
public void pixelPosChanged(ImageLayer imageLayer, int pixelX, int pixelY, int currentLevel, boolean pixelPosValid, MouseEvent e)
Description copied from interface:PixelPositionListenerInforms a client that the pixel position within the image has changed.- Specified by:
pixelPosChangedin interfacePixelPositionListener- Parameters:
imageLayer- the image layerpixelX- the x position within the image in pixel co-ordinates on the given levelpixelY- the y position within the image in pixel co-ordinates on the given levelcurrentLevel- the current level at which the image is displayedpixelPosValid- iftrue, pixel position is valid
-
pixelPosNotAvailable
public void pixelPosNotAvailable()
Description copied from interface:PixelPositionListenerInforms a client that the pixel positions are no longer available.- Specified by:
pixelPosNotAvailablein interfacePixelPositionListener
-
preferenceChange
public void preferenceChange(PreferenceChangeEvent evt)
- Specified by:
preferenceChangein interfacePreferenceChangeListener
-
windowSelected
public void windowSelected(eu.esa.snap.netbeans.docwin.DocumentWindowManager.Event<Object,ProductSceneView> e)
- Specified by:
windowSelectedin interfaceeu.esa.snap.netbeans.docwin.DocumentWindowManager.Listener<Object,ProductSceneView>
-
windowDeselected
public void windowDeselected(eu.esa.snap.netbeans.docwin.DocumentWindowManager.Event<Object,ProductSceneView> e)
- Specified by:
windowDeselectedin interfaceeu.esa.snap.netbeans.docwin.DocumentWindowManager.Listener<Object,ProductSceneView>
-
-