clickDetector
Class ClickBTDisplay.ZoomableInterface

java.lang.Object
  extended by clickDetector.ClickBTDisplay.ZoomableInterface
All Implemented Interfaces:
Zoomable
Enclosing class:
ClickBTDisplay

 class ClickBTDisplay.ZoomableInterface
extends java.lang.Object
implements Zoomable

setup the horizontal scroll bar


Constructor Summary
ClickBTDisplay.ZoomableInterface()
           
 
Method Summary
 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()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClickBTDisplay.ZoomableInterface

ClickBTDisplay.ZoomableInterface()
Method Detail

canStartZoomArea

public boolean canStartZoomArea(java.awt.event.MouseEvent mouseEvent)
Description copied from interface: Zoomable
Can 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:
canStartZoomArea in interface Zoomable
Returns:
true if zooming can start

getCoordinateType

public int getCoordinateType()
Specified by:
getCoordinateType in interface Zoomable
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.

getXScale

public double getXScale()
Specified by:
getXScale in interface Zoomable
Returns:
x scale in pixels per unit

getXStart

public double getXStart()
Specified by:
getXStart in interface Zoomable
Returns:
start (left most) value on the x axis scale

getXRange

public double getXRange()
Specified by:
getXRange in interface Zoomable
Returns:
range of x axis

getYScale

public double getYScale()
Specified by:
getYScale in interface Zoomable
Returns:
y scale in pixels per unit

getYStart

public double getYStart()
Specified by:
getYStart in interface Zoomable
Returns:
start (bottom most) value on the y axis scale

getYRange

public double getYRange()
Specified by:
getYRange in interface Zoomable
Returns:
the range of the y axis

zoomPolygonComplete

public void zoomPolygonComplete(ZoomShape zoomShape)
Description copied from interface: Zoomable
Called when a zoom shape has been completed.

Specified by:
zoomPolygonComplete in interface Zoomable
Parameters:
zoomShape - zoom shape that's completed.

zoomShapeChanging

public void zoomShapeChanging(ZoomShape zoomShape)
Description copied from interface: Zoomable
Called as the zoom shape changes via some sort of mouse action.

Specified by:
zoomShapeChanging in interface Zoomable
Parameters:
zoomShape - shape that's changing.

zoomToShape

public void zoomToShape(ZoomShape zoomShape)
Description copied from interface: Zoomable
Zoom to the bounds of a particular shape.

Specified by:
zoomToShape in interface Zoomable
Parameters:
zoomShape - shape to zoom to