Package chemaxon.rendering.constants
Enum Class RenderingStyle
- All Implemented Interfaces:
Serializable,Comparable<RenderingStyle>,Constable
Enum representing the available molecular rendering styles.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderingStyleget(int dispopts) static intstatic intGet the offset used to store the settings in the dispopts integer.static RenderingStylegetFromFlag(int flag) booleanlessOrEquals(RenderingStyle style) booleanlt(RenderingStyle style) intset(int dispopts) static String[]styles()Return the rendering style names as string values.inttoInt()static RenderingStyletoRenderingStyle(String str) toString()static RenderingStyleReturns the enum constant of this class with the specified name.static RenderingStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WIREFRAME
Wireframe rendering style. -
STICKS
Stick rendering style. -
BALLSTICK
Stick rendering style with balls at atoms -
SPACEFILL
Spacefill rendering style.
-
-
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
-
toString
- Overrides:
toStringin classEnum<RenderingStyle>
-
toInt
public int toInt() -
set
public int set(int dispopts) -
lt
-
lessOrEquals
-
styles
Return the rendering style names as string values.- Returns:
- the values as a String[]
-
getDispOptsOffset
public static int getDispOptsOffset()Get the offset used to store the settings in the dispopts integer.- Returns:
- the offset in dispopts
-
getDispOptsMask
public static int getDispOptsMask() -
get
-
toRenderingStyle
-
getFromFlag
-