Package org.openscience.cdk.depict
Enum Class Abbreviations.Option
- All Implemented Interfaces:
Serializable,Comparable<Abbreviations.Option>,Constable
- Enclosing class:
- Abbreviations
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow a structured to be collapsed to a single label.Automatically contract on hetero atoms, e.g.On auto-contract to linker, e.g.Automatically contract on terminal carbon atoms, e.g. allow -CHEt2. -
Method Summary
Modifier and TypeMethodDescriptionstatic Abbreviations.OptionReturns the enum constant of this class with the specified name.static Abbreviations.Option[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALLOW_SINGLETON
Allow a structured to be collapsed to a single label. -
AUTO_CONTRACT_HETERO
Automatically contract on hetero atoms, e.g. -NMe3 -
AUTO_CONTRACT_TERMINAL
Automatically contract on terminal carbon atoms, e.g. allow -CHEt2. This normally isn't sensible since it will make items like -CH2NH2 or -CH=NH which isn't really better than just drawing it out. -
AUTO_CONTRACT_LINKERS
On auto-contract to linker, e.g. -S(=O)(=O)- => -S(O2)-
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-