public class CursorSpectrumPixelPositionListener extends Object implements PixelPositionListener
Constructor and Description |
---|
CursorSpectrumPixelPositionListener(SpectrumTopComponent topComponent) |
Modifier and Type | Method and 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.
|
public CursorSpectrumPixelPositionListener(SpectrumTopComponent topComponent)
public void pixelPosChanged(ImageLayer imageLayer, int pixelX, int pixelY, int currentLevel, boolean pixelPosValid, MouseEvent e)
PixelPositionListener
pixelPosChanged
in interface PixelPositionListener
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
- if true
, pixel position is validpublic void pixelPosNotAvailable()
PixelPositionListener
pixelPosNotAvailable
in interface PixelPositionListener
Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.