Constructor and Description |
---|
SpectrogramZoomer(SpectrogramDisplay spectrogramDisplay,
Spectrogram.SpectrogramDisplay.SpectrogramPanel spectroPanel) |
Modifier and Type | Method and Description |
---|---|
boolean |
canClearZoomShape(java.awt.event.MouseEvent mouseEvent) |
boolean |
canStartZoomArea(java.awt.event.MouseEvent mouseEvent)
Can a zoom area be started ?
|
int |
getCoordinateType() |
double |
getXRange() |
double |
getXScale() |
double |
getXStart() |
double |
getYRange() |
double |
getYScale() |
double |
getYStart() |
boolean |
isComplete() |
void |
setComplete(boolean complete) |
void |
zoomPolygonComplete(ZoomShape zoomShape)
Called when a zoom shape has been completed.
|
void |
zoomShapeChanging(ZoomShape zoomShape)
Called as the zoom shape changes via some sort of
mouse action.
|
void |
zoomToShape(ZoomShape zoomShape)
Zoom to the bounds of a particular shape.
|
public SpectrogramZoomer(SpectrogramDisplay spectrogramDisplay, Spectrogram.SpectrogramDisplay.SpectrogramPanel spectroPanel)
public boolean canStartZoomArea(java.awt.event.MouseEvent mouseEvent)
Zoomable
This is called from the zoomer when a zoom area is about to start to check that there are not reasons for not starting the area. For instance if some other mouse event is to take priority over the zoom, e.g. clicking on a detection which might initiate some other menu action.
canStartZoomArea
in interface Zoomable
public void zoomShapeChanging(ZoomShape zoomShape)
Zoomable
zoomShapeChanging
in interface Zoomable
zoomShape
- shape that's changing.public boolean isComplete()
public void setComplete(boolean complete)
public void zoomPolygonComplete(ZoomShape zoomShape)
Zoomable
zoomPolygonComplete
in interface Zoomable
zoomShape
- zoom shape that's completed.public double getXStart()
public double getXScale()
public double getXRange()
public double getYStart()
public double getYScale()
public double getYRange()
public int getCoordinateType()
getCoordinateType
in interface Zoomable
public void zoomToShape(ZoomShape zoomShape)
Zoomable
zoomToShape
in interface Zoomable
zoomShape
- shape to zoom topublic boolean canClearZoomShape(java.awt.event.MouseEvent mouseEvent)
canClearZoomShape
in interface Zoomable