Package org.evoludo.graphics
Class AbstractGraph.ZoomCommand
Object
ZoomCommand
- All Implemented Interfaces:
Scheduler.ScheduledCommand
,Command
- Enclosing class:
AbstractGraph<B>
The zoom command for the context menu.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) double
The adjustment factor of the zoom level. -
Constructor Summary
ConstructorsConstructorDescriptionZoomCommand
(double zoom) Create a new zoom command with an adjustment factor ofzoom
. -
Method Summary
-
Field Details
-
zoom
double zoomThe adjustment factor of the zoom level.
-
-
Constructor Details
-
ZoomCommand
public ZoomCommand(double zoom) Create a new zoom command with an adjustment factor ofzoom
.- Parameters:
zoom
- the zoom adjustment factor
-
-
Method Details
-
execute
public void execute()Adjusts the zoom level by the factor
zoom
,- Specified by:
execute
in interfaceCommand
- Specified by:
execute
in interfaceScheduler.ScheduledCommand
-