Class LayoutScalingControl
java.lang.Object
edu.uci.ics.jung.visualization.control.LayoutScalingControl
- All Implemented Interfaces:
ScalingControl
LayoutScalingControl applies a scaling transformation to the graph layout.
The Vertices get closer or farther apart, but do not themselves change
size. ScalingGraphMouse uses MouseWheelEvents to apply the scaling.
-
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
-
LayoutScalingControl
public LayoutScalingControl()
-
-
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
-