Package org.openscience.cdk.stereo
Enum Projection
- java.lang.Object
-
- java.lang.Enum<Projection>
-
- org.openscience.cdk.stereo.Projection
-
- All Implemented Interfaces:
Serializable
,Comparable<Projection>
public enum Projection extends Enum<Projection>
Stereochemistry projection types.- Author:
- John May
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Projection
valueOf(String name)
Returns the enum constant of this type with the specified name.static Projection[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Fischer
public static final Projection Fischer
Fischer projections are used for linear chain-form carbohydrates. They are drawn vertically with all atoms at right angles around stereocenters.
-
Haworth
public static final Projection Haworth
Haworth projection are used to depict ring-form carbohydrates. The ring may be of size 5, 6, or 7 (rarer). Here the ring is flat and the substituents connected to stereocenters are drawn directly above or below the plane of the ring.
-
Chair
public static final Projection Chair
Projection of the low energy conformation (chair) of a cyclohexane. Used for carbohydrates.
-
-
Method Detail
-
values
public static Projection[] 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 (Projection c : Projection.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Projection 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 nameNullPointerException
- if the argument is null
-
-