Package Spectrogram
Class SpectrogramZoomer
java.lang.Object
Spectrogram.SpectrogramZoomer
- All Implemented Interfaces:
 Zoomable
The Spectrogram Zoomer acts as the class which handles all zoomer functionality. The zoomer is assocaited with a particular spectrogramPanel.
- Author:
 - Jamie Macaulay
 
- 
Constructor Summary
ConstructorsConstructorDescriptionSpectrogramZoomer(SpectrogramDisplay spectrogramDisplay, Spectrogram.SpectrogramDisplay.SpectrogramPanel spectroPanel)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanClearZoomShape(MouseEvent mouseEvent) booleancanStartZoomArea(MouseEvent mouseEvent) Can a zoom area be started ?intdoubledoubledoubledoubledoubledoublebooleanvoidsetComplete(boolean complete) voidzoomPolygonComplete(ZoomShape zoomShape) Called when a zoom shape has been completed.voidzoomShapeChanging(ZoomShape zoomShape) Called as the zoom shape changes via some sort of mouse action.voidzoomToShape(ZoomShape zoomShape) Zoom to the bounds of a particular shape. 
- 
Constructor Details
- 
SpectrogramZoomer
public SpectrogramZoomer(SpectrogramDisplay spectrogramDisplay, Spectrogram.SpectrogramDisplay.SpectrogramPanel spectroPanel)  
 - 
 - 
Method Details
- 
canStartZoomArea
Description copied from interface:ZoomableCan a zoom area be started ?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.
- Specified by:
 canStartZoomAreain interfaceZoomable- Parameters:
 mouseEvent-- Returns:
 - true if zooming can start
 
 - 
zoomShapeChanging
Description copied from interface:ZoomableCalled as the zoom shape changes via some sort of mouse action.- Specified by:
 zoomShapeChangingin interfaceZoomable- Parameters:
 zoomShape- shape that's changing.
 - 
isComplete
public boolean isComplete() - 
setComplete
public void setComplete(boolean complete)  - 
zoomPolygonComplete
Description copied from interface:ZoomableCalled when a zoom shape has been completed.- Specified by:
 zoomPolygonCompletein interfaceZoomable- Parameters:
 zoomShape- zoom shape that's completed.
 - 
getXStart
public double getXStart() - 
getXScale
public double getXScale() - 
getXRange
public double getXRange() - 
getYStart
public double getYStart() - 
getYScale
public double getYScale() - 
getYRange
public double getYRange() - 
getCoordinateType
public int getCoordinateType()- Specified by:
 getCoordinateTypein interfaceZoomable- Returns:
 - the coordinate type - can be pretty much anything so long as it is unique for different types of coordinate for that display, e.g. the Click bearing time display so that zooming can only take place in that coordinate system.
 
 - 
zoomToShape
Description copied from interface:ZoomableZoom to the bounds of a particular shape.- Specified by:
 zoomToShapein interfaceZoomable- Parameters:
 zoomShape- shape to zoom to
 - 
canClearZoomShape
- Specified by:
 canClearZoomShapein interfaceZoomable- Parameters:
 mouseEvent-- Returns:
 
 
 -