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 TypeMethodDescriptionvoid
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)
. Positivedx
shift the graph to the right and positivedy
shift it upwards.- Parameters:
dx
- the horizontal shift of the graphdy
- the vertical shift of the graph
-