Package org.evoludo.graphics
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 TypeMethodDescriptionvoidshift(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). Positivedxshift the graph to the right and positivedyshift it upwards.- Parameters:
dx- the horizontal shift of the graphdy- the vertical shift of the graph
-