Package org.evoludo.graphics
Interface AbstractGraph.Zooming
- All Superinterfaces:
AbstractGraph.Zoomer,EventHandler,MouseWheelHandler
- All Known Implementing Classes:
GenericPopGraph,LineGraph,ParaGraph,PopGraph2D,PopGraph3D,S3Graph
- Enclosing class:
AbstractGraph<B>
Graphs that support zooming should implement this interface. Basic zooming
capabilities are handled by
AbstractGraph.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleThe factor for increasing/decreasing the zoom level onMouseWheelEventorTouchMoveEvents.static final doubleThe maximum zoom level. -
Method Summary
Methods inherited from interface AbstractGraph.Zoomer
zoomMethods inherited from interface MouseWheelHandler
onMouseWheel
-
Field Details
-
ZOOM_INCR
static final double ZOOM_INCRThe factor for increasing/decreasing the zoom level onMouseWheelEventorTouchMoveEvents.- See Also:
-
ZOOM_MAX
static final double ZOOM_MAXThe maximum zoom level.- See Also:
-
-
Method Details
-
zoom
void zoom()Reset zoom. -
zoom
void zoom(double zoom) Adjust zoom level by the factorzoom. Leave the center of the view in place. Ifzoom ≤ 0reset zoom level.- Parameters:
zoom- the new zoom level
-