Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.xmlcml.cmlimpl.style
Class MoleculeStyleImpl  view MoleculeStyleImpl download MoleculeStyleImpl.java

java.lang.Object
  extended byorg.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


Field Summary
protected  org.xmlcml.cml.style.AtomStyle atomStyle
           
protected  java.awt.Color backgroundColor
           
protected  org.xmlcml.cml.style.BondStyle bondStyle
           
static org.xmlcml.cml.style.MoleculeStyle DEFAULT
           
protected  boolean hideHydrogens
           
 
Constructor Summary
MoleculeStyleImpl()
          default: background: white; AtomStyle.DEFAULT; BondStyle.DEFAULT; show hydrogens
MoleculeStyleImpl(java.awt.Color backgroundColor, org.xmlcml.cml.style.AtomStyle atomStyle, org.xmlcml.cml.style.BondStyle bondStyle, boolean hideHydrogens)
           
MoleculeStyleImpl(org.xmlcml.cml.style.MoleculeStyle moleculeStyle)
           
 
Method Summary
 org.xmlcml.cml.style.AtomStyle getAtomStyle()
           
 java.awt.Color getBackgroundColor()
          get background color - default white
 org.xmlcml.cml.style.BondStyle getBondStyle()
           
 boolean getHideHydrogens()
          are hydrogens to be omitted from display?
 void setAtomStyle(org.xmlcml.cml.style.AtomStyle atomStyle)
          default style; default BondStyle.DEFAULT
 void setBackgroundColor(java.awt.Color b)
          set the background color - default white
 void setBondStyle(org.xmlcml.cml.style.BondStyle bondStyle)
          default style; default BondStyle.DEFAULT
 void setHideHydrogens(boolean hide)
          are hydrogens to be omitted from display?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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