Class AbsoluteCrossoverScalingControl
- java.lang.Object
-
- org.jungrapht.visualization.control.CrossoverScalingControl
-
- org.jungrapht.visualization.control.AbsoluteCrossoverScalingControl
-
- All Implemented Interfaces:
ScalingControl
public class AbsoluteCrossoverScalingControl extends CrossoverScalingControl implements ScalingControl
Scales to the absolute value passed as an argument. It first resets the scaling Functions, then uses the relative CrossoverScalingControl to achieve the absolute value.- Author:
- Tom Nelson
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jungrapht.visualization.control.CrossoverScalingControl
CrossoverScalingControl.Builder
-
Nested classes/interfaces inherited from interface org.jungrapht.visualization.control.ScalingControl
ScalingControl.Axis
-
-
Field Summary
-
Fields inherited from class org.jungrapht.visualization.control.CrossoverScalingControl
crossover, enableSingleAxisScaling, maxScale, minScale
-
Fields inherited from interface org.jungrapht.visualization.control.ScalingControl
CROSSOVER, ENABLE_SINGLE_AXIS_SCALING, MAX_SCALE, MIN_SCALE
-
-
Constructor Summary
Constructors Constructor Description AbsoluteCrossoverScalingControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
scale(VisualizationServer<?,?> vv, double horizontalAmount, double verticalAmount, Point2D at)
Scale to the absolute value passed as 'amount'.-
Methods inherited from class org.jungrapht.visualization.control.CrossoverScalingControl
adjustTransformers, builder, getCrossover, reset, setCrossover, setEnableSingleAxisScaling, withinScaleBounds
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jungrapht.visualization.control.ScalingControl
scale
-
-
-
-
Method Detail
-
scale
public void scale(VisualizationServer<?,?> vv, double horizontalAmount, double verticalAmount, Point2D at)
Scale to the absolute value passed as 'amount'.- Specified by:
scale
in interfaceScalingControl
- Overrides:
scale
in classCrossoverScalingControl
- Parameters:
vv
- the VisualizationServer used for rendering; provides the layout and view transformers.horizontalAmount
- the horizontal amount by which to scaleverticalAmount
- the vertical amount by which to scaleat
- the point of reference for scaling
-
-