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 double
The factor for increasing/decreasing the zoom level onMouseWheelEvent
orTouchMoveEvent
s.static final double
The maximum zoom level. -
Method Summary
Methods inherited from interface AbstractGraph.Zoomer
zoom
Methods inherited from interface MouseWheelHandler
onMouseWheel
-
Field Details
-
ZOOM_INCR
static final double ZOOM_INCRThe factor for increasing/decreasing the zoom level onMouseWheelEvent
orTouchMoveEvent
s.- 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 ≤ 0
reset zoom level.- Parameters:
zoom
- the new zoom level
-