Package org.esa.snap.rcp.spectrum
Class CursorSpectrumPixelPositionListener
- java.lang.Object
-
- org.esa.snap.rcp.spectrum.CursorSpectrumPixelPositionListener
-
- All Implemented Interfaces:
PixelPositionListener
public class CursorSpectrumPixelPositionListener extends Object implements PixelPositionListener
-
-
Constructor Summary
Constructors Constructor Description CursorSpectrumPixelPositionListener(SpectrumTopComponent topComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
CursorSpectrumPixelPositionListener
public CursorSpectrumPixelPositionListener(SpectrumTopComponent topComponent)
-
-
Method Detail
-
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
-
-