Class 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
    • Constructor Detail

      • AbsoluteCrossoverScalingControl

        public AbsoluteCrossoverScalingControl()
    • 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 interface ScalingControl
        Overrides:
        scale in class CrossoverScalingControl
        Parameters:
        vv - the VisualizationServer used for rendering; provides the layout and view transformers.
        horizontalAmount - the horizontal amount by which to scale
        verticalAmount - the vertical amount by which to scale
        at - the point of reference for scaling