Class SpringLayoutAlgorithm.Zest1

All Implemented Interfaces:
LayoutAlgorithm, LayoutAlgorithm.Zest1, Stoppable
Enclosing class:
SpringLayoutAlgorithm

@Deprecated(since="2.0", forRemoval=true) public static class SpringLayoutAlgorithm.Zest1 extends ContinuousLayoutAlgorithm
Deprecated, for removal: This API element is subject to removal in a future version.
Use SpringLayoutAlgorithm instead. This class will be removed in a future release.
Collection of Zest 1.x methods. Used for backwards compatibility.
Since:
2.0
@noextend
This class is not intended to be subclassed by clients.
@noreference
This class is not intended to be referenced by clients.
@noinstantiate
This class is not intended to be instantiated by clients.
  • Field Details

    • DEFAULT_SPRING_ITERATIONS

      @Deprecated public static final int DEFAULT_SPRING_ITERATIONS
      Deprecated.
      The default value for the spring layout number of interations.
      See Also:
    • MAX_SPRING_TIME

      @Deprecated public static final long MAX_SPRING_TIME
      Deprecated.
      the default value for the time algorithm runs.
      See Also:
    • DEFAULT_SPRING_RANDOM

      @Deprecated public static final boolean DEFAULT_SPRING_RANDOM
      Deprecated.
      The default value for positioning nodes randomly.
      See Also:
    • DEFAULT_SPRING_IGNORE_UNCON

      @Deprecated public static final boolean DEFAULT_SPRING_IGNORE_UNCON
      Deprecated.
      The default value for ignoring unconnected nodes.
      See Also:
    • DEFAULT_SPRING_SEPARATE_COMPONENTS

      @Deprecated public static final boolean DEFAULT_SPRING_SEPARATE_COMPONENTS
      Deprecated.
      The default value for separating connected components.
      See Also:
    • DEFAULT_SPRING_MOVE

      @Deprecated public static final double DEFAULT_SPRING_MOVE
      Deprecated.
      The default value for the spring layout move-control.
      See Also:
    • DEFAULT_SPRING_STRAIN

      @Deprecated public static final double DEFAULT_SPRING_STRAIN
      Deprecated.
      The default value for the spring layout strain-control.
      See Also:
    • DEFAULT_SPRING_LENGTH

      @Deprecated public static final double DEFAULT_SPRING_LENGTH
      Deprecated.
      The default value for the spring layout length-control.
      See Also:
    • DEFAULT_SPRING_GRAVITATION

      @Deprecated public static final double DEFAULT_SPRING_GRAVITATION
      Deprecated.
      The default value for the spring layout gravitation-control.
      See Also:
    • MIN_DISTANCE

      @Deprecated protected static final double MIN_DISTANCE
      Deprecated.
      Minimum distance considered between nodes
      See Also:
    • EPSILON

      @Deprecated protected static final double EPSILON
      Deprecated.
      An arbitrarily small value in mathematics.
      See Also:
  • Constructor Details

    • Zest1

      @Deprecated public Zest1(int styles)
      Deprecated.
      Constructor.
    • Zest1

      @Deprecated public Zest1()
      Deprecated.
      Creates a sprint layout algoirthm with no style
  • Method Details

    • setLayoutArea

      @Deprecated public void setLayoutArea(double x, double y, double width, double height)
      Deprecated.
      Overrides:
      setLayoutArea in class ContinuousLayoutAlgorithm
    • setSpringMove

      @Deprecated public void setSpringMove(double move)
      Deprecated.
      Sets the spring layout move-control.
      Parameters:
      move - The move-control value.
    • getSpringMove

      @Deprecated public double getSpringMove()
      Deprecated.
      Returns the move-control value of this SpringLayoutAlgorithm in double presion.
      Returns:
      The move-control value.
    • setSpringStrain

      @Deprecated public void setSpringStrain(double strain)
      Deprecated.
      Sets the spring layout strain-control.
      Parameters:
      strain - The strain-control value.
    • getSpringStrain

      @Deprecated public double getSpringStrain()
      Deprecated.
      Returns the strain-control value of this SpringLayoutAlgorithm in double presion.
      Returns:
      The strain-control value.
    • setSpringLength

      @Deprecated public void setSpringLength(double length)
      Deprecated.
      Sets the spring layout length-control.
      Parameters:
      length - The length-control value.
    • getSpringTimeout

      @Deprecated public long getSpringTimeout()
      Deprecated.
      Gets the max time this algorithm will run for
    • setSpringTimeout

      @Deprecated public void setSpringTimeout(long timeout)
      Deprecated.
      Sets the spring timeout
      Parameters:
      timeout -
    • getSpringLength

      @Deprecated public double getSpringLength()
      Deprecated.
      Returns the length-control value of this SpringLayoutAlgorithm in double presion.
      Returns:
      The length-control value.
    • setSpringGravitation

      @Deprecated public void setSpringGravitation(double gravitation)
      Deprecated.
      Sets the spring layout gravitation-control.
      Parameters:
      gravitation - The gravitation-control value.
    • getSpringGravitation

      @Deprecated public double getSpringGravitation()
      Deprecated.
      Returns the gravitation-control value of this SpringLayoutAlgorithm in double presion.
      Returns:
      The gravitation-control value.
    • setIterations

      @Deprecated public void setIterations(int iterations)
      Deprecated.
      Sets the number of iterations to be used.
      Parameters:
      iterations - The number of iterations.
    • getIterations

      @Deprecated public int getIterations()
      Deprecated.
      Returns the number of iterations to be used.
      Returns:
      The number of iterations.
    • setRandom

      @Deprecated public void setRandom(boolean random)
      Deprecated.
      Sets whether or not this SpringLayoutAlgorithm will layout the nodes randomly before beginning iterations.
      Parameters:
      random - The random placement value.
    • getRandom

      @Deprecated public boolean getRandom()
      Deprecated.
      Returns whether or not this SpringLayoutAlgorithm will layout the nodes randomly before beginning iterations.
    • setWeight

      @Deprecated public void setWeight(String relType, double weight)
      Deprecated.
    • getWeight

      @Deprecated public double getWeight(String relType)
      Deprecated.
    • setDefaultConditions

      @Deprecated public void setDefaultConditions()
      Deprecated.
      Sets the default conditions.
    • preLayoutAlgorithm

      @Deprecated protected void preLayoutAlgorithm(InternalNode[] entitiesToLayout, InternalRelationship[] relationshipsToConsider, double x, double y, double width, double height)
      Deprecated.
      Description copied from class: AbstractLayoutAlgorithm.Zest1
      Code called before the layout algorithm starts
      Specified by:
      preLayoutAlgorithm in class AbstractLayoutAlgorithm.Zest1
    • postLayoutAlgorithm

      @Deprecated protected void postLayoutAlgorithm(InternalNode[] entitiesToLayout, InternalRelationship[] relationshipsToConsider)
      Deprecated.
      Description copied from class: AbstractLayoutAlgorithm.Zest1
      Code called after the layout algorithm ends
      Specified by:
      postLayoutAlgorithm in class AbstractLayoutAlgorithm.Zest1
    • getLayoutBoundsTemp

      @Deprecated protected DisplayIndependentRectangle getLayoutBoundsTemp(InternalNode[] entitiesToLayout, boolean includeNodeSize)
      Deprecated.
    • convertNodePositionsBack

      @Deprecated protected void convertNodePositionsBack(int i, InternalNode entityToConvert, double px, double py, double screenWidth, double screenHeight, DisplayIndependentRectangle layoutBounds)
      Deprecated.
    • performAnotherNonContinuousIteration

      @Deprecated protected boolean performAnotherNonContinuousIteration()
      Deprecated.
      Description copied from class: ContinuousLayoutAlgorithm
      The logic to determine if a layout should continue running or not
      Specified by:
      performAnotherNonContinuousIteration in class ContinuousLayoutAlgorithm
    • getCurrentLayoutStep

      @Deprecated protected int getCurrentLayoutStep()
      Deprecated.
      Description copied from class: AbstractLayoutAlgorithm.Zest1
      Gets the current layout step
      Specified by:
      getCurrentLayoutStep in class AbstractLayoutAlgorithm.Zest1
    • getTotalNumberOfLayoutSteps

      @Deprecated protected int getTotalNumberOfLayoutSteps()
      Deprecated.
      Description copied from class: AbstractLayoutAlgorithm.Zest1
      Gets the total number of steps in this layout
      Specified by:
      getTotalNumberOfLayoutSteps in class AbstractLayoutAlgorithm.Zest1
    • computeOneIteration

      @Deprecated protected void computeOneIteration(InternalNode[] entitiesToLayout, InternalRelationship[] relationshipsToConsider, double x, double y, double width, double height)
      Deprecated.
      Description copied from class: ContinuousLayoutAlgorithm
      Computes a single iteration of the layout algorithm
      Specified by:
      computeOneIteration in class ContinuousLayoutAlgorithm
    • placeRandomly

      @Deprecated public void placeRandomly(InternalNode[] entitiesToLayout)
      Deprecated.
      Puts vertices in random places, all between (0,0) and (1,1).
    • computeForces

      @Deprecated protected void computeForces(InternalNode[] entitiesToLayout)
      Deprecated.
      Computes the force for each node in this SpringLayoutAlgorithm. The computed force will be stored in the data repository
    • computePositions

      @Deprecated protected void computePositions(InternalNode[] entitiesToLayout)
      Deprecated.
      Computes the position for each node in this SpringLayoutAlgorithm. The computed position will be stored in the data repository. position = position + sprMove * force
    • convertToUnitCoordinates

      @Deprecated protected void convertToUnitCoordinates(InternalNode[] entitiesToLayout)
      Deprecated.
      Converts the position for each node in this SpringLayoutAlgorithm to unit coordinates in double precision. The computed positions will be still stored in the data repository.
    • isValidConfiguration

      @Deprecated protected boolean isValidConfiguration(boolean asynchronous, boolean continueous)
      Deprecated.
      Description copied from class: AbstractLayoutAlgorithm.Zest1
      Determines if the configuration is valid for this layout
      Specified by:
      isValidConfiguration in class AbstractLayoutAlgorithm.Zest1
      Parameters:
      asynchronous -
      continueous -