public class ViewScalingControl extends java.lang.Object implements ScalingControl
Constructor and Description |
---|
ViewScalingControl() |
Modifier and Type | Method and Description |
---|---|
void |
scale(VisualizationViewer vv,
float amount,
java.awt.geom.Point2D from)
zoom the display in or out, depending on the direction of the
mouse wheel motion.
|
public void scale(VisualizationViewer vv, float amount, java.awt.geom.Point2D from)
scale
in interface ScalingControl
vv
- the VisualizationVieweramount
- how much to adjust scale byfrom
- where to adjust scale from