Package chemaxon.rendering.constants
Enum Class AnyBondStyle
- All Implemented Interfaces:
Serializable,Comparable<AnyBondStyle>,Constable
Holds the values for the possible rendering styles for Any bonds.
Where
MolBond.getType() == MolBond.ANY-
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 AnyBondStyleget(int dispopts) static intstatic intGet the offset used to store the settings in the dispopts integer.static AnyBondStylegetFromFlag(int flag) static AnyBondStylestatic intintset(int dispopts) static String[]styles()Return the rendering style names as string values.static AnyBondStyletoAnyBondStyle(String str) inttoFlag()inttoInt()toString()static AnyBondStyleReturns the enum constant of this class with the specified name.static AnyBondStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Automatically decide whether Dashed or Solid rendering is used. -
DASHED
Dashed line is used when rendering Any bonds. -
SOLID
Solid line is used when rendering Any bonds. (Similar to a Single bond)
-
-
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<AnyBondStyle>
-
toInt
public int toInt() -
toFlag
public int toFlag() -
set
public int set(int dispopts) -
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
-
getFromFlag
-
toAnyBondStyle
-
getValueCount
public static int getValueCount() -
getStyleFromPropertiesOf
-