Class AbsoluteCrossoverScalingControl
java.lang.Object
edu.uci.ics.jung.visualization.control.CrossoverScalingControl
edu.uci.ics.jung.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.
-
Field Summary
Fields inherited from class edu.uci.ics.jung.visualization.control.CrossoverScalingControl
crossover
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
scale
(VisualizationServer<?, ?> vv, float amount, Point2D at) Scale to the absolute value passed as 'amount'.Methods inherited from class edu.uci.ics.jung.visualization.control.CrossoverScalingControl
getCrossover, setCrossover
-
Constructor Details
-
AbsoluteCrossoverScalingControl
public AbsoluteCrossoverScalingControl()
-
-
Method Details
-
scale
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.amount
- the amount by which to scaleat
- the point of reference for scaling
-