Enum Class LayoutStage

java.lang.Object
java.lang.Enum<LayoutStage>
net.sourceforge.jeuclid.layout.LayoutStage
All Implemented Interfaces:
Serializable, Comparable<LayoutStage>, Constable

public enum LayoutStage extends Enum<LayoutStage>
Defines in what stage the current layout it.

The Stages are NONE, STAGE1, and STAGE2.

Version:
$Revision: 686a662dbcbe $
  • Enum Constant Details

    • NONE

      public static final LayoutStage NONE
      No layout done yet.

      The LayoutInfo will not contain any useful information.

    • STAGE1

      public static final LayoutStage STAGE1
      Context-Insensitive Layout.

      A Node in this stage has been layouted based on its own information and on the information of its children. The LayoutInfo is useful to do calculations such as stretching of parentheses.

    • STAGE2

      public static final LayoutStage STAGE2
      Full layout.

      A node in this stage has been fully layouted, the LayoutInfo is current and final.

  • Method Details

    • values

      public static LayoutStage[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LayoutStage valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null