Package org.openscience.cdk
Class FragmentAtom
- All Implemented Interfaces:
Serializable,Cloneable,IAtom,IAtomType,ICDKObject,IChemObject,IElement,IFragmentAtom,IIsotope,IPseudoAtom
- Direct Known Subclasses:
DebugFragmentAtom
Class to represent an IPseudoAtom which embeds an IAtomContainer. Very much
like the MDL Molfile
Group concept.- Author:
- egonw
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openscience.cdk.interfaces.IAtomType
IAtomType.Hybridization -
Field Summary
Fields inherited from class org.openscience.cdk.Atom
charge, fractionalPoint3d, hydrogenCount, point2d, point3d, stereoParityFields inherited from class org.openscience.cdk.AtomType
electronValency, formalCharge, formalNeighbourCount, hybridizationFields inherited from class org.openscience.cdk.Isotope
exactMass, naturalAbundanceFields inherited from class org.openscience.cdk.Element
atomicNumberFields inherited from interface org.openscience.cdk.interfaces.IChemObject
ALIPHATIC, AROMATIC, CONJUGATED, HYDROGEN_BOND_ACCEPTOR, HYDROGEN_BOND_DONOR, IN_RING, MAPPED, MARKUSH, NOT_IN_RING, PLACED, REACTIVE_CENTER, SINGLE_OR_DOUBLE, TYPEABLE, VISITEDFields inherited from interface org.openscience.cdk.interfaces.IElement
Ac, Ag, Al, Am, Ar, As, At, Au, B, Ba, Be, Bh, Bi, Bk, Br, C, Ca, Cd, Ce, Cf, Cl, Cm, Cn, Co, Cr, Cs, Cu, Db, Ds, Dy, Er, Es, Eu, F, Fe, Fl, Fm, Fr, Ga, Gd, Ge, H, He, Hf, Hg, Ho, Hs, I, In, Ir, K, Kr, La, Li, Lr, Lu, Lv, Mc, Md, Mg, Mn, Mo, Mt, N, Na, Nb, Nd, Ne, Nh, Ni, No, Np, O, Og, Os, P, Pa, Pb, Pd, Pm, Po, Pr, Pt, Pu, Ra, Rb, Re, Rf, Rg, Rh, Rn, Ru, S, Sb, Sc, Se, Sg, Si, Sm, Sn, Sr, Ta, Tb, Tc, Te, Th, Ti, Tl, Tm, Ts, U, V, W, Wildcard, Xe, Y, Yb, Zn, Zr -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this atom object and its content.The exact mass of an FragmentAtom is defined as the sum of exact masses of the IAtom's in the fragment.Returns the fully expended form of the IFragmentAtom.booleanHelper method to indicate that the method should be drawn fully, and not just the abbreviated form.voidsetExactMass(Double mass) Sets the ExactMass attribute of the Isotope object.voidsetExpanded(boolean bool) Sets whether this atom is to be fully drawn and not just in the abbreviated form.voidsetFragment(IAtomContainer fragment) Sets the fully expended form of the IFragmentAtom.toString()Returns a one line string representation of this Atom.Methods inherited from class org.openscience.cdk.PseudoAtom
getAttachPointNum, getLabel, setAttachPointNum, setLabel, setStereoParityMethods inherited from class org.openscience.cdk.Atom
bonds, compare, equals, getBond, getBondCount, getCharge, getContainer, getFractionalPoint3d, getImplicitHydrogenCount, getIndex, getMapIdx, getPoint2d, getPoint3d, getStereoParity, hashCode, setCharge, setFractionalPoint3d, setImplicitHydrogenCount, setMapIdx, setPoint2d, setPoint3dMethods inherited from class org.openscience.cdk.AtomType
getAtomTypeName, getBondOrderSum, getCovalentRadius, getFormalCharge, getFormalNeighbourCount, getHybridization, getMaxBondOrder, getValency, setAtomTypeName, setBondOrderSum, setCovalentRadius, setFormalCharge, setFormalNeighbourCount, setHybridization, setMaxBondOrder, setValencyMethods inherited from class org.openscience.cdk.Isotope
getMassNumber, getNaturalAbundance, setMassNumber, setNaturalAbundanceMethods inherited from class org.openscience.cdk.Element
getAtomicNumber, getSymbol, setAtomicNumber, setSymbolMethods inherited from class org.openscience.cdk.ChemObject
addListener, addProperties, clear, flags, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, is, notifyChanged, notifyChanged, removeListener, removeProperty, set, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopyMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openscience.cdk.interfaces.IAtom
bonds, getBond, getBondCount, getCharge, getContainer, getFractionalPoint3d, getImplicitHydrogenCount, getIndex, getMapIdx, getPoint2d, getPoint3d, getStereoParity, getTotalHydrogenCount, isAromatic, isInRing, neighbors, setCharge, setFractionalPoint3d, setImplicitHydrogenCount, setIsAromatic, setIsInRing, setMapIdx, setPoint2d, setPoint3d, setStereoParityMethods inherited from interface org.openscience.cdk.interfaces.IAtomType
getAtomTypeName, getBondOrderSum, getCovalentRadius, getFormalCharge, getFormalNeighbourCount, getHybridization, getMaxBondOrder, getValency, setAtomTypeName, setBondOrderSum, setCovalentRadius, setFormalCharge, setFormalNeighbourCount, setHybridization, setMaxBondOrder, setValencyMethods inherited from interface org.openscience.cdk.interfaces.ICDKObject
getBuilderMethods inherited from interface org.openscience.cdk.interfaces.IChemObject
addListener, addProperties, clear, flags, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, is, notifyChanged, notifyChanged, removeListener, removeProperty, set, setFlag, setFlags, setID, setNotification, setProperties, setPropertyMethods inherited from interface org.openscience.cdk.interfaces.IElement
getAtomicNumber, getSymbol, setAtomicNumber, setSymbolMethods inherited from interface org.openscience.cdk.interfaces.IIsotope
getMassNumber, getNaturalAbundance, setMassNumber, setNaturalAbundanceMethods inherited from interface org.openscience.cdk.interfaces.IPseudoAtom
getAttachPointNum, getLabel, setAttachPointNum, setLabel
-
Constructor Details
-
FragmentAtom
public FragmentAtom()
-
-
Method Details
-
isExpanded
public boolean isExpanded()Description copied from interface:IFragmentAtomHelper method to indicate that the method should be drawn fully, and not just the abbreviated form.- Specified by:
isExpandedin interfaceIFragmentAtom- Returns:
- true, if it should be considered in expended form
-
setExpanded
public void setExpanded(boolean bool) Description copied from interface:IFragmentAtomSets whether this atom is to be fully drawn and not just in the abbreviated form.- Specified by:
setExpandedin interfaceIFragmentAtom- Parameters:
bool- true if the full structure should be drawn
-
getFragment
Description copied from interface:IFragmentAtomReturns the fully expended form of the IFragmentAtom.- Specified by:
getFragmentin interfaceIFragmentAtom- Returns:
- the fully expanded form as an IAtomContainer object
-
setFragment
Description copied from interface:IFragmentAtomSets the fully expended form of the IFragmentAtom.- Specified by:
setFragmentin interfaceIFragmentAtom- Parameters:
fragment- The fragment
-
setExactMass
Description copied from class:IsotopeSets the ExactMass attribute of the Isotope object.- Specified by:
setExactMassin interfaceIIsotope- Overrides:
setExactMassin classIsotope- Parameters:
mass- The new ExactMass value- See Also:
-
getExactMass
The exact mass of an FragmentAtom is defined as the sum of exact masses of the IAtom's in the fragment.- Specified by:
getExactMassin interfaceIIsotope- Overrides:
getExactMassin classIsotope- Returns:
- The ExactMass value
- See Also:
-
toString
Description copied from class:PseudoAtomReturns a one line string representation of this Atom. Methods is conform RFC #9.- Specified by:
toStringin interfaceIChemObject- Overrides:
toStringin classPseudoAtom- Returns:
- The string representation of this Atom
-
clone
Description copied from class:AtomClones this atom object and its content.- Specified by:
clonein interfaceIAtom- Specified by:
clonein interfaceIChemObject- Specified by:
clonein interfaceIPseudoAtom- Overrides:
clonein classPseudoAtom- Returns:
- The cloned object
- Throws:
CloneNotSupportedException- if the IChemObject cannot be cloned
-