public class TDGraphZoomer extends AbstractTDZoomable
Constructor and Description |
---|
TDGraphZoomer(TDGraph tdGraph,
int iPanel,
PlotZoomerAdapter zoomerAdapter) |
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 TDGraphZoomer(TDGraph tdGraph, int iPanel, PlotZoomerAdapter zoomerAdapter)
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.
public void zoomShapeChanging(ZoomShape zoomShape)
Zoomable
zoomShape
- shape that's changing.public boolean isComplete()
isComplete
in class AbstractTDZoomable
public void setComplete(boolean complete)
public void zoomPolygonComplete(ZoomShape zoomShape)
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()
public void zoomToShape(ZoomShape zoomShape)
Zoomable
zoomShape
- shape to zoom topublic boolean canClearZoomShape(java.awt.event.MouseEvent mouseEvent)