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

Class CrossoverScalingControl

  • All Implemented Interfaces:
    ScalingControl
    Direct Known Subclasses:
    AbsoluteCrossoverScalingControl


    public class CrossoverScalingControl
    extends java.lang.Object
    implements ScalingControl
    A scaling control that has a crossover point. When the overall scale of the view and model is less than the crossover point, the scaling is applied to the view's transform and the graph nodes, labels, etc grow smaller. This preserves the overall shape of the graph. When the scale is larger than the crossover, the scaling is applied to the graph layout. The graph spreads out, but the vertices and labels grow no larger than their original size.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double getCrossover() 
      void scale(VisualizationServer<?,?> vv, float amount, java.awt.geom.Point2D at)
      zoom the display in or out
      void setCrossover(double crossover)
      Sets the crossover point to the specified value.
      • Methods inherited from class java.lang.Object

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

      • CrossoverScalingControl

        public CrossoverScalingControl()
    • Method Detail

      • setCrossover

        public void setCrossover(double crossover)
        Sets the crossover point to the specified value.
        Parameters:
        crossover - the crossover point to use (defaults to 1.0)
      • getCrossover

        public double getCrossover()
        Returns:
        the current crossover value
      • scale

        public void scale(VisualizationServer<?,?> vv,
                          float amount,
                          java.awt.geom.Point2D at)
        Description copied from interface: ScalingControl
        zoom the display in or out
        Specified by:
        scale in interface ScalingControl
        Parameters:
        vv - the VisualizationViewer
        amount - how much to adjust scale by
        at - where to adjust scale from

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.