public class FragmentAtom extends PseudoAtom implements IFragmentAtom
Group
concept.IAtomType.Hybridization
charge, fractionalPoint3d, hydrogenCount, point2d, point3d, stereoParity
electronValency, formalCharge, formalNeighbourCount, hybridization
exactMass, naturalAbundance
atomicNumber
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 and Description |
---|
FragmentAtom() |
Modifier and Type | Method and Description |
---|---|
IFragmentAtom |
clone()
Clones this atom object and its content.
|
Double |
getExactMass()
The exact mass of an FragmentAtom is defined as the sum of exact masses
of the IAtom's in the fragment.
|
IAtomContainer |
getFragment()
Returns the fully expended form of the IFragmentAtom.
|
boolean |
isExpanded()
Helper method to indicate that the method should be drawn fully, and not
just the abbreviated form.
|
void |
setExactMass(Double mass)
Sets the ExactMass attribute of the Isotope object.
|
void |
setExpanded(boolean bool)
Sets whether this atom is to be fully drawn and not just in the abbreviated form.
|
void |
setFragment(IAtomContainer fragment)
Sets the fully expended form of the IFragmentAtom.
|
String |
toString()
Returns a one line string representation of this Atom.
|
getAttachPointNum, getLabel, setAttachPointNum, setLabel, setStereoParity
bonds, compare, equals, getBond, getBondCount, getCharge, getContainer, getFractionalPoint3d, getImplicitHydrogenCount, getIndex, getMapIdx, getPoint2d, getPoint3d, getStereoParity, hashCode, isAromatic, isInRing, setCharge, setFractionalPoint3d, setImplicitHydrogenCount, setIsAromatic, setIsInRing, setMapIdx, setPoint2d, setPoint3d
getAtomTypeName, getBondOrderSum, getCovalentRadius, getFormalCharge, getFormalNeighbourCount, getHybridization, getMaxBondOrder, getValency, setAtomTypeName, setBondOrderSum, setCovalentRadius, setFormalCharge, setFormalNeighbourCount, setHybridization, setMaxBondOrder, setValency
getMassNumber, getNaturalAbundance, setMassNumber, setNaturalAbundance
getAtomicNumber, getSymbol, setAtomicNumber, setSymbol
addListener, addProperties, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy
finalize, getClass, notify, notifyAll, wait, wait, wait
getAttachPointNum, getLabel, setAttachPointNum, setLabel
bonds, getBond, getBondCount, getCharge, getContainer, getFractionalPoint3d, getImplicitHydrogenCount, getIndex, getMapIdx, getPoint2d, getPoint3d, getStereoParity, isAromatic, isInRing, setCharge, setFractionalPoint3d, setImplicitHydrogenCount, setIsAromatic, setIsInRing, setMapIdx, setPoint2d, setPoint3d, setStereoParity
getAtomTypeName, getBondOrderSum, getCovalentRadius, getFormalCharge, getFormalNeighbourCount, getHybridization, getMaxBondOrder, getValency, setAtomTypeName, setBondOrderSum, setCovalentRadius, setFormalCharge, setFormalNeighbourCount, setHybridization, setMaxBondOrder, setValency
getMassNumber, getNaturalAbundance, setMassNumber, setNaturalAbundance
getAtomicNumber, getSymbol, setAtomicNumber, setSymbol
addListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty
getBuilder
public boolean isExpanded()
IFragmentAtom
isExpanded
in interface IFragmentAtom
public void setExpanded(boolean bool)
IFragmentAtom
setExpanded
in interface IFragmentAtom
bool
- true if the full structure should be drawnpublic IAtomContainer getFragment()
IFragmentAtom
getFragment
in interface IFragmentAtom
public void setFragment(IAtomContainer fragment)
IFragmentAtom
setFragment
in interface IFragmentAtom
fragment
- The fragmentpublic void setExactMass(Double mass)
Isotope
setExactMass
in interface IIsotope
setExactMass
in class Isotope
mass
- The new ExactMass valueIsotope.getExactMass()
public Double getExactMass()
getExactMass
in interface IIsotope
getExactMass
in class Isotope
Isotope.setExactMass(java.lang.Double)
public String toString()
PseudoAtom
toString
in interface IChemObject
toString
in class PseudoAtom
public IFragmentAtom clone() throws CloneNotSupportedException
Atom
clone
in interface IAtom
clone
in interface IChemObject
clone
in interface IPseudoAtom
clone
in class PseudoAtom
CloneNotSupportedException
- if the IChemObject cannot be clonedCopyright © 2021. All rights reserved.