Class JMEmol
java.lang.Object
jme.JMEmol
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintbooleanstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionJMEmol(JME jme, JmolAdapterAtomIterator atomIterator, JmolAdapterBondIterator bondIterator) -
Method Summary
Modifier and TypeMethodDescriptionvoidcenter()voidvoidstatic StringfindSeparator(String molFile) intintint[]getBondProperties(int i) intgetCharge(int i) intgetHydrogenCount(int i) protected voiddoublegetX(int i) doublegetY(int i) voidmark()static StringnextData(StringTokenizer st, String separator) voidintvoidrestoreXY(double[][] xy) double[][]saveXY()voidsetAtomColoring(int atom, int n) voidsetAtomProperties(double xx, double yy, int ahc, int aq) voidsetBondProperties(int bp0, int bp1, int bp2, int bp3) voidshiftToXY(double marginPixelsX, double marginPixelsY) shift to an origin and return a dimension
-
Field Details
-
natoms
public int natoms -
nbonds
public int nbonds -
needRecentering
public boolean needRecentering -
RBOND
public static final int RBOND- See Also:
-
-
Constructor Details
-
JMEmol
-
-
Method Details
-
nextData
-
findSeparator
-
getAtomCount
public int getAtomCount() -
getBondCount
public int getBondCount() -
getX
public double getX(int i) -
getY
public double getY(int i) -
setAtomProperties
public void setAtomProperties(double xx, double yy, int ahc, int aq) -
getHydrogenCount
public int getHydrogenCount(int i) -
getCharge
public int getCharge(int i) -
getBondProperties
public int[] getBondProperties(int i) -
setBondProperties
public void setBondProperties(int bp0, int bp1, int bp2, int bp3) -
completeMolecule
public void completeMolecule() -
center
public void center() -
draw
-
getMinMax
protected void getMinMax() -
shiftToXY
shift to an origin and return a dimension- Parameters:
marginPixelsX-marginPixelsY-- Returns:
- pixel dimension of framed model
-
setAtomColoring
public void setAtomColoring(int atom, int n) -
mark
public void mark() -
numberAtoms
public void numberAtoms() -
setLabel
-
reactionPart
public int reactionPart() -
saveXY
public double[][] saveXY() -
restoreXY
public void restoreXY(double[][] xy)
-