Class TDGraphZoomer

All Implemented Interfaces:
Zoomable

public class TDGraphZoomer extends AbstractTDZoomable
A basic zoomer class for the tdgraph.
Author:
Jamie Macaulay
  • Constructor Details Link icon

  • Method Details Link icon

    • canStartZoomArea Link icon

      public boolean canStartZoomArea(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.

      Returns:
      true if zooming can start
    • zoomShapeChanging Link icon

      public void zoomShapeChanging(ZoomShape zoomShape)
      Description copied from interface: Zoomable
      Called as the zoom shape changes via some sort of mouse action.
      Parameters:
      zoomShape - shape that's changing.
    • isComplete Link icon

      public boolean isComplete()
      Specified by:
      isComplete in class AbstractTDZoomable
    • setComplete Link icon

      public void setComplete(boolean complete)
    • zoomPolygonComplete Link icon

      public void zoomPolygonComplete(ZoomShape zoomShape)
      Description copied from interface: Zoomable
      Called when a zoom shape has been completed.
      Parameters:
      zoomShape - zoom shape that's completed.
    • getXStart Link icon

      public double getXStart()
      Returns:
      start (left most) value on the x axis scale
    • getXScale Link icon

      public double getXScale()
      Returns:
      x scale in pixels per unit
    • getXRange Link icon

      public double getXRange()
      Returns:
      range of x axis
    • getYStart Link icon

      public double getYStart()
      Returns:
      start (bottom most) value on the y axis scale
    • getYScale Link icon

      public double getYScale()
      Returns:
      y scale in pixels per unit
    • getYRange Link icon

      public double getYRange()
      Returns:
      the range of the y axis
    • getCoordinateType Link icon

      public int getCoordinateType()
      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 Link icon

      public void zoomToShape(ZoomShape zoomShape)
      Description copied from interface: Zoomable
      Zoom to the bounds of a particular shape.
      Parameters:
      zoomShape - shape to zoom to
    • canClearZoomShape Link icon

      public boolean canClearZoomShape(MouseEvent mouseEvent)
      Returns: