Package net.sourceforge.jeuclid.layout
Enum LayoutStage
- java.lang.Object
-
- java.lang.Enum<LayoutStage>
-
- net.sourceforge.jeuclid.layout.LayoutStage
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LayoutStage>
public enum LayoutStage extends java.lang.Enum<LayoutStage>
- Version:
- $Revision: 686a662dbcbe $
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LayoutStagevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LayoutStage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final LayoutStage NONE
No layout done yet.The
LayoutInfowill 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
LayoutInfois 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
LayoutInfois current and final.
-
-
Method Detail
-
values
public static LayoutStage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LayoutStage c : LayoutStage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LayoutStage valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-