net.sourceforge.jeuclid.layout
Enum LayoutStage

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

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 Summary
NONE
          No layout done yet.
STAGE1
          Context-Insensitive Layout.
STAGE2
          Full layout.
 
Method Summary
static LayoutStage valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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 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(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.