Class ViewScalingControl
java.lang.Object
edu.uci.ics.jung.visualization.control.ViewScalingControl
- All Implemented Interfaces:
ScalingControl
ViewScalingGraphMouse applies a scaling transform to the View
of the graph. This causes all elements of the graph to grow
larger or smaller. ViewScalingGraphMouse, by default, is activated
by the MouseWheel when the control key is pressed. The control
key modifier can be overridden in the contstructor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
scale
(VisualizationServer<?, ?> vv, float amount, Point2D from) zoom the display in or out, depending on the direction of the mouse wheel motion.
-
Constructor Details
-
ViewScalingControl
public ViewScalingControl()
-
-
Method Details
-
scale
zoom the display in or out, depending on the direction of the mouse wheel motion.- Specified by:
scale
in interfaceScalingControl
- Parameters:
vv
- the VisualizationVieweramount
- how much to adjust scale byfrom
- where to adjust scale from
-