Documentation of 'edu.uci.ics.jung.visualization.control.LayoutScalingControl' Java class
LayoutScalingControl
edu.uci.ics.jung.visualization.control

Class LayoutScalingControl

  • All Implemented Interfaces:
    ScalingControl


    public class LayoutScalingControl
    extends java.lang.Object
    implements 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void scale(VisualizationServer<?,?> vv, float amount, java.awt.geom.Point2D from)
      zoom the display in or out, depending on the direction of the mouse wheel motion.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LayoutScalingControl

        public LayoutScalingControl()
    • Method Detail

      • scale

        public void scale(VisualizationServer<?,?> vv,
                          float amount,
                          java.awt.geom.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

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.