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 Component
getStatusLineElement()
void
pixelPosChanged(ImageLayer imageLayer, int pixelX, int pixelY, int currentLevel, boolean pixelPosValid, MouseEvent e)
Informs a client that the pixel position within the image has changed.void
pixelPosNotAvailable()
Informs a client that the pixel positions are no longer available.void
preferenceChange(PreferenceChangeEvent evt)
void
windowDeselected(eu.esa.snap.netbeans.docwin.DocumentWindowManager.Event<Object,ProductSceneView> e)
void
windowSelected(eu.esa.snap.netbeans.docwin.DocumentWindowManager.Event<Object,ProductSceneView> e)
-
-
-
Method Detail
-
getStatusLineElement
public Component getStatusLineElement()
- Specified by:
getStatusLineElement
in interfaceorg.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 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:PixelPositionListener
Informs a client that the pixel positions are no longer available.- Specified by:
pixelPosNotAvailable
in interfacePixelPositionListener
-
preferenceChange
public void preferenceChange(PreferenceChangeEvent evt)
- Specified by:
preferenceChange
in interfacePreferenceChangeListener
-
windowSelected
public void windowSelected(eu.esa.snap.netbeans.docwin.DocumentWindowManager.Event<Object,ProductSceneView> e)
- Specified by:
windowSelected
in 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:
windowDeselected
in interfaceeu.esa.snap.netbeans.docwin.DocumentWindowManager.Listener<Object,ProductSceneView>
-
-