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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Informs a client that the pixel positions are no longer available.void
void
windowDeselected
(eu.esa.snap.netbeans.docwin.DocumentWindowManager.Event<Object, ProductSceneView> e) void
windowSelected
(eu.esa.snap.netbeans.docwin.DocumentWindowManager.Event<Object, ProductSceneView> e) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.esa.snap.netbeans.docwin.DocumentWindowManager.Listener
windowClosed, windowOpened
-
Constructor Details
-
PixelPosStatusLineElementProvider
public PixelPosStatusLineElementProvider()
-
-
Method Details
-
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
- 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>
-