java.lang.Object
org.xmlcml.cmlimpl.style.MoleculeStyleImpl
- All Implemented Interfaces:
- org.xmlcml.cml.style.MoleculeStyle
- public class MoleculeStyleImpl
- extends java.lang.Object
- implements org.xmlcml.cml.style.MoleculeStyle
holds all style information for a molecule
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final org.xmlcml.cml.style.MoleculeStyle DEFAULT
backgroundColor
protected java.awt.Color backgroundColor
bondStyle
protected org.xmlcml.cml.style.BondStyle bondStyle
atomStyle
protected org.xmlcml.cml.style.AtomStyle atomStyle
hideHydrogens
protected boolean hideHydrogens
MoleculeStyleImpl
public MoleculeStyleImpl()
- default: background: white; AtomStyle.DEFAULT; BondStyle.DEFAULT; show hydrogens
MoleculeStyleImpl
public MoleculeStyleImpl(java.awt.Color backgroundColor,
org.xmlcml.cml.style.AtomStyle atomStyle,
org.xmlcml.cml.style.BondStyle bondStyle,
boolean hideHydrogens)
MoleculeStyleImpl
public MoleculeStyleImpl(org.xmlcml.cml.style.MoleculeStyle moleculeStyle)
setAtomStyle
public void setAtomStyle(org.xmlcml.cml.style.AtomStyle atomStyle)
- default style; default BondStyle.DEFAULT
- Specified by:
setAtomStyle in interface org.xmlcml.cml.style.MoleculeStyle
getAtomStyle
public org.xmlcml.cml.style.AtomStyle getAtomStyle()
- Specified by:
getAtomStyle in interface org.xmlcml.cml.style.MoleculeStyle
setBondStyle
public void setBondStyle(org.xmlcml.cml.style.BondStyle bondStyle)
- default style; default BondStyle.DEFAULT
- Specified by:
setBondStyle in interface org.xmlcml.cml.style.MoleculeStyle
getBondStyle
public org.xmlcml.cml.style.BondStyle getBondStyle()
- Specified by:
getBondStyle in interface org.xmlcml.cml.style.MoleculeStyle
setBackgroundColor
public void setBackgroundColor(java.awt.Color b)
- set the background color - default white
- Specified by:
setBackgroundColor in interface org.xmlcml.cml.style.MoleculeStyle
getBackgroundColor
public java.awt.Color getBackgroundColor()
- get background color - default white
- Specified by:
getBackgroundColor in interface org.xmlcml.cml.style.MoleculeStyle
setHideHydrogens
public void setHideHydrogens(boolean hide)
- are hydrogens to be omitted from display?
- Specified by:
setHideHydrogens in interface org.xmlcml.cml.style.MoleculeStyle
getHideHydrogens
public boolean getHideHydrogens()
- are hydrogens to be omitted from display?
- Specified by:
getHideHydrogens in interface org.xmlcml.cml.style.MoleculeStyle