Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.uci.ics.jung.visualization.control
Class ViewScalingControl

    java.lang.Object
      edu.uci.ics.jung.visualization.control.ViewScalingControl

All Implemented Interfaces:
  ScalingControl

public class ViewScalingControl
extends Object
implements 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.

Author:
  Tom Nelson

Constructor Summary
`ViewScalingControl()`

Method Summary
`void` | `scale(VisualizationViewer vv, float amount, Point2D from)` zoom the display in or out, depending on the direction of the mouse wheel motion.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ViewScalingControl

    public ViewScalingControl()

Method Detail

### scale

    public void scale(VisualizationViewer vv,
                      float amount,
                      Point2D from)

  zoom the display in or out, depending on the direction of the mouse wheel motion.

  Specified by:
    `scale` in interface `ScalingControl`
  Parameters:
    `vv` - the VisualizationViewer
    `amount` - how much to adjust scale by
    `from` - where to adjust scale from

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD