Atom highlighted by mouse over:
Bond highlighted by mouse over: |
Atom colors: | Bond colors: | Palette colors: |
Note: All atom and molecule indices start at 1.
public void setAtomToHighLight(int molIndex, int atomIndex)
The hightlight is temporary.
public void setCallBack(String callbackName, JavaScriptObject callbackFunction)
Generic call back. The callback function is a JavaScript function that receives an instance of JSMEevent.
See {@link #getAlldefinedCallBackNames()} for all predefined callback names.
@param callbackName
@param callbackFunction.
public void setAtomBackgroundColors(int molIndex, String atomAndColorCSV)
atomAndColorCSV must be an integer between 0 and 6. 0 means no background color. molIndex can be 0.
public void resetAtomColors(int molIndex)