Package org.evoludo.graphics
Interface AbstractGraph.Zoomer
- All Known Subinterfaces:
AbstractGraph.Zooming
- All Known Implementing Classes:
GenericPopGraph,LineGraph,Mean,ParaGraph,PopGraph2D,PopGraph3D,S3Graph
- Enclosing class:
AbstractGraph<B>
public static interface AbstractGraph.Zoomer
Graphs that support zooming should implement this interface. Basic zooming is
provided by
AbstractGraph and is automatically enabled unless
AbstractGraph.controller is an instance of Zoomer.-
Method Summary
Modifier and TypeMethodDescriptionvoidzoom(double zoom, int x, int y) Adjust zoom level by the factorzoomwith the center at coordinates(x,y)(in display coordinates as provided by event listeners).
-
Method Details
-
zoom
void zoom(double zoom, int x, int y) Adjust zoom level by the factorzoomwith the center at coordinates(x,y)(in display coordinates as provided by event listeners).- Parameters:
zoom- the new zoom levelx- thex-coordinate of the zoom centery- they-coordinate of the zoom center- See Also:
-