Interface AbstractGraph.Shifter

All Known Subinterfaces:
AbstractGraph.Shifting
All Known Implementing Classes:
LineGraph, Mean, ParaGraph, PopGraph2D, S3Graph
Enclosing class:
AbstractGraph<B>

public static interface AbstractGraph.Shifter
Graphs that support shifting of their view should implement this interface. Basic shifting is provided by AbstractGraph and is automatically enabled unless AbstractGraph.controller is an instance of Shifter.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    shift(int dx, int dy)
    Shift the (zoomed) graph within the view port by (dx, dy).
  • Method Details

    • shift

      void shift(int dx, int dy)
      Shift the (zoomed) graph within the view port by (dx, dy). Positive dx shift the graph to the right and positive dy shift it upwards.
      Parameters:
      dx - the horizontal shift of the graph
      dy - the vertical shift of the graph