|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmol.api.JmolSimpleViewer
org.jmol.api.JmolViewer
org.jmol.viewer.Viewer
public class Viewer
| Fields inherited from class org.jmol.api.JmolViewer |
|---|
menuStructure |
| Fields inherited from class org.jmol.api.JmolSimpleViewer |
|---|
apiPlatform |
| Constructor Summary | |
|---|---|
private |
Viewer(Object display,
JmolAdapter modelAdapter,
String commandOptions)
|
| Method Summary | |
|---|---|
(package private) void |
actionRotateBond(int deltaX,
int deltaY,
int x,
int y)
|
void |
addCommand(String command)
Adds one or more commands to the command history |
void |
addFunction(ScriptFunction f)
|
BitSet |
addHydrogens(BitSet bsAtoms,
boolean asScript,
boolean isSilent)
|
private BitSet |
addHydrogensInline(BitSet bsAtoms,
List<Atom> vConnections,
Point3f[] pts)
|
void |
addSelectionListener(JmolSelectionListener listener)
|
ModelCollection.StateScript |
addStateScript(String script1,
BitSet bsBonds,
BitSet bsAtoms1,
BitSet bsAtoms2,
String script2,
boolean addFrameNumber,
boolean postDefinitions)
|
ModelCollection.StateScript |
addStateScript(String script,
boolean addFrameNumber,
boolean postDefinitions)
|
void |
addUnitCellOffset(Point3f pt)
|
static JmolViewer |
allocateViewer(Object display,
JmolAdapter modelAdapter,
String fullName,
URL documentBase,
URL codeBase,
String commandOptions,
JmolStatusListener statusListener)
NOTE: for APPLICATION AND APPLET call setModeMouse(JmolConstants.MOUSE_NONE); before setting viewer=null in order to remove references to display window in listeners and hoverWatcher This is the main access point for creating an application or applet viewer. |
EnumStructure[] |
allocTempEnum(int size)
|
Point3f[] |
allocTempPoints(int size)
|
Point3i[] |
allocTempScreens(int size)
|
boolean |
allowMultiTouch()
|
(package private) boolean |
allowRotateSelected()
|
boolean |
allowSpecAtom()
|
(package private) void |
appendLoadStates(StringBuffer commands)
|
boolean |
areAxesTainted()
|
void |
assignAromaticBonds()
|
void |
assignAtom(int atomIndex,
Point3f pt,
String type)
|
void |
assignBond(int bondIndex,
char type)
|
void |
assignConnect(int index,
int index2)
|
void |
autoCalculate(int tokProperty)
|
int |
autoHbond(BitSet bsFrom,
BitSet bsTo)
|
void |
bindAction(String desc,
String name,
Point3f range1,
Point3f range2)
|
void |
calcAtomsMinMax(BitSet bs,
BoxInfo boxInfo)
|
void |
calcBoundBoxDimensions(BitSet bs,
float scale)
|
float |
calcRotationRadius(BitSet bs)
|
(package private) float |
calcRotationRadius(Point3f center)
|
void |
calcSelectedGroupsCount()
|
void |
calcSelectedMoleculesCount()
|
void |
calcSelectedMonomersCount()
|
Vector3f |
calculateMolecularDipole()
|
String |
calculatePointGroup()
|
void |
calculateStraightness()
|
String |
calculateStructures(BitSet bsAtoms,
boolean asDSSP,
boolean setStructure)
|
int |
calculateStruts(BitSet bs1,
BitSet bs2)
|
Point3f[] |
calculateSurface(BitSet bsSelected,
float envelopeRadius)
|
String |
cd(String dir)
|
(package private) void |
centerAt(int x,
int y,
Point3f pt)
|
boolean |
checkAutoBondLegacy()
|
void |
checkCoordinatesChanged()
|
private static float |
checkFloatRange(float value,
float min,
float max)
|
boolean |
checkHalt(String str,
boolean isInterrupt)
|
private static int |
checkIntRange(int value,
int min,
int max)
|
private void |
checkMinimization()
|
(package private) Map<String,Object> |
checkObjectClicked(int x,
int y,
int modifiers)
|
(package private) void |
checkObjectDragged(int prevX,
int prevY,
int x,
int y,
int action)
|
(package private) boolean |
checkObjectHovered(int x,
int y)
|
boolean |
checkPrivateKey(double privateKey)
Simple method to ensure that the image creator (which writes files) was in fact opened by this viewer and not by some manipulation of the applet. |
boolean |
checkResume(String str)
|
private String |
checkScriptExecution(String strScript,
boolean isInterrupt)
|
boolean |
checkStepping(String str)
|
void |
clearAllMeasurements()
|
private void |
clearAtomSets()
|
void |
clearBfactorRange()
|
(package private) void |
clearClickCount()
|
void |
clearConsole()
|
void |
clearFunctions()
|
void |
clearMeasurements()
|
(package private) void |
clearMinimization()
|
private void |
clearModelDependentObjects()
|
void |
clearScriptQueue()
|
void |
clearSelection()
|
void |
clearShapeRenderers()
|
void |
clearTimeout(String name)
|
String |
clipImage(String text)
|
void |
connect(float[][] connections)
|
Object |
createImage(String fileName,
String type,
Object text_or_bytes,
int quality,
int width,
int height)
|
String |
createImage(String fileName,
String type,
Object text_or_bytes,
int quality,
int width,
int height,
BitSet bsFrames,
String[] fullPath)
from eval write command only includes option to write set of files |
Object |
createImage(String fileName,
String type,
Object text_or_bytes,
int quality,
int width,
int height,
String[] fullPath)
general routine for creating an image or writing data to a file passes request to statusManager to pass along to app or applet jmolStatusListener interface |
private Object |
createImage(String fileName,
String type,
Object text_or_bytes,
int quality,
int width,
int height,
String[] fullPath,
boolean doCheck)
|
private String |
createModelSetAndReturnError(Object atomSetCollection,
boolean isAppend,
StringBuffer loadScript)
finally(!) we are ready to create the "model set" from the "atom set collection" |
int |
deleteAtoms(BitSet bs,
boolean fullModels)
|
void |
deleteBonds(BitSet bsDeleted)
|
void |
deleteMeasurement(int i)
|
void |
deleteModelAtoms(int firstAtomIndex,
int nAtoms,
BitSet bsDeleted)
|
void |
deleteSavedState(String saveName)
|
void |
deleteShapeAtoms(Object[] value,
BitSet bs)
|
(package private) void |
depthByPixels(int pixels)
|
void |
depthToPercent(int percentDepth)
|
String |
dialogAsk(String type,
String fileName)
|
void |
display(BitSet bs,
boolean isDisplay,
boolean isGroup,
Boolean addRemove,
boolean isQuiet)
|
void |
displayBonds(Bond.BondSet bs,
boolean isDisplay)
|
(package private) void |
echoMessage(String msg)
|
boolean |
eval(ScriptContext context,
ShapeManager shapeManager)
|
String |
evalFile(String strFilename)
|
float |
evalFunctionFloat(Object func,
Object params,
float[] values)
|
String |
evalString(String strScript)
|
String |
evalStringQuiet(String strScript)
|
(package private) String |
evalStringQuiet(String strScript,
boolean isQuiet,
boolean allowSyncScript)
|
Object |
evalStringWaitStatus(String returnType,
String strScript,
String statusList)
|
(package private) Object |
evalStringWaitStatus(String returnType,
String strScript,
String statusList,
boolean isScriptFile,
boolean isQuiet,
boolean isQueued)
|
Object |
evaluateExpression(Object stringOrTokens)
|
ScriptVariable |
evaluateExpressionAsVariable(Object stringOrTokens)
|
void |
excludeAtoms(BitSet bs,
boolean ignoreSubset)
|
void |
exitJmol()
|
void |
fillAtomData(AtomData atomData,
int mode)
|
protected void |
finalize()
|
(package private) void |
finalizeTransformParameters()
|
(package private) BitSet |
findAtomsInRectangle(Rectangle rect)
|
int |
findNearestAtomIndex(int x,
int y)
|
int |
findNearestAtomIndex(int x,
int y,
boolean mustBeMovable)
|
String |
fixInlineString(String strModel,
char newLine)
|
String |
formatText(String text0)
|
boolean |
frankClicked(int x,
int y)
|
boolean |
frankClickedModelKit(int x,
int y)
|
void |
freeTempEnum(EnumStructure[] temp)
|
void |
freeTempPoints(Point3f[] tempPoints)
|
void |
freeTempScreens(Point3i[] tempScreens)
|
float[][] |
functionXY(String functionName,
int nX,
int nY)
fills an array with data -- if nX < 0 and this would involve JavaScript, then this reads a full set of Double[][] in one function call. |
float[][][] |
functionXYZ(String functionName,
int nX,
int nY,
int nZ)
|
String |
generateOutput(String type,
String[] fileName,
int width,
int height)
|
Point3f[] |
getAdditionalHydrogens(BitSet bsAtoms,
boolean doAll,
boolean justCarbon,
List<Atom> vConnections)
|
(package private) List<Map<String,Object>> |
getAllAtomInfo(Object atomExpression)
|
(package private) List<Map<String,Object>> |
getAllBondInfo(Object atomExpression)
|
Map<String,List<Map<String,Object>>> |
getAllChainInfo(Object atomExpression)
|
boolean |
getAllowEmbeddedScripts()
|
boolean |
getAllowGestures()
|
Map<String,List<Map<String,Object>>> |
getAllPolymerInfo(Object atomExpression)
|
String |
getAllSettings(String prefix)
|
String |
getAltLocListInModel(int modelIndex)
|
(package private) int |
getAnimationDirection()
|
int |
getAnimationFps()
|
(package private) Map<String,Object> |
getAnimationInfo()
|
(package private) EnumAnimationMode |
getAnimationReplayMode()
|
ApiPlatform |
getApiPlatform()
|
boolean |
getAppendNew()
|
String |
getAppletContext()
|
(package private) Map<String,Object> |
getAppletInfo()
|
boolean |
getApplySymmetryToBonds()
|
int |
getAtomArgb(int i)
|
BitSet |
getAtomBits(int tokType,
Object specInfo)
|
BitSet |
getAtomBitSet(Object atomExpression)
|
(package private) BitSet |
getAtomBitSet(ScriptEvaluator eval,
Object atomExpression)
|
(package private) List<Integer> |
getAtomBitSetVector(Object atomExpression)
|
(package private) String |
getAtomChain(int i)
|
int |
getAtomCount()
|
int |
getAtomCountInModel(int modelIndex)
|
Quaternion[] |
getAtomGroupQuaternions(BitSet bsAtoms,
int nMax)
|
float[] |
getAtomicCharges()
|
float[] |
getAtomicPotentials(boolean isMep,
BitSet bsSelected,
BitSet bsIgnore,
String fileName)
|
(package private) void |
getAtomicPropertyState(StringBuffer commands,
byte type,
BitSet bs,
String name,
float[] data)
|
void |
getAtomIdentityInfo(int atomIndex,
Map<String,Object> info)
|
int |
getAtomIndexFromAtomNumber(int atomNumber)
|
int[] |
getAtomIndices(BitSet bs)
|
String |
getAtomInfo(int atomOrPointIndex)
|
String |
getAtomInfoXYZ(int atomIndex,
boolean useChimeFormat)
|
int |
getAtomModelIndex(int i)
|
String |
getAtomName(int i)
|
int |
getAtomNumber(int i)
|
private boolean |
getAtomPicking()
|
Point3f |
getAtomPoint3f(int i)
|
List<Point3f> |
getAtomPointVector(BitSet bs)
|
Quaternion |
getAtomQuaternion(int i)
|
float |
getAtomRadius(int i)
|
BitSet |
getAtomsConnected(float min,
float max,
int intType,
BitSet bs)
|
(package private) String |
getAtomSequenceCode(int i)
|
Point3f |
getAtomSetCenter(BitSet bs)
|
private Object |
getAtomSetCollection(String fileName,
boolean isAppend,
Map<String,Object> htParams,
StringBuffer loadScript)
|
float |
getAtomShapeValue(int tok,
Group group,
int atomIndex)
|
BitSet |
getAtomsWithin(float distance,
BitSet bs,
boolean withinAllModels,
RadiusData rd)
|
BitSet |
getAtomsWithin(float distance,
Point3f coord)
|
BitSet |
getAtomsWithin(float distance,
Point3f[] points,
BitSet bsInclude)
|
BitSet |
getAtomsWithin(float distance,
Point4f plane)
|
boolean |
getAutoBond()
|
(package private) boolean |
getAutoFps()
|
Map<String,Object> |
getAuxiliaryInfo(Object atomExpression)
|
(package private) Point3f |
getAverageAtomPoint()
|
EnumAxesMode |
getAxesMode()
|
boolean |
getAxesOrientationRasmol()
|
float |
getAxesScale()
|
void |
getAxisAngle(AxisAngle4f axisAngle)
|
Point3f[] |
getAxisPoints()
|
int |
getBackgroundArgb()
|
int |
getBfactor100Hi()
|
String |
getBindingInfo(String qualifiers)
|
BitSet |
getBitSetTrajectories()
|
int |
getBondArgb1(int i)
|
int |
getBondArgb2(int i)
|
int |
getBondCount()
For use in setting a for() construct max value |
int |
getBondCountInModel(int modelIndex)
from JmolPopup.udateModelSetComputedMenu |
int |
getBondModelIndex(int i)
|
int |
getBondOrder(int i)
|
boolean |
getBondPicking()
|
Point3f |
getBondPoint3f1(int i)
|
Point3f |
getBondPoint3f2(int i)
|
float |
getBondRadius(int i)
|
boolean |
getBondSelectionModeOr()
|
BitSet |
getBondsForSelectedAtoms(BitSet bsAtoms)
|
float |
getBondTolerance()
|
boolean |
getBooleanProperty(String key)
|
Point3f |
getBoundBoxCenter()
|
int |
getBoundBoxCenterX()
|
int |
getBoundBoxCenterY()
|
String |
getBoundBoxCommand(boolean withOptions)
|
Vector3f |
getBoundBoxCornerVector()
|
(package private) Map<String,Object> |
getBoundBoxInfo()
|
BitSet |
getBoundBoxModels()
|
Point3f[] |
getBoundBoxVertices()
|
BoxInfo |
getBoxInfo(BitSet bs,
float scale)
|
BitSet |
getBranchBitSet(int atomIndex,
int atomIndexNot)
|
BufferedInputStream |
getBufferedInputStream(String fullPathName)
|
Object |
getBufferedReaderOrErrorMessageFromName(String name,
String[] fullPathNameReturn,
boolean isBinary)
|
Point3f[] |
getCameraFactors()
|
boolean |
getCartoonBaseEdgesFlag()
|
boolean |
getCartoonRocketFlag()
|
Point3f[][] |
getCenterAndPoints(List<BitSet[]> atomSets,
boolean addCenter)
|
boolean |
getChainCaseSensitive()
|
int |
getChainCount()
|
int |
getChainCountInModel(int modelIndex)
|
int |
getChainCountInModel(int modelIndex,
boolean countWater)
|
String |
getChemicalInfo(String smiles,
char type)
|
String |
getChimeInfo(int tok)
|
Map<String,Object> |
getCifData(int modelIndex)
|
BitSet |
getClickableSet()
|
(package private) short |
getColix(Object object)
|
short |
getColixAtomPalette(Atom atom,
byte pid)
|
short |
getColixBackgroundContrast()
|
short |
getColixBondPalette(Bond bond,
int pid)
|
short |
getColixForPropertyValue(float val)
|
short |
getColixRubberband()
|
int |
getColorArgbOrGray(short colix)
|
ColorEncoder |
getColorEncoder(String colorScheme)
|
Point3f |
getColorPointForPropertyValue(float val)
|
String |
getColorSchemeList(String colorScheme)
|
BitSet |
getConformation(int iModel,
int conformationIndex,
boolean doSet)
|
Map<String,ScriptVariable> |
getContextVariables()
|
String |
getCoordinateState(BitSet bsSelected)
|
boolean |
getCreatingImage()
|
int[] |
getCrossHairMinMax()
|
float[] |
getCurrentColorRange()
|
String |
getCurrentFileAsString()
|
int |
getCurrentModelIndex()
|
float |
getCurrentSolventProbeRadius()
|
SymmetryInterface |
getCurrentUnitCell()
|
int |
getCursor()
|
int |
getCursorX()
|
int |
getCursorY()
|
Object[] |
getData(String type)
|
String |
getData(String atomExpression,
String type)
|
float[] |
getDataFloat(String label)
|
float |
getDataFloat(String label,
int atomIndex)
|
float[][] |
getDataFloat2D(String label)
|
float[][][] |
getDataFloat3D(String label)
|
(package private) String |
getDataSeparator()
|
boolean |
getDebugScript()
|
(package private) String |
getDefaultDirectory()
|
float |
getDefaultDrawArrowScale()
|
Point3f |
getDefaultLattice()
|
String |
getDefaultLoadFilter()
|
String |
getDefaultLoadScript()
|
String |
getDefaultMeasurementLabel(int nPoints)
|
RadiusData |
getDefaultRadiusData()
|
String |
getDefaultStructure(BitSet bsAtoms,
BitSet bsAllAtoms)
|
boolean |
getDefaultStructureDSSP()
|
float |
getDefaultTranslucent()
|
String |
getDefaultVdwTypeNameOrData(int iMode,
EnumVdw vType)
|
int |
getDelayMaximum()
|
BitSet |
getDeletedAtoms()
|
float |
getDipoleScale()
|
(package private) boolean |
getDisablePopupMenu()
|
Object |
getDisplay()
|
boolean |
getDisplayCellParameters()
|
int |
getDisplayModelIndex()
|
int |
getDotDensity()
|
int |
getDotScale()
|
boolean |
getDotsSelectedOnlyFlag()
|
boolean |
getDotSurfaceFlag()
|
boolean |
getDragSelected()
|
boolean |
getDrawHover()
|
boolean |
getDrawPicking()
|
boolean |
getDynamicMeasurements()
|
boolean |
getEchoStateActive()
|
String[] |
getElectronDensityLoadInfo()
|
(package private) int |
getElementNumber(int i)
|
BitSet |
getElementsPresentBitSet(int modelIndex)
|
(package private) String |
getElementSymbol(int i)
|
String |
getErrorMessage()
|
String |
getErrorMessageUntranslated()
|
Object |
getExecutor()
|
String |
getExportDriverList()
|
Object |
getFileAsBytes(String pathName,
OutputStream os)
|
Object |
getFileAsImage(String pathName,
String[] retFileNameOrError)
|
String |
getFileAsString(String name)
|
boolean |
getFileAsString(String[] data,
int nBytesMax,
boolean doSpecialLoad)
|
String |
getFileAsString(String name,
int nBytesMax,
boolean doSpecialLoad)
|
(package private) Object |
getFileData()
|
(package private) String |
getFileHeader()
|
String[] |
getFileInfo()
|
String |
getFileName()
|
private String |
getFileNameFromDialog(String fileName,
int quality)
|
String |
getFilePath(String name,
boolean asShortName)
|
Font3D |
getFont3D(String fontFace,
String fontStyle,
float fontSize)
|
boolean |
getFontCaching()
|
boolean |
getFontScaling()
|
boolean |
getForceAutoBond()
|
boolean |
getFractionalRelative()
|
BitSet |
getFrameOffsets()
|
String |
getFrameTitle()
|
int |
getFrontPlane()
|
String |
getFullPathName()
|
String[] |
getFullPathNameOrError(String filename)
|
ScriptFunction |
getFunction(String name)
|
String |
getFunctionCalls(String selectedFunction)
|
(package private) StateManager.GlobalSettings |
getGlobalSettings()
|
Graphics3D |
getGraphics3D()
|
(package private) boolean |
getGreyscaleRendering()
|
int |
getGroupCount()
|
int |
getGroupCountInModel(int modelIndex)
|
BitSet |
getGroupsWithin(int nResidues,
BitSet bs)
|
float |
getHbondsAngleMin()
|
boolean |
getHbondsBackbone()
|
float |
getHbondsDistanceMax()
|
boolean |
getHbondsRasmol()
|
boolean |
getHbondsSolid()
|
Object |
getHelixData(BitSet bs,
int tokType)
|
int |
getHelixStep()
|
void |
getHelp(String what)
|
int |
getHermiteLevel()
|
Map<String,String> |
getHeteroList(int modelIndex)
|
BitSet |
getHiddenSet()
|
(package private) boolean |
getHideNameInPopup()
|
boolean |
getHighResolution()
|
(package private) int |
getHoverDelay()
|
(package private) String |
getHtmlName()
|
String |
getHybridizationAndAxes(int atomIndex,
Vector3f z,
Vector3f x,
String lcaoType)
|
private Object |
getImage(boolean isDouble)
|
Object |
getImageAs(String type,
int quality,
int width,
int height,
String fileName,
OutputStream os)
|
(package private) Object |
getImageAs(String type,
int quality,
int width,
int height,
String fileName,
OutputStream os,
String comment)
|
float |
getImageFontScaling()
|
char |
getInlineChar()
|
static void |
getInlineData(StringBuffer loadScript,
String strModel,
boolean isAppend)
|
boolean |
getInMotion()
|
String |
getInterruptScript()
|
boolean |
getIsosurfaceKey()
|
int |
getIsosurfacePropertySmoothing(boolean asPower)
|
String |
getJavaVendor()
|
String |
getJavaVersion()
|
int |
getJmolDataFrameIndex(int modelIndex,
String type)
|
int |
getJmolDataSourceFrame(int modelIndex)
|
(package private) String |
getJmolFrameType(int modelIndex)
|
static String |
getJmolVersion()
|
boolean |
getJustifyMeasurements()
|
String |
getLanguage()
|
Map<String,Object> |
getLigandInfo(Object atomExpression)
|
Object |
getLigandModel(String id)
obtain CIF data for a ligand for purposes of adding hydrogens |
float |
getLoadAtomDataTolerance()
|
(package private) String |
getLoadState(Map<String,Object> htParams)
|
String |
getLogFile()
|
boolean |
getLogGestures()
|
short |
getMadBond()
|
short |
getMarBond()
|
(package private) Matrix3f |
getMatrixRotate()
|
Matrix4f |
getMatrixtransform()
|
float |
getMaxZoomPercent()
|
boolean |
getMeasureAllModelsFlag()
|
String |
getMeasureDistanceUnits()
|
int |
getMeasurementCount()
|
int[] |
getMeasurementCountPlusIndices(int i)
|
(package private) List<Map<String,Object>> |
getMeasurementInfo()
|
String |
getMeasurementInfoAsString()
|
String |
getMeasurementStringValue(int i)
|
String |
getMenu(String type)
|
(package private) String |
getMenuName(int i)
|
Map<String,List<List<Object>>> |
getMessageQueue()
|
boolean |
getMessageStyleChime()
|
float |
getMinBondDistance()
|
String |
getMinimizationInfo()
|
MinimizerInterface |
getMinimizer(boolean createNew)
|
int |
getMinPixelSelRadius()
|
JmolAdapter |
getModelAdapter()
|
String |
getModelAtomProperty(Atom atom,
String text)
|
Map<String,Object> |
getModelAuxiliaryInfo(int modelIndex)
|
Object |
getModelAuxiliaryInfo(int modelIndex,
String keyName)
|
BitSet |
getModelBitSet(BitSet atomList,
boolean allTrajectories)
|
String |
getModelCml(BitSet bs,
int nAtomsMax,
boolean addBonds)
|
int |
getModelCount()
|
Vector3f |
getModelDipole()
|
String |
getModelExtract(Object atomExpression,
boolean doTransform,
String type)
|
String |
getModelFileInfo()
|
String |
getModelFileInfoAll()
|
String |
getModelFileName(int modelIndex)
|
int |
getModelFileNumber(int modelIndex)
|
Map<String,Object> |
getModelInfo(Object atomExpression)
|
String |
getModelInfoAsString()
|
boolean |
getModelkitMode()
|
(package private) BitSet |
getModelKitStateBitSet(BitSet bs,
BitSet bsDeleted)
|
String |
getModelName(int modelIndex)
|
int |
getModelNumber(int modelIndex)
|
String |
getModelNumberDotted(int modelIndex)
|
int |
getModelNumberIndex(int modelNumber,
boolean useModelNumber,
boolean doSetTrajectory)
|
Properties |
getModelProperties(int modelIndex)
|
String |
getModelProperty(int modelIndex,
String propertyName)
|
ModelSet |
getModelSet()
|
Map<String,Object> |
getModelSetAuxiliaryInfo()
|
Object |
getModelSetAuxiliaryInfo(String strKey)
|
String |
getModelSetFileName()
|
String |
getModelSetName()
|
String |
getModelSetPathName()
|
Properties |
getModelSetProperties()
|
String |
getModelSetProperty(String strProp)
|
String |
getModelSetTypeName()
|
private String |
getModelTitle(int modelIndex)
|
BitSet |
getModelUndeletedAtomsBitSet(BitSet bsModels)
|
BitSet |
getModelUndeletedAtomsBitSet(int modelIndex)
|
SymmetryInterface |
getModelUnitCell(int modelIndex)
|
byte |
getModeMultipleBond()
|
String |
getMoInfo(int modelIndex)
|
BitSet |
getMoleculeBitSet(int atomIndex)
|
(package private) List<Map<String,Object>> |
getMoleculeInfo(Object atomExpression)
|
int |
getMotionEventNumber()
|
BitSet |
getMotionFixedAtoms()
|
boolean |
getMouseEnabled()
|
Object |
getMouseInfo()
|
(package private) String |
getMoveToText(float timespan)
|
float |
getMultipleBondRadiusFactor()
|
float |
getMultipleBondSpacing()
|
boolean |
getNavigateSurface()
|
Point3f |
getNavigationCenter()
|
float |
getNavigationDepthPercent()
|
boolean |
getNavigationMode()
|
Point3f |
getNavigationOffset()
|
(package private) float |
getNavigationOffsetPercent(char XorY)
|
boolean |
getNavigationPeriodic()
|
(package private) float |
getNavigationSpeed()
|
(package private) boolean |
getNavOn()
|
Boolean |
getNoneSelected()
|
(package private) int |
getObjectArgb(int objId)
|
short |
getObjectColix(int objId)
|
int |
getObjectMad(int objId)
|
void |
getObjectMap(Map<String,Token> map,
boolean withDollar)
retrieves list of draw/isosurface objects |
String |
getObjectState(String name)
|
String |
getOperatingSystemName()
|
StateManager.Orientation |
getOrientation()
|
(package private) Map<String,Object> |
getOrientationInfo()
|
String |
getOrientationText(int type,
String name)
|
ScriptVariable |
getOrSetNewVariable(String key,
boolean doSet)
|
OutputStream |
getOutputStream(String localName,
String[] fullPath)
|
Object |
getParameter(String key)
|
Object |
getParameterEscaped(String key)
|
float[] |
getPartialCharges()
|
boolean |
getPartialDots()
|
String[][] |
getPdbBondInfo(String group3)
|
String |
getPdbData(BitSet bs,
OutputStringBuffer sb)
|
String |
getPdbData(int modelIndex,
String type,
Object[] parameters)
|
String |
getPDBHeader()
|
(package private) MeasurementPending |
getPendingMeasurement()
|
int |
getPercentVdwAtom()
|
boolean |
getPerspectiveDepth()
|
int |
getPickingMode()
|
(package private) int |
getPickingSpinRate()
|
List<Object> |
getPlaneIntersection(int type,
Point4f plane,
float scale,
int flags)
|
String |
getPointGroupAsString(boolean asDraw,
String type,
int index,
float scale)
|
Map<String,Object> |
getPointGroupInfo(Object atomExpression)
|
float |
getPointGroupTolerance(int type)
|
int |
getPolymerCount()
|
int |
getPolymerCountInModel(int modelIndex)
|
Point3f[] |
getPolymerLeadMidPoints(int modelIndex,
int polymerIndex)
|
void |
getPolymerPointsAndVectors(BitSet bs,
List<Point3f[]> vList)
|
private Object |
getPopupMenu()
|
boolean |
getPreserveState()
This flag if set FALSE: 1) turns UNDO off for the application 2) turns history off 3) prevents saving of inlinedata for later LOAD "" commands 4) turns off the saving of changed atom properties 5) does not guarantee accurate state representation 6) disallows generation of the state It is useful in situations such as web sites where memory is an issue and there is no need for such. |
Object |
getProperty(String returnType,
String infoType,
Object paramInfo)
|
Object |
getProperty(String returnType,
String infoType,
String paramInfo)
|
String |
getPropertyColorScheme()
|
String |
getProteinStructureState()
|
char |
getQuaternionFrame()
|
boolean |
getRasmolSetting(int tok)
|
boolean |
getRefreshing()
|
BitSet |
getRenderableBitSet()
|
int |
getRepaintWait()
|
int |
getRibbonAspectRatio()
|
boolean |
getRibbonBorder()
|
boolean |
getRocketBarrelFlag()
|
(package private) int |
getRotateBondIndex()
|
(package private) void |
getRotation(Matrix3f matrixRotation)
|
Point3f |
getRotationCenter()
|
Quaternion |
getRotationQuaternion()
|
float |
getRotationRadius()
|
(package private) Rectangle |
getRubberBandSelection()
|
String |
getSavedCoordinates(String saveName)
|
String |
getSavedOrienationText(String name)
|
String |
getSavedState(String saveName)
|
String |
getSavedStructure(String saveName)
|
float |
getScalePixelsPerAngstrom(boolean asAntialiased)
|
int |
getScreenDim()
|
int |
getScreenHeight()
|
Object |
getScreenImage(Object g)
|
int |
getScreenWidth()
|
int |
getScriptDelay()
|
(package private) boolean |
getSelectAllModels()
|
AtomIndexIterator |
getSelectedAtomIterator(BitSet bsSelected,
boolean isGreaterOnly,
boolean modelZeroBased,
boolean isMultiModel)
|
int |
getSelectionCount()
|
boolean |
getSelectionHaloEnabled(boolean isRenderer)
|
BitSet |
getSelectionSet(boolean includeDeleted)
|
BitSet |
getSelectionSubset()
|
BitSet |
getSequenceBits(String specInfo,
BitSet bs)
|
String |
getSetHistory(int howFarBack)
Options include: ; all n == Integer.MAX_VALUE ; n prev n >= 1 ; next n == -1 ; set max to -2 - n n <= -3 ; just clear n == -2 ; clear and turn off; return "" n == 0 ; clear and turn on; return "" n == Integer.MIN_VALUE; |
String |
getShapeErrorState()
|
Map<String,Object> |
getShapeInfo()
|
ShapeManager |
getShapeManager()
|
Object |
getShapeProperty(int shapeType,
String propertyName)
|
Object |
getShapeProperty(int shapeType,
String propertyName,
int index)
|
boolean |
getShapeProperty(int shapeType,
String propertyName,
Object[] data)
|
private int |
getShapePropertyAsInt(int shapeID,
String propertyName)
|
void |
getShapeState(StringBuffer commands,
boolean isAll)
|
float |
getSheetSmoothing()
|
boolean |
getShowAxes()
|
boolean |
getShowBbcage()
|
boolean |
getShowFrank()
|
boolean |
getShowHiddenSelectionHalos()
|
boolean |
getShowHydrogens()
|
boolean |
getShowMeasurementLabels()
|
boolean |
getShowMeasurements()
|
boolean |
getShowMultipleBonds()
|
boolean |
getShowNavigationPoint()
|
boolean |
getShowUnitCell()
|
boolean |
getSlabByAtom()
|
boolean |
getSlabByMolecule()
|
boolean |
getSlabEnabled()
|
int |
getSmallMoleculeMaxAtoms()
|
boolean |
getSmartAromatic()
|
BitSet |
getSmartsMatch(String smarts,
BitSet bsSelected)
|
String |
getSmiles(int index1,
int index2,
BitSet bsSelected,
boolean isBioSmiles,
boolean allowUnmatchedRings,
boolean addCrossLinks,
boolean addComment)
returns the SMILES string for a sequence or atom set does not include attached protons on groups |
SmilesMatcherInterface |
getSmilesMatcher()
|
(package private) boolean |
getSolventOn()
|
float |
getSolventProbeRadius()
|
Map<String,Object> |
getSpaceGroupInfo(String spaceGroup)
|
String |
getSpecularState()
|
(package private) boolean |
getSpinOn()
|
String |
getSpinState()
|
boolean |
getSsbondsBackbone()
|
String |
getStandardLabelFormat(int type)
|
String |
getStateInfo()
|
String |
getStateInfo(String type,
int width,
int height)
|
(package private) List<List<List<Object>>> |
getStatusChanged(String statusNameList)
|
(package private) StatusManager |
getStatusManager()
|
private Object |
getStereoImage(EnumStereoMode stereoMode)
|
int |
getStrandCount(int type)
|
Map<EnumStructure,float[]> |
getStructureList()
|
String |
getStructureState()
|
float |
getStrutDefaultRadius()
|
float |
getStrutLengthMaximum()
|
boolean |
getStrutsMultiple()
|
int |
getStrutSpacingMinimum()
|
(package private) int |
getSurfaceDistanceMax()
|
SymmetryInterface |
getSymmetry()
|
Object |
getSymmetryInfo(BitSet bsAtoms,
String xyz,
int op,
Point3f pt,
Point3f pt2,
String id,
int type)
|
String |
getSymmetryInfoAsString()
|
String |
getSymmetryOperation(String spaceGroup,
int symop,
Point3f pt1,
Point3f pt2,
boolean labelOnly)
|
BitSet |
getTaintedAtoms(byte type)
|
boolean |
getTestFlag(int i)
|
boolean |
getTraceAlpha()
|
String |
getTrajectoryInfo()
|
String |
getTransformText()
|
String |
getTranslationScript()
|
float |
getTranslationXPercent()
|
float |
getTranslationYPercent()
|
(package private) float |
getTranslationZPercent()
|
private BitSet |
getUndeletedGroupAtomBits(BitSet bs)
|
float |
getUnitCellInfo(int infoType)
|
String |
getUnitCellInfoText()
|
Matrix4f |
getUnscaledTransformMatrix()
|
boolean |
getUseNumberLocalization()
|
int |
getVanderwaalsMar(int i)
|
int |
getVanderwaalsMar(int i,
EnumVdw type)
|
String |
getVariableList()
|
float |
getVectorScale()
|
float |
getVibrationPeriod()
|
(package private) float |
getVibrationScale()
|
Vector3f |
getVibrationVector(int atomIndex)
|
BitSet |
getVisibleFramesBitSet()
|
BitSet |
getVisibleSet()
|
float |
getVolume(BitSet bs,
String type)
|
boolean |
getWireframeRotation()
|
String |
getWrappedState(boolean isImage,
int width,
int height)
|
String |
getZapName()
|
boolean |
getZeroBasedXyzRasmol()
|
boolean |
getZoomEnabled()
|
(package private) boolean |
getZoomLarge()
|
int |
getZoomPercent()
|
float |
getZoomPercentFloat()
|
float |
getZoomSetting()
|
void |
haltScriptExecution()
|
void |
handleError(Error er,
boolean doClear)
|
boolean |
handleOldJvm10Event(int id,
int x,
int y,
int modifiers,
long time)
|
boolean |
hasCalculatedHBonds(BitSet bsAtoms)
|
boolean |
hasFocus()
|
boolean |
haveFileSet()
|
boolean |
haveFrame()
|
(package private) boolean |
haveModelKit()
|
(package private) boolean |
haveModelSet()
|
boolean |
havePartialCharges()
|
void |
highlight(BitSet bs)
|
void |
highlightBond(int index,
boolean isHover)
|
void |
homePosition()
|
(package private) void |
hoverOff()
|
(package private) void |
hoverOn(int atomIndex,
int action)
|
void |
hoverOn(int x,
int y,
String text)
|
void |
initialize(boolean clearUserVariables)
|
(package private) boolean |
initializeExporter(JmolRendererInterface g3dExport,
String type,
Object output)
|
private void |
initializeModel(boolean isAppend)
|
void |
invertAtomCoord(Point3f pt,
BitSet bs)
|
void |
invertAtomCoord(Point4f plane,
BitSet bs)
|
void |
invertSelected(Point3f pt,
Point4f plane,
int iAtom,
BitSet invAtoms)
|
void |
invertSelection()
|
(package private) boolean |
isAnimationOn()
|
(package private) boolean |
isAntialiased()
|
boolean |
isApplet()
|
(package private) boolean |
isAtomAssignable(int i)
|
boolean |
isAtomPDB(int i)
|
boolean |
isAtomSelected(int atomIndex)
|
boolean |
isBound(int action,
int gesture)
|
boolean |
isDataOnly()
|
boolean |
isFunction(String name)
|
boolean |
isHoverEnabled()
|
boolean |
isInPosition(Vector3f axis,
float degrees)
|
(package private) boolean |
isInSelectionSubset(int atomIndex)
|
boolean |
isJmolDataFrame()
|
boolean |
isJmolDataFrame(int modelIndex)
|
boolean |
isJmolVariable(String key)
|
(package private) boolean |
isKiosk()
|
boolean |
isModelKitMode()
|
boolean |
isModelPDB(int i)
|
boolean |
isNavigating()
|
boolean |
isParallel()
|
boolean |
isPdbSequential()
|
boolean |
isPreviewOnly()
|
boolean |
isRangeSelected()
|
(package private) boolean |
isRepaintPending()
|
boolean |
isScriptEditorVisible()
|
boolean |
isScriptExecuting()
|
boolean |
isSelected(int atomIndex)
|
boolean |
isSignedApplet()
|
(package private) boolean |
isStereoDouble()
|
boolean |
isTrajectory(int modelIndex)
|
boolean |
isVibrationOn()
|
boolean |
isWindowCentered()
|
private void |
jmolTest()
|
String |
jsEval(String strEval)
|
String |
listSavedStates()
|
private String |
loadAtomDataAndReturnError(Object atomSetCollection,
int tokType)
or just apply the data to the current model set |
String |
loadInline(List<Object> arrayData,
boolean isAppend)
does not preserver state, intentionally! |
String |
loadInline(String strModel)
|
String |
loadInline(String[] arrayModels)
|
String |
loadInline(String[] arrayModels,
boolean isAppend)
|
String |
loadInline(String strModel,
boolean isAppend)
|
String |
loadInline(String strModel,
char newLine)
|
String |
loadInline(String strModel,
char newLine,
boolean isAppend,
Map<String,Object> htParams)
|
String |
loadModelFromFile(String fullPathName,
String fileName,
String[] fileNames,
Object reader,
boolean isAppend,
Map<String,Object> htParams,
StringBuffer loadScript,
int tokType)
Used by the ScriptEvaluator LOAD command to open one or more files. |
void |
loadShape(int shapeID)
|
void |
log(String data)
|
boolean |
logCommands()
|
int[] |
makeConnections(float minDistance,
float maxDistance,
int order,
int connectOperation,
BitSet bsA,
BitSet bsB,
BitSet bsBonds,
boolean isBonds,
boolean addGroup,
float energy)
|
boolean |
menuEnabled()
|
void |
mergeShapes(Shape[] newShapes)
|
void |
minimize(int steps,
float crit,
BitSet bsSelected,
BitSet bsFixed,
float rangeFixed,
boolean addHydrogen,
boolean isSilent,
boolean asScript)
|
boolean |
modelHasVibrationVectors(int modelIndex)
|
(package private) boolean |
modelSetHasVibrationVectors()
|
void |
move(Vector3f dRot,
float dZoom,
Vector3f dTrans,
float dSlab,
float floatSecondsTotal,
int fps)
|
(package private) void |
moveAtoms(Matrix3f mNew,
Matrix3f matrixRotate,
Vector3f translation,
Point3f center,
boolean isInternal,
BitSet bsAtoms)
|
protected void |
moveAtomWithHydrogens(int atomIndex,
int deltaX,
int deltaY,
int deltaZ,
BitSet bsAtoms)
|
void |
moveSelected(int deltaX,
int deltaY,
int deltaZ,
int x,
int y,
BitSet bsSelected,
boolean isTranslation,
boolean asAtoms)
|
void |
moveTo(float floatSecondsTotal,
Point3f center,
Vector3f rotAxis,
float degrees,
Matrix3f rotationMatrix,
float zoom,
float xTrans,
float yTrans,
float rotationRadius,
Point3f navCenter,
float xNav,
float yNav,
float navDepth)
|
private void |
moveUpdate(float floatSecondsTotal)
|
(package private) boolean |
mustRenderFlag()
|
void |
navigate(float timeSeconds,
Point3f center)
|
void |
navigate(float timeSeconds,
Point3f[][] pathGuide)
|
void |
navigate(float timeSeconds,
Point3f[] path,
float[] theta,
int indexStart,
int indexEnd)
|
void |
navigate(float timeSeconds,
Vector3f rotAxis,
float degrees)
|
(package private) void |
navigate(int keyWhere,
int modifiers)
|
void |
navigateSurface(float timeSeconds,
String name)
|
void |
navTranslate(float timeSeconds,
Point3f center)
|
void |
navTranslatePercent(float timeSeconds,
float x,
float y)
|
void |
notifyError(String errType,
String errMsg,
String errMsgUntranslated)
|
void |
notifyMinimizationStatus()
|
int |
notifyMouseClicked(int x,
int y,
int action,
int mode)
|
void |
notifyViewerRepaintDone()
|
String |
openDOM(Object DOMNode)
applet DOM method -- does not preserve state |
String |
openFile(String fileName)
for JmolSimpleViewer -- external applications only |
void |
openFileAsynchronously(String fileName)
opens a file as a model, a script, or a surface via the creation of a script that is queued \t at the beginning disallows script option - used by JmolFileDropper and JmolPanel file-open actions - sets up a script to load the file |
String |
openFiles(String[] fileNames)
for JmolSimpleViewer -- external applications only |
String |
openReader(String fullPathName,
String fileName,
Reader reader)
Opens the file, given an already-created reader. |
String |
openStringInline(String strModel)
|
private String |
openStringInline(String strModel,
Map<String,Object> htParams,
boolean isAppend)
|
private String |
openStringsInline(String[] arrayModels,
Map<String,Object> htParams,
boolean isAppend)
|
void |
pauseScriptExecution()
|
void |
popHoldRepaint()
|
void |
popHoldRepaint(String why)
|
(package private) void |
popupMenu(int x,
int y,
char type)
|
void |
processEvent(int groupID,
int eventType,
int touchID,
int iData,
Point3f pt,
long time)
|
String |
prompt(String label,
String data,
String[] list,
boolean asButtons)
|
void |
pushHoldRepaint()
|
void |
pushHoldRepaint(String why)
|
void |
rebond()
|
void |
rebond(boolean isStateScript)
|
void |
refresh(int mode,
String strWhy)
initiate a repaint/update sequence if it has not already been requested. |
void |
refreshMeasures(boolean andStopMinimization)
|
void |
releaseScreenImage()
|
String |
removeCommand()
Removes one command from the command history |
void |
removeSelectionListener(JmolSelectionListener listener)
|
void |
removeUserVariable(String key)
|
private void |
render()
|
private void |
render1(Object g,
Object img,
int x,
int y)
|
void |
renderScreenImage(Object g,
int width,
int height)
|
void |
renderScreenImage(Object gLeft,
Object gRight,
int width,
int height)
an added class for rendering stereo in two independent applets |
(package private) void |
repaint()
|
(package private) void |
reportSelection(String msg)
|
void |
requestRepaintAndWait()
|
void |
reset(boolean includingSpin)
|
void |
resetAromatic()
|
void |
resetBioshapes(BitSet bsAllAtoms)
|
void |
resetError()
|
void |
resetShapes()
|
private void |
resizeImage(int width,
int height,
boolean isImageWrite,
boolean isExport,
boolean isReset)
|
boolean |
restoreBonds(String saveName)
|
(package private) void |
restoreModelOrientation(int modelIndex)
|
(package private) void |
restoreModelRotation(int modelIndex)
|
boolean |
restoreOrientation(String saveName,
float timeSeconds)
|
void |
restoreRotation(String saveName,
float timeSeconds)
|
boolean |
restoreSelection(String saveName)
|
void |
resumeScriptExecution()
|
void |
rotateAboutPointsInternal(Point3f point1,
Point3f point2,
float degreesPerSecond,
float endDegrees,
boolean isSpin,
BitSet bsSelected,
Vector3f translation,
List<Point3f> finalPoints)
|
(package private) void |
rotateArcBall(int x,
int y,
float factor)
|
void |
rotateAxisAngleAtCenter(Point3f rotCenter,
Vector3f rotAxis,
float degreesPerSecond,
float endDegrees,
boolean isSpin,
BitSet bsSelected)
|
void |
rotateFront()
|
void |
rotatePoint(Point3f pt,
Point3f ptRot)
|
(package private) void |
rotateSelected(float deltaX,
float deltaY,
BitSet bsSelected)
|
void |
rotateX(float angleRadians)
|
void |
rotateX(int angleDegrees)
|
(package private) void |
rotateXYBy(float xDelta,
float yDelta)
|
void |
rotateY(float angleRadians)
|
void |
rotateY(int angleDegrees)
|
void |
rotateZ(float angleRadians)
|
void |
rotateZBy(int zDelta,
int x,
int y)
|
boolean |
runScriptImmediately(String script)
|
void |
saveBonds(String saveName)
|
void |
saveCoordinates(String saveName,
BitSet bsSelected)
|
(package private) void |
saveModelOrientation()
|
void |
saveOrientation(String saveName)
|
void |
saveSelection(String saveName)
|
void |
saveState(String saveName)
|
void |
saveStructure(String saveName)
|
float |
scaleToPerspective(int z,
float sizeAngstroms)
|
short |
scaleToScreen(int z,
int milliAngstroms)
|
String |
script(String strScript)
|
Object |
scriptCheck(String strScript)
|
private Object |
scriptCheck(String strScript,
boolean returnContext)
|
void |
scriptEcho(String strEcho)
|
void |
scriptStatus(String strStatus)
|
void |
scriptStatus(String strStatus,
String statusMessage)
|
void |
scriptStatus(String strStatus,
String statusMessage,
int msWalltime,
String strErrorMessageUntranslated)
|
String |
scriptWait(String strScript)
|
Object |
scriptWaitStatus(String strScript,
String statusList)
|
void |
select(BitSet bs,
boolean isGroup,
Boolean addRemove,
boolean isQuiet)
|
void |
selectAll()
|
void |
selectBonds(BitSet bs)
|
void |
setAnimation(int tok)
|
void |
setAnimationDirection(int direction)
|
void |
setAnimationFps(int fps)
|
void |
setAnimationOn(boolean animationOn)
|
void |
setAnimationRange(int modelIndex1,
int modelIndex2)
|
void |
setAnimationReplayMode(EnumAnimationMode replayMode,
float firstFrameDelay,
float lastFrameDelay)
|
private void |
setAntialias(int mode,
boolean TF)
|
void |
setAppendNew(boolean value)
|
void |
setAppletContext(String fullName,
URL documentBase,
URL codeBase,
String commandOptions)
|
(package private) void |
setApplySymmetryToBonds(boolean TF)
|
void |
setAtomCoord(BitSet bs,
int tokType,
Object xyzValues)
|
void |
setAtomCoord(int atomIndex,
float x,
float y,
float z)
|
void |
setAtomCoordRelative(int atomIndex,
float x,
float y,
float z)
|
void |
setAtomCoordRelative(Tuple3f offset,
BitSet bs)
|
void |
setAtomData(int type,
String name,
String coordinateData,
boolean isDefault)
|
void |
setAtomLabel(String value,
int i)
|
private void |
setAtomPickingOption(String option)
|
void |
setAtomProperty(BitSet bs,
int tok,
int iValue,
float fValue,
String sValue,
float[] values,
String[] list)
|
void |
setAutoBond(boolean TF)
|
private void |
setAxesModeMolecular(boolean TF)
|
(package private) void |
setAxesModeUnitCell(boolean TF)
|
void |
setAxesOrientationRasmol(boolean TF)
|
(package private) void |
setAxesScale(float scale)
|
void |
setBackgroundImage(String fileName,
Object image)
|
void |
setBackgroundModelIndex(int modelIndex)
|
private void |
setBondPickingOption(String option)
|
void |
setBondTolerance(float bondTolerance)
|
void |
setBooleanProperty(String key,
boolean value)
|
private void |
setBooleanProperty(String key,
int tok,
boolean value)
|
void |
setBoundBox(Point3f pt1,
Point3f pt2,
boolean byCorner,
float scale)
|
void |
setCenterAt(String relativeTo,
Point3f pt)
|
void |
setCenterBitSet(BitSet bsCenter,
boolean doScale)
|
void |
setCenterSelected()
|
void |
setColorBackground(String colorName)
|
BitSet |
setConformation()
|
void |
setCurrentColorRange(float[] data,
BitSet bs)
|
void |
setCurrentColorRange(float min,
float max)
|
void |
setCurrentColorRange(String label)
|
void |
setCurrentModelIndex(int modelIndex)
|
void |
setCurrentModelIndex(int modelIndex,
boolean clearBackground)
|
void |
setCurrentUnitCellOffset(int ijk)
|
void |
setCurrentUnitCellOffset(Point3f pt)
|
void |
setCursor(int cursor)
|
void |
setData(String type,
Object[] data,
int atomCount,
int matchField,
int matchFieldColumnCount,
int field,
int fieldColumnCount)
|
void |
setDebugScript(boolean debugScript)
|
private void |
setDefaultColors(boolean isRasmol)
|
void |
setDefaultLattice(Point3f ptLattice)
|
private void |
setDefaults()
|
private void |
setDefaults(String type)
|
(package private) void |
setDefaultVdw(String type)
|
(package private) void |
setDynamicMeasurements(boolean TF)
|
void |
setEchoStateActive(boolean TF)
|
void |
setElementArgb(int elementNumber,
int argb)
|
private String |
setErrorMessage(String errMsg)
|
private String |
setErrorMessage(String errMsg,
String errMsgUntranslated)
|
void |
setFileInfo(String[] fileInfo)
|
private void |
setFileLoadStatus(FileManager.EnumFileStatus ptLoad,
String fullPathName,
String fileName,
String modelName,
String strError)
|
void |
setFloatProperty(String key,
float value)
|
private void |
setFloatProperty(String key,
int tok,
float value)
|
void |
setFocus()
|
void |
setFormalCharges(int formalCharge)
|
(package private) void |
setFrameOffset(int modelIndex)
|
void |
setFrameOffsets(BitSet bsAtoms)
|
void |
setFrameTitle(int modelIndex,
String title)
|
void |
setFrameTitle(Object title)
|
(package private) void |
setFrameVariables(int firstModelIndex,
int lastModelIndex)
|
void |
setFrankOn(boolean TF)
|
void |
setHoverLabel(String strLabel)
|
(package private) void |
setInMotion(boolean inMotion)
|
void |
setIntProperty(String key,
int value)
|
private void |
setIntProperty(String key,
int tok,
int value)
|
void |
setIteratorForAtom(AtomIndexIterator iterator,
int atomIndex,
float distance)
|
void |
setIteratorForPoint(AtomIndexIterator iterator,
int modelIndex,
Point3f pt,
float distance)
|
void |
setJmolCallbackListener(JmolCallbackListener jmolCallbackListener)
|
void |
setJmolDataFrame(String type,
int modelIndex,
int dataIndex)
|
void |
setJmolDefaults()
|
void |
setJmolStatusListener(JmolStatusListener jmolStatusListener)
|
void |
setLigandModel(String id,
String data)
|
Object |
setLoadFormat(String name,
char type,
boolean withPrefix)
|
private Map<String,Object> |
setLoadParameters(Map<String,Object> htParams,
boolean isAppend)
|
private String |
setLogFile(String value)
|
void |
setMarBond(short marBond)
|
private void |
setMaximumSize(int x)
|
void |
setMeasureDistanceUnits(String units)
|
void |
setMenu(String fileOrText,
boolean isFile)
|
void |
setMeshCreator(Object meshCreator)
an external applet or app with class that extends org.jmol.jvxl.MeshCreator might execute: org.jmol.viewer.Viewer viewer = applet.getViewer(); viewer.setMeshCreator(this); then that class's updateMesh(String id) method will be called whenever a mesh is rendered. |
void |
setMinBondDistance(float minBondDistance)
|
private void |
setModelKitMode(boolean value)
|
void |
setModelVisibility()
|
void |
setModeMouse(int modeMouse)
|
void |
setMotionFixedAtoms(BitSet bs)
|
void |
setMouseEnabled(boolean TF)
|
private BitSet |
setMovableBitSet(BitSet bsSelected,
boolean checkMolecule)
|
void |
setNavigationDepthPercent(float timeSec,
float percent)
|
private void |
setNavigationMode(boolean TF)
|
void |
setNavOn(boolean navOn)
|
void |
setNavXYZ(float x,
float y,
float z)
|
void |
setNewRotationCenter(Point3f center)
|
void |
setNoneSelected(boolean noneSelected)
|
void |
setObjectArgb(String name,
int argb)
|
(package private) void |
setObjectColor(String name,
String colorName)
|
void |
setObjectMad(int iShape,
String name,
int mad)
|
boolean |
setParallel(boolean TF)
|
void |
setPdbConectBonding(boolean isAuto,
boolean isStateScript)
|
(package private) void |
setPendingMeasurement(MeasurementPending measurementPending)
|
void |
setPercentVdwAtom(int value)
|
void |
setPerspectiveDepth(boolean perspectiveDepth)
|
private void |
setPerspectiveModel(int mode)
|
void |
setPicked(int iAtom)
|
(package private) void |
setPickingMode(String strMode,
int pickingMode)
|
(package private) void |
setPickingStyle(String style,
int pickingStyle)
|
void |
setPrivateKeyForShape(int iShape)
|
void |
setPropertyColorScheme(String scheme,
boolean isTranslucent,
boolean isOverloaded)
|
void |
setProteinType(EnumStructure type,
BitSet bs)
|
void |
setRasmolDefaults()
|
private void |
setRefreshing(boolean TF)
|
(package private) void |
setRotateBondIndex(int index)
|
(package private) void |
setRotationMatrix(Matrix3f rotationMatrix)
|
void |
setRotationRadius(float angstroms,
boolean doAll)
|
void |
setRubberbandArgb(int argb)
|
void |
setScreenDimension(int width,
int height)
|
private void |
setScriptQueue(boolean TF)
|
void |
setSelectedAtom(int atomIndex,
boolean TF)
|
void |
setSelectionHalos(boolean TF)
|
void |
setSelectionSet(BitSet set)
|
void |
setSelectionSubset(BitSet subset)
|
void |
setShapeErrorState(int shapeID,
String state)
|
void |
setShapeProperty(int shapeID,
String propertyName,
Object value)
|
void |
setShapeSize(int shapeID,
int mad,
BitSet bsSelected)
|
void |
setShapeSize(int shapeID,
RadiusData rd,
BitSet bsAtoms)
|
void |
setShowAxes(boolean value)
|
void |
setShowBbcage(boolean value)
|
void |
setShowHydrogens(boolean TF)
|
void |
setShowMeasurements(boolean TF)
|
void |
setShowUnitCell(boolean value)
|
void |
setSlabDepthInternal(boolean isDepth)
|
void |
setSmilesString(String s)
|
void |
setSpin(String key,
int value)
|
void |
setSpinOn(boolean spinOn)
|
void |
setStateScriptVersion(String version)
|
void |
setStatusAtomHovered(int atomIndex,
String info)
|
void |
setStatusAtomPicked(int atomIndex,
String info)
|
(package private) void |
setStatusFrameChanged(int frameNo)
|
void |
setStatusMeasuring(String status,
int intInfo,
String strMeasure,
float value)
|
void |
setStatusResized(int width,
int height)
|
void |
setStereoMode(int[] twoColors,
EnumStereoMode stereoMode,
float degrees)
|
private void |
setStrandCount(int type,
int value)
|
private void |
setStringProperty(String key,
int tok,
String value)
|
void |
setStringProperty(String key,
String value)
|
void |
setStructureList(float[] list,
EnumStructure type)
|
private void |
setSync()
|
(package private) void |
setSyncDriver(int mode)
|
private void |
setSyncTarget(int mode,
boolean TF)
|
void |
setTainted(boolean TF)
|
void |
setTaintedAtoms(BitSet bs,
byte type)
|
void |
setTimeout(String name,
int mSec,
String script)
|
void |
setTrajectory(BitSet bsModels)
|
(package private) void |
setTrajectory(int modelIndex)
|
void |
setTransformManager(TransformManager transformManager)
for an external application |
private void |
setTransformManagerDefaults()
|
void |
setUserScale(int[] scale)
|
ScriptVariable |
setUserVariable(String name,
ScriptVariable value)
|
void |
setVectorScale(float scale)
|
void |
setVibrationOff()
|
void |
setVibrationPeriod(float period)
|
void |
setVibrationScale(float scale)
|
void |
setZslabPoint(Point3f pt)
|
void |
show2D(String smiles)
|
void |
showConsole(boolean showConsole)
|
(package private) void |
showEditor(String[] file_text)
|
void |
showMessage(String s)
|
boolean |
showModelSetDownload()
|
void |
showParameter(String key,
boolean ifNotSet,
int nMax)
|
void |
showString(String str,
boolean isPrint)
|
String |
showTimeout(String name)
|
void |
showUrl(String urlString)
|
(package private) void |
slabByPixels(int pixels)
|
(package private) void |
slabDepthByPixels(int pixels)
|
void |
slabInternal(Point4f plane,
boolean isDepth)
|
void |
slabReset()
|
void |
slabToPercent(int percentSlab)
|
void |
spinXYBy(int xDelta,
int yDelta,
float speed)
|
void |
startSpinningAxis(Point3f pt1,
Point3f pt2,
boolean isClockwise)
|
void |
stepScriptExecution()
|
private void |
stopAnimationThreads(String fromWhere)
|
(package private) void |
stopMinimization()
|
void |
stopMotion()
|
String |
streamFileData(String fileName,
String type,
String type2,
int modelIndex,
Object[] parameters)
|
void |
syncScript(String script,
String applet,
int port)
|
void |
toCartesian(Point3f pt,
boolean asAbsolute)
absolute or relative to origin of UNITCELL {x y z} |
void |
toFractional(Point3f pt,
boolean asAbsolute)
absolute or relative to origin of UNITCELL {x y z} |
void |
togglePickingLabel(BitSet bs)
|
void |
toUnitCell(Point3f pt,
Point3f offset)
relative to origin without regard to UNITCELL {x y z} |
Point3i |
transformPoint(Point3f pointAngstroms)
|
void |
transformPoint(Point3f pointAngstroms,
Point3f pointScreen)
|
void |
transformPoint(Point3f pointAngstroms,
Point3i pointScreen)
|
Point3i |
transformPoint(Point3f pointAngstroms,
Vector3f vibrationVector)
|
void |
transformPointNoClip(Point3f pointAngstroms,
Point3f pt)
|
void |
transformPoints(Point3f[] pointsAngstroms,
Point3i[] pointsScreens)
|
void |
transformVector(Vector3f vectorAngstroms,
Vector3f vectorTransformed)
|
void |
translate(char xyz,
float x,
char type,
BitSet bsAtoms)
|
void |
translateXYBy(int xDelta,
int yDelta)
|
void |
triggerTimeout(String name)
|
void |
unBindAction(String desc,
String name)
|
(package private) void |
undoClear()
|
void |
undoMoveAction(int action,
int n)
|
(package private) void |
undoMoveAction(int taintedAtom,
int type,
boolean clearRedo)
|
float |
unscaleToScreen(float z,
float screenDistance)
|
void |
unsetProperty(String name)
|
void |
unTransformPoint(Point3f pointScreen,
Point3f pointAngstroms)
|
(package private) boolean |
useArcBall()
|
boolean |
useMinimizationThread()
|
boolean |
usingScriptQueue()
|
boolean |
waitForMoveTo()
|
String |
writeCurrentFile(OutputStream os)
|
void |
writeTextFile(String fileName,
String data)
|
void |
zap(boolean notify,
boolean resetUndo,
boolean zapModelKit)
|
private void |
zap(String msg)
|
(package private) void |
zoomBy(int pixels)
|
(package private) void |
zoomByFactor(float factor,
int x,
int y)
|
int |
zValueFromPercent(int zPercent)
|
| Methods inherited from class org.jmol.api.JmolViewer |
|---|
allocateViewer, checkOption, getBooleanProperty, renderScreenImage, setConsole |
| Methods inherited from class org.jmol.api.JmolSimpleViewer |
|---|
allocateSimpleViewer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Object display
private Graphics3D g3d
private JmolAdapter modelAdapter
private CommandHistory commandHistory
private ColorManager colorManager
public ScriptCompiler compiler
public Map<String,Object> definedAtomSets
private SymmetryInterface symmetry
private SmilesMatcherInterface smilesMatcher
ScriptEvaluator eval
private AnimationManager animationManager
private DataManager dataManager
private FileManager fileManager
private ActionManager actionManager
private ShapeManager shapeManager
private ModelManager modelManager
private ModelSet modelSet
private RepaintManager repaintManager
private ScriptManager scriptManager
private SelectionManager selectionManager
private StateManager stateManager
private StateManager.GlobalSettings global
private StatusManager statusManager
private TempArray tempManager
private TransformManager transformManager
private String strJavaVendor
private String strJavaVersion
private String strOSName
private String htmlName
private String fullName
private String syncId
private String appletDocumentBase
private String appletCodeBase
private String logFilePath
private boolean multiTouch
private boolean isSilent
private boolean isApplet
private boolean isPreviewOnly
public boolean haveDisplay
public boolean autoExit
private boolean mustRender
private boolean isPrintOnly
private boolean isCmdLine_C_Option
private boolean isCmdLine_c_or_C_Option
private boolean listCommands
private boolean useCommandThread
private boolean isSignedApplet
private boolean isSignedAppletLocal
private boolean isDataOnly
private String appletContext
private boolean mouseEnabled
private boolean noneSelected
private Map<String,Object> ligandModels
private Map<String,Boolean> ligandModelSet
public static final String STATE_VERSION_STAMP
BitSet bsFrameOffsets
Point3f[] frameOffsets
boolean wasInMotion
int motionEventNumber
private boolean refreshing
private boolean axesAreTainted
final Dimension dimScreen
private int maximumSize
private float imageFontScaling
private boolean antialiasDisplay
String interruptScript
int scriptIndex
boolean isScriptQueued
int hoverAtomIndex
String hoverText
boolean hoverEnabled
private int currentCursor
int prevFrame
private String language
private RadiusData rd
private boolean frankOn
private boolean scriptEditorVisible
JmolAppConsoleInterface appConsole
JmolScriptEditorInterface scriptEditor
JmolPopupInterface jmolpopup
private JmolModelKitInterface modelkit
boolean isTainted
private boolean movingSelected
private boolean showSelected
private int rotateBondIndex
private int rotatePrev1
private int rotatePrev2
private BitSet bsRotateBranch
private boolean creatingImage
public static final String SYNC_GRAPHICS_MESSAGE
public static final String SYNC_NO_GRAPHICS_MESSAGE
private String errorMessage
private String errorMessageUntranslated
private int currentShapeID
private String currentShapeState
private double privateKey
private String logFile
private boolean isKiosk
private MinimizerInterface minimizer
private Object executor
public static int nProcessors
boolean displayLoadErrors
boolean isParallel
private static final int MAX_ACTION_UNDO
private final List<String> actionStates
private final List<String> actionStatesRedo
private boolean undoWorking
private int stateScriptVersionInt
Map<String,String[][]> htPdbBondInfo
| Constructor Detail |
|---|
private Viewer(Object display,
JmolAdapter modelAdapter,
String commandOptions)
| Method Detail |
|---|
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic JmolAdapter getModelAdapter()
getModelAdapter in class JmolViewerpublic SymmetryInterface getSymmetry()
public Object getSymmetryInfo(BitSet bsAtoms,
String xyz,
int op,
Point3f pt,
Point3f pt2,
String id,
int type)
private void clearModelDependentObjects()
public SmilesMatcherInterface getSmilesMatcher()
public BitSet getSmartsMatch(String smarts,
BitSet bsSelected)
getSmartsMatch in class JmolViewerStateManager.GlobalSettings getGlobalSettings()
StatusManager getStatusManager()
public ApiPlatform getApiPlatform()
public static JmolViewer allocateViewer(Object display,
JmolAdapter modelAdapter,
String fullName,
URL documentBase,
URL codeBase,
String commandOptions,
JmolStatusListener statusListener)
display - either DisplayPanel or WrappedAppletmodelAdapter - the model readerfullName - or nulldocumentBase - or nullcodeBase - or nullcommandOptions - or nullstatusListener - or null
public boolean isApplet()
isApplet in class JmolViewerpublic boolean isPreviewOnly()
public String getAppletContext()
public void setAppletContext(String fullName,
URL documentBase,
URL codeBase,
String commandOptions)
setAppletContext in class JmolViewerpublic boolean isDataOnly()
public static String getJmolVersion()
public String getExportDriverList()
String getHtmlName()
boolean mustRenderFlag()
public Object getDisplay()
getDisplay in class JmolViewer
public boolean handleOldJvm10Event(int id,
int x,
int y,
int modifiers,
long time)
handleOldJvm10Event in class JmolViewerpublic void reset(boolean includingSpin)
public void homePosition()
homePosition in class JmolViewerMap<String,Object> getAppletInfo()
public void initialize(boolean clearUserVariables)
public String listSavedStates()
public void saveOrientation(String saveName)
public boolean restoreOrientation(String saveName,
float timeSeconds)
public void restoreRotation(String saveName,
float timeSeconds)
void saveModelOrientation()
public StateManager.Orientation getOrientation()
public String getSavedOrienationText(String name)
void restoreModelOrientation(int modelIndex)
void restoreModelRotation(int modelIndex)
public void saveBonds(String saveName)
public boolean restoreBonds(String saveName)
public void saveState(String saveName)
public void deleteSavedState(String saveName)
public String getSavedState(String saveName)
public void saveStructure(String saveName)
public String getSavedStructure(String saveName)
public void saveCoordinates(String saveName,
BitSet bsSelected)
public String getSavedCoordinates(String saveName)
public void saveSelection(String saveName)
public boolean restoreSelection(String saveName)
public Matrix4f getMatrixtransform()
public Quaternion getRotationQuaternion()
public float getRotationRadius()
getRotationRadius in class JmolViewer
public void setRotationRadius(float angstroms,
boolean doAll)
public Point3f getRotationCenter()
public void setCenterAt(String relativeTo,
Point3f pt)
public void setCenterBitSet(BitSet bsCenter,
boolean doScale)
public void setNewRotationCenter(Point3f center)
public Point3f getNavigationCenter()
public float getNavigationDepthPercent()
void navigate(int keyWhere,
int modifiers)
public Point3f getNavigationOffset()
float getNavigationOffsetPercent(char XorY)
public boolean isNavigating()
public boolean isInPosition(Vector3f axis,
float degrees)
public void move(Vector3f dRot,
float dZoom,
Vector3f dTrans,
float dSlab,
float floatSecondsTotal,
int fps)
public boolean waitForMoveTo()
public void stopMotion()
void setRotationMatrix(Matrix3f rotationMatrix)
public void moveTo(float floatSecondsTotal,
Point3f center,
Vector3f rotAxis,
float degrees,
Matrix3f rotationMatrix,
float zoom,
float xTrans,
float yTrans,
float rotationRadius,
Point3f navCenter,
float xNav,
float yNav,
float navDepth)
private void moveUpdate(float floatSecondsTotal)
String getMoveToText(float timespan)
public void navigate(float timeSeconds,
Point3f[] path,
float[] theta,
int indexStart,
int indexEnd)
public void navigate(float timeSeconds,
Point3f center)
public void navigate(float timeSeconds,
Point3f[][] pathGuide)
public void navigateSurface(float timeSeconds,
String name)
public void navigate(float timeSeconds,
Vector3f rotAxis,
float degrees)
public void navTranslate(float timeSeconds,
Point3f center)
public void navTranslatePercent(float timeSeconds,
float x,
float y)
public void setMouseEnabled(boolean TF)
public void processEvent(int groupID,
int eventType,
int touchID,
int iData,
Point3f pt,
long time)
processEvent in class JmolViewervoid zoomBy(int pixels)
void zoomByFactor(float factor,
int x,
int y)
void rotateXYBy(float xDelta,
float yDelta)
public void spinXYBy(int xDelta,
int yDelta,
float speed)
public void rotateZBy(int zDelta,
int x,
int y)
void rotateSelected(float deltaX,
float deltaY,
BitSet bsSelected)
private BitSet setMovableBitSet(BitSet bsSelected,
boolean checkMolecule)
public void translateXYBy(int xDelta,
int yDelta)
void centerAt(int x,
int y,
Point3f pt)
public void rotateFront()
rotateFront in class JmolViewerpublic void rotateX(float angleRadians)
rotateX in class JmolViewerpublic void rotateY(float angleRadians)
rotateY in class JmolViewerpublic void rotateZ(float angleRadians)
rotateZ in class JmolViewerpublic void rotateX(int angleDegrees)
rotateX in class JmolViewerpublic void rotateY(int angleDegrees)
rotateY in class JmolViewer
public void translate(char xyz,
float x,
char type,
BitSet bsAtoms)
public float getTranslationXPercent()
public float getTranslationYPercent()
float getTranslationZPercent()
public String getTranslationScript()
public int getZoomPercent()
getZoomPercent in class JmolViewerpublic float getZoomSetting()
public float getZoomPercentFloat()
getZoomPercentFloat in class JmolViewerpublic float getMaxZoomPercent()
public void slabReset()
public boolean getZoomEnabled()
public boolean getSlabEnabled()
public boolean getSlabByMolecule()
public boolean getSlabByAtom()
void slabByPixels(int pixels)
void depthByPixels(int pixels)
void slabDepthByPixels(int pixels)
public void slabInternal(Point4f plane,
boolean isDepth)
public void slabToPercent(int percentSlab)
public void depthToPercent(int percentDepth)
public void setSlabDepthInternal(boolean isDepth)
public int zValueFromPercent(int zPercent)
public Matrix4f getUnscaledTransformMatrix()
getUnscaledTransformMatrix in class JmolViewervoid finalizeTransformParameters()
public void rotatePoint(Point3f pt,
Point3f ptRot)
public Point3i transformPoint(Point3f pointAngstroms)
public Point3i transformPoint(Point3f pointAngstroms,
Vector3f vibrationVector)
public void transformPoint(Point3f pointAngstroms,
Point3i pointScreen)
public void transformPointNoClip(Point3f pointAngstroms,
Point3f pt)
public void transformPoint(Point3f pointAngstroms,
Point3f pointScreen)
public void transformPoints(Point3f[] pointsAngstroms,
Point3i[] pointsScreens)
public void transformVector(Vector3f vectorAngstroms,
Vector3f vectorTransformed)
public void unTransformPoint(Point3f pointScreen,
Point3f pointAngstroms)
public float getScalePixelsPerAngstrom(boolean asAntialiased)
public short scaleToScreen(int z,
int milliAngstroms)
public float unscaleToScreen(float z,
float screenDistance)
public float scaleToPerspective(int z,
float sizeAngstroms)
public void setSpin(String key,
int value)
public String getSpinState()
public void setSpinOn(boolean spinOn)
boolean getSpinOn()
public void setNavOn(boolean navOn)
boolean getNavOn()
public void setNavXYZ(float x,
float y,
float z)
public String getOrientationText(int type,
String name)
Map<String,Object> getOrientationInfo()
Matrix3f getMatrixRotate()
public void getAxisAngle(AxisAngle4f axisAngle)
public String getTransformText()
void getRotation(Matrix3f matrixRotation)
public float[] getCurrentColorRange()
private void setDefaultColors(boolean isRasmol)
public float getDefaultTranslucent()
public int getColorArgbOrGray(short colix)
public void setRubberbandArgb(int argb)
public short getColixRubberband()
public void setElementArgb(int elementNumber,
int argb)
public float getVectorScale()
public void setVectorScale(float scale)
setVectorScale in class JmolViewerpublic float getDefaultDrawArrowScale()
float getVibrationScale()
public float getVibrationPeriod()
public boolean isVibrationOn()
public void setVibrationScale(float scale)
setVibrationScale in class JmolViewerpublic void setVibrationOff()
public void setVibrationPeriod(float period)
setVibrationPeriod in class JmolViewer
void setObjectColor(String name,
String colorName)
public void setObjectArgb(String name,
int argb)
public void setBackgroundImage(String fileName,
Object image)
int getObjectArgb(int objId)
public short getObjectColix(int objId)
public String getObjectState(String name)
public void setColorBackground(String colorName)
setColorBackground in class JmolViewerpublic int getBackgroundArgb()
getBackgroundArgb in class JmolViewer
public void setObjectMad(int iShape,
String name,
int mad)
public int getObjectMad(int objId)
public void setPropertyColorScheme(String scheme,
boolean isTranslucent,
boolean isOverloaded)
public String getPropertyColorScheme()
public short getColixBackgroundContrast()
public String getSpecularState()
public short getColixAtomPalette(Atom atom,
byte pid)
public short getColixBondPalette(Bond bond,
int pid)
public String getColorSchemeList(String colorScheme)
public void setUserScale(int[] scale)
public short getColixForPropertyValue(float val)
public Point3f getColorPointForPropertyValue(float val)
public void select(BitSet bs,
boolean isGroup,
Boolean addRemove,
boolean isQuiet)
public void setSelectionSet(BitSet set)
setSelectionSet in class JmolViewerpublic void selectBonds(BitSet bs)
public void display(BitSet bs,
boolean isDisplay,
boolean isGroup,
Boolean addRemove,
boolean isQuiet)
private BitSet getUndeletedGroupAtomBits(BitSet bs)
public BitSet getHiddenSet()
public boolean isSelected(int atomIndex)
boolean isInSelectionSubset(int atomIndex)
void reportSelection(String msg)
public Point3f getAtomSetCenter(BitSet bs)
private void clearAtomSets()
public void selectAll()
selectAll in class JmolViewerpublic void setNoneSelected(boolean noneSelected)
public Boolean getNoneSelected()
public void clearSelection()
clearSelection in class JmolViewerpublic void setSelectionSubset(BitSet subset)
public BitSet getSelectionSubset()
public void invertSelection()
public BitSet getSelectionSet(boolean includeDeleted)
public void setSelectedAtom(int atomIndex,
boolean TF)
public boolean isAtomSelected(int atomIndex)
public int getSelectionCount()
getSelectionCount in class JmolViewerpublic void setFormalCharges(int formalCharge)
public void addSelectionListener(JmolSelectionListener listener)
addSelectionListener in class JmolViewerpublic void removeSelectionListener(JmolSelectionListener listener)
removeSelectionListener in class JmolViewer
BitSet getAtomBitSet(ScriptEvaluator eval,
Object atomExpression)
public BitSet getAtomBitSet(Object atomExpression)
List<Integer> getAtomBitSetVector(Object atomExpression)
public void setModeMouse(int modeMouse)
setModeMouse in class JmolViewerRectangle getRubberBandSelection()
public boolean isBound(int action,
int gesture)
public int getCursorX()
public int getCursorY()
String getDefaultDirectory()
public BufferedInputStream getBufferedInputStream(String fullPathName)
getBufferedInputStream in interface AtomDataServer
public Object getBufferedReaderOrErrorMessageFromName(String name,
String[] fullPathNameReturn,
boolean isBinary)
private Map<String,Object> setLoadParameters(Map<String,Object> htParams,
boolean isAppend)
public void openFileAsynchronously(String fileName)
openFileAsynchronously in class JmolViewerfileName - public String openFile(String fileName)
openFile in class JmolSimpleViewerfileName -
public String openFiles(String[] fileNames)
openFiles in class JmolSimpleViewerfileNames -
public String openReader(String fullPathName,
String fileName,
Reader reader)
openReader in class JmolViewerfullPathName - fileName - reader -
public String openDOM(Object DOMNode)
openDOM in class JmolSimpleViewerDOMNode -
public String loadModelFromFile(String fullPathName,
String fileName,
String[] fileNames,
Object reader,
boolean isAppend,
Map<String,Object> htParams,
StringBuffer loadScript,
int tokType)
fullPathName - TODOfileName - fileNames - reader - TODOisAppend - htParams - loadScript - tokType -
public void setLigandModel(String id,
String data)
public Object getLigandModel(String id)
id - if null, clear "bad" entries from the set.
private Object getAtomSetCollection(String fileName,
boolean isAppend,
Map<String,Object> htParams,
StringBuffer loadScript)
fileName - isAppend - htParams - loadScript - only necessary for string reading
public String openStringInline(String strModel)
openStringInline in class JmolSimpleViewerpublic String loadInline(String strModel)
loadInline in class JmolViewer
public String loadInline(String strModel,
char newLine)
loadInline in class JmolViewer
public String loadInline(String strModel,
boolean isAppend)
loadInline in class JmolViewerpublic String loadInline(String[] arrayModels)
loadInline in class JmolViewer
public String loadInline(String[] arrayModels,
boolean isAppend)
loadInline in class JmolViewerarrayModels - and array of models, each of which is a String
public String loadInline(List<Object> arrayData,
boolean isAppend)
loadInline in class JmolViewerarrayData - isAppend -
public String loadInline(String strModel,
char newLine,
boolean isAppend,
Map<String,Object> htParams)
public String fixInlineString(String strModel,
char newLine)
private String openStringInline(String strModel,
Map<String,Object> htParams,
boolean isAppend)
private String openStringsInline(String[] arrayModels,
Map<String,Object> htParams,
boolean isAppend)
public char getInlineChar()
String getDataSeparator()
private String createModelSetAndReturnError(Object atomSetCollection,
boolean isAppend,
StringBuffer loadScript)
atomSetCollection - isAppend - loadScript - if null, then some special method like DOM; turn of preserveState
private String loadAtomDataAndReturnError(Object atomSetCollection,
int tokType)
atomSetCollection - tokType -
public String writeCurrentFile(OutputStream os)
public Object getFileAsBytes(String pathName,
OutputStream os)
getFileAsBytes in class JmolViewerpublic String getCurrentFileAsString()
public String getFullPathName()
public String getFileName()
public String[] getFullPathNameOrError(String filename)
filename -
public String getFileAsString(String name)
getFileAsString in class JmolViewer
public String getFileAsString(String name,
int nBytesMax,
boolean doSpecialLoad)
public String getFilePath(String name,
boolean asShortName)
public boolean getFileAsString(String[] data,
int nBytesMax,
boolean doSpecialLoad)
getFileAsString in class JmolViewerpublic String[] getFileInfo()
public void setFileInfo(String[] fileInfo)
public void autoCalculate(int tokProperty)
public float getVolume(BitSet bs,
String type)
int getSurfaceDistanceMax()
public void calculateStraightness()
public Point3f[] calculateSurface(BitSet bsSelected,
float envelopeRadius)
public Map<EnumStructure,float[]> getStructureList()
public void setStructureList(float[] list,
EnumStructure type)
public boolean getDefaultStructureDSSP()
public String getDefaultStructure(BitSet bsAtoms,
BitSet bsAllAtoms)
public String calculateStructures(BitSet bsAtoms,
boolean asDSSP,
boolean setStructure)
public AtomIndexIterator getSelectedAtomIterator(BitSet bsSelected,
boolean isGreaterOnly,
boolean modelZeroBased,
boolean isMultiModel)
getSelectedAtomIterator in interface AtomDataServer
public void setIteratorForAtom(AtomIndexIterator iterator,
int atomIndex,
float distance)
setIteratorForAtom in interface AtomDataServer
public void setIteratorForPoint(AtomIndexIterator iterator,
int modelIndex,
Point3f pt,
float distance)
setIteratorForPoint in interface AtomDataServer
public void fillAtomData(AtomData atomData,
int mode)
fillAtomData in interface AtomDataServer
public ModelCollection.StateScript addStateScript(String script,
boolean addFrameNumber,
boolean postDefinitions)
public ModelCollection.StateScript addStateScript(String script1,
BitSet bsBonds,
BitSet bsAtoms1,
BitSet bsAtoms2,
String script2,
boolean addFrameNumber,
boolean postDefinitions)
public boolean getEchoStateActive()
public void setEchoStateActive(boolean TF)
public void zap(boolean notify,
boolean resetUndo,
boolean zapModelKit)
private void zap(String msg)
void echoMessage(String msg)
private void initializeModel(boolean isAppend)
public String getModelSetName()
getModelSetName in class JmolViewerpublic String getModelSetFileName()
getModelSetFileName in class JmolViewerpublic String getUnitCellInfoText()
public float getUnitCellInfo(int infoType)
public Map<String,Object> getSpaceGroupInfo(String spaceGroup)
public void getPolymerPointsAndVectors(BitSet bs,
List<Point3f[]> vList)
public String getModelSetProperty(String strProp)
public Object getModelSetAuxiliaryInfo(String strKey)
public String getModelSetPathName()
getModelSetPathName in class JmolViewerpublic String getModelSetTypeName()
public boolean haveFrame()
haveFrame in class JmolViewerboolean haveModelSet()
public void clearBfactorRange()
public String getHybridizationAndAxes(int atomIndex,
Vector3f z,
Vector3f x,
String lcaoType)
public BitSet getMoleculeBitSet(int atomIndex)
public BitSet getModelUndeletedAtomsBitSet(int modelIndex)
public BitSet getModelUndeletedAtomsBitSet(BitSet bsModels)
public void excludeAtoms(BitSet bs,
boolean ignoreSubset)
public BitSet getModelBitSet(BitSet atomList,
boolean allTrajectories)
public ModelSet getModelSet()
public String getBoundBoxCommand(boolean withOptions)
public void setBoundBox(Point3f pt1,
Point3f pt2,
boolean byCorner,
float scale)
public Point3f getBoundBoxCenter()
getBoundBoxCenter in class JmolViewerPoint3f getAverageAtomPoint()
public void calcBoundBoxDimensions(BitSet bs,
float scale)
public BoxInfo getBoxInfo(BitSet bs,
float scale)
float calcRotationRadius(Point3f center)
public float calcRotationRadius(BitSet bs)
public Vector3f getBoundBoxCornerVector()
getBoundBoxCornerVector in class JmolViewerpublic Point3f[] getBoundBoxVertices()
Map<String,Object> getBoundBoxInfo()
public BitSet getBoundBoxModels()
public int getBoundBoxCenterX()
public int getBoundBoxCenterY()
public int getModelCount()
getModelCount in class JmolViewerpublic String getModelInfoAsString()
public String getSymmetryInfoAsString()
public String getSymmetryOperation(String spaceGroup,
int symop,
Point3f pt1,
Point3f pt2,
boolean labelOnly)
public Properties getModelSetProperties()
getModelSetProperties in class JmolViewerpublic Map<String,Object> getModelSetAuxiliaryInfo()
getModelSetAuxiliaryInfo in class JmolViewerpublic int getModelNumber(int modelIndex)
getModelNumber in class JmolViewerpublic int getModelFileNumber(int modelIndex)
public String getModelNumberDotted(int modelIndex)
getModelNumberDotted in class JmolViewerpublic String getModelName(int modelIndex)
getModelName in class JmolViewerpublic Properties getModelProperties(int modelIndex)
getModelProperties in class JmolViewer
public String getModelProperty(int modelIndex,
String propertyName)
getModelProperty in class JmolViewerpublic String getModelFileInfo()
public String getModelFileInfoAll()
public Map<String,Object> getModelAuxiliaryInfo(int modelIndex)
getModelAuxiliaryInfo in class JmolViewer
public Object getModelAuxiliaryInfo(int modelIndex,
String keyName)
getModelAuxiliaryInfo in class JmolViewer
public int getModelNumberIndex(int modelNumber,
boolean useModelNumber,
boolean doSetTrajectory)
boolean modelSetHasVibrationVectors()
public boolean modelHasVibrationVectors(int modelIndex)
modelHasVibrationVectors in class JmolViewerpublic int getChainCount()
getChainCount in class JmolViewerpublic int getChainCountInModel(int modelIndex)
getChainCountInModel in class JmolViewer
public int getChainCountInModel(int modelIndex,
boolean countWater)
public int getGroupCount()
getGroupCount in class JmolViewerpublic int getGroupCountInModel(int modelIndex)
getGroupCountInModel in class JmolViewerpublic int getPolymerCount()
getPolymerCount in class JmolViewerpublic int getPolymerCountInModel(int modelIndex)
getPolymerCountInModel in class JmolViewerpublic int getAtomCount()
getAtomCount in class JmolViewerpublic int getAtomCountInModel(int modelIndex)
getAtomCountInModel in class JmolViewerpublic int getBondCount()
getBondCount in class JmolViewerpublic int getBondCountInModel(int modelIndex)
getBondCountInModel in class JmolViewermodelIndex - the model of interest or -1 for all
public BitSet getBondsForSelectedAtoms(BitSet bsAtoms)
public boolean frankClicked(int x,
int y)
public boolean frankClickedModelKit(int x,
int y)
public int findNearestAtomIndex(int x,
int y)
findNearestAtomIndex in class JmolViewer
public int findNearestAtomIndex(int x,
int y,
boolean mustBeMovable)
BitSet findAtomsInRectangle(Rectangle rect)
public void toCartesian(Point3f pt,
boolean asAbsolute)
pt - asAbsolute - TODO
public void toFractional(Point3f pt,
boolean asAbsolute)
pt - asAbsolute - TODO
public void toUnitCell(Point3f pt,
Point3f offset)
pt - offset - public void setCurrentUnitCellOffset(int ijk)
public void setCurrentUnitCellOffset(Point3f pt)
public boolean getFractionalRelative()
public void addUnitCellOffset(Point3f pt)
public void setAtomData(int type,
String name,
String coordinateData,
boolean isDefault)
public void setCenterSelected()
setCenterSelected in class JmolViewerpublic boolean getApplySymmetryToBonds()
void setApplySymmetryToBonds(boolean TF)
public void setBondTolerance(float bondTolerance)
setBondTolerance in class JmolViewerpublic float getBondTolerance()
getBondTolerance in class JmolViewerpublic void setMinBondDistance(float minBondDistance)
setMinBondDistance in class JmolViewerpublic float getMinBondDistance()
getMinBondDistance in class JmolViewerpublic int[] getAtomIndices(BitSet bs)
public BitSet getAtomBits(int tokType,
Object specInfo)
public BitSet getSequenceBits(String specInfo,
BitSet bs)
public BitSet getAtomsWithin(float distance,
Point3f coord)
public BitSet getAtomsWithin(float distance,
Point3f[] points,
BitSet bsInclude)
public BitSet getAtomsWithin(float distance,
Point4f plane)
public BitSet getAtomsWithin(float distance,
BitSet bs,
boolean withinAllModels,
RadiusData rd)
public BitSet getAtomsConnected(float min,
float max,
int intType,
BitSet bs)
public BitSet getBranchBitSet(int atomIndex,
int atomIndexNot)
public int getAtomIndexFromAtomNumber(int atomNumber)
public BitSet getElementsPresentBitSet(int modelIndex)
getElementsPresentBitSet in class JmolViewerpublic Map<String,String> getHeteroList(int modelIndex)
getHeteroList in class JmolViewerpublic BitSet getVisibleSet()
public BitSet getClickableSet()
public void calcSelectedGroupsCount()
public void calcSelectedMonomersCount()
public void calcSelectedMoleculesCount()
String getFileHeader()
Object getFileData()
public Map<String,Object> getCifData(int modelIndex)
public String getPDBHeader()
public Map<String,Object> getModelInfo(Object atomExpression)
public Map<String,Object> getLigandInfo(Object atomExpression)
public Map<String,Object> getAuxiliaryInfo(Object atomExpression)
List<Map<String,Object>> getAllAtomInfo(Object atomExpression)
List<Map<String,Object>> getAllBondInfo(Object atomExpression)
List<Map<String,Object>> getMoleculeInfo(Object atomExpression)
public String getChimeInfo(int tok)
public Map<String,List<Map<String,Object>>> getAllChainInfo(Object atomExpression)
public Map<String,List<Map<String,Object>>> getAllPolymerInfo(Object atomExpression)
public String getWrappedState(boolean isImage,
int width,
int height)
public String getStateInfo()
getStateInfo in class JmolViewer
public String getStateInfo(String type,
int width,
int height)
public String getStructureState()
public String getProteinStructureState()
public String getCoordinateState(BitSet bsSelected)
public void setCurrentColorRange(String label)
public void setCurrentColorRange(float[] data,
BitSet bs)
public void setCurrentColorRange(float min,
float max)
public void setData(String type,
Object[] data,
int atomCount,
int matchField,
int matchFieldColumnCount,
int field,
int fieldColumnCount)
public Object[] getData(String type)
public float[] getDataFloat(String label)
public float[][] getDataFloat2D(String label)
public float[][][] getDataFloat3D(String label)
public float getDataFloat(String label,
int atomIndex)
public String getAltLocListInModel(int modelIndex)
getAltLocListInModel in class JmolViewerpublic BitSet setConformation()
public BitSet getConformation(int iModel,
int conformationIndex,
boolean doSet)
public int autoHbond(BitSet bsFrom,
BitSet bsTo)
public float getHbondsAngleMin()
public float getHbondsDistanceMax()
public boolean getHbondsRasmol()
public boolean hasCalculatedHBonds(BitSet bsAtoms)
public boolean havePartialCharges()
havePartialCharges in class JmolViewerpublic SymmetryInterface getCurrentUnitCell()
public SymmetryInterface getModelUnitCell(int modelIndex)
public String getDefaultMeasurementLabel(int nPoints)
public int getMeasurementCount()
getMeasurementCount in class JmolViewerpublic String getMeasurementStringValue(int i)
getMeasurementStringValue in class JmolViewerList<Map<String,Object>> getMeasurementInfo()
public String getMeasurementInfoAsString()
public int[] getMeasurementCountPlusIndices(int i)
getMeasurementCountPlusIndices in class JmolViewervoid setPendingMeasurement(MeasurementPending measurementPending)
MeasurementPending getPendingMeasurement()
public void clearAllMeasurements()
public void clearMeasurements()
clearMeasurements in class JmolViewerpublic boolean getJustifyMeasurements()
public void setAnimation(int tok)
public void setAnimationDirection(int direction)
int getAnimationDirection()
Map<String,Object> getAnimationInfo()
public void setAnimationFps(int fps)
setAnimationFps in class JmolViewerpublic int getAnimationFps()
getAnimationFps in class JmolViewer
public void setAnimationReplayMode(EnumAnimationMode replayMode,
float firstFrameDelay,
float lastFrameDelay)
EnumAnimationMode getAnimationReplayMode()
public void setAnimationOn(boolean animationOn)
public void setAnimationRange(int modelIndex1,
int modelIndex2)
public BitSet getVisibleFramesBitSet()
getVisibleFramesBitSet in class JmolViewerboolean isAnimationOn()
public void setCurrentModelIndex(int modelIndex)
void setTrajectory(int modelIndex)
public void setTrajectory(BitSet bsModels)
public boolean isTrajectory(int modelIndex)
public BitSet getBitSetTrajectories()
public String getTrajectoryInfo()
void setFrameOffset(int modelIndex)
public void setFrameOffsets(BitSet bsAtoms)
public BitSet getFrameOffsets()
public void setCurrentModelIndex(int modelIndex,
boolean clearBackground)
public int getCurrentModelIndex()
public int getDisplayModelIndex()
getDisplayModelIndex in class JmolViewerpublic boolean haveFileSet()
public void setBackgroundModelIndex(int modelIndex)
void setFrameVariables(int firstModelIndex,
int lastModelIndex)
public int getMotionEventNumber()
getMotionEventNumber in class JmolViewervoid setInMotion(boolean inMotion)
public boolean getInMotion()
public void pushHoldRepaint()
pushHoldRepaint in class JmolViewerpublic void pushHoldRepaint(String why)
why - public void popHoldRepaint()
popHoldRepaint in class JmolViewerpublic void popHoldRepaint(String why)
private void setRefreshing(boolean TF)
public boolean getRefreshing()
public void refresh(int mode,
String strWhy)
refresh in class JmolViewermode - strWhy - public void requestRepaintAndWait()
private void setSync()
public void notifyViewerRepaintDone()
notifyViewerRepaintDone in class JmolViewerpublic boolean areAxesTainted()
private void setMaximumSize(int x)
public void setScreenDimension(int width,
int height)
setScreenDimension in class JmolViewerpublic float getImageFontScaling()
private void resizeImage(int width,
int height,
boolean isImageWrite,
boolean isExport,
boolean isReset)
public int getScreenWidth()
getScreenWidth in class JmolViewerpublic int getScreenHeight()
getScreenHeight in class JmolViewerpublic int getScreenDim()
public String generateOutput(String type,
String[] fileName,
int width,
int height)
generateOutput in class JmolViewer
public void renderScreenImage(Object gLeft,
Object gRight,
int width,
int height)
JmolViewer
renderScreenImage in class JmolViewer
public void renderScreenImage(Object g,
int width,
int height)
renderScreenImage in class JmolSimpleViewerprivate Object getImage(boolean isDouble)
boolean isAntialiased()
private void render()
private Object getStereoImage(EnumStereoMode stereoMode)
private void render1(Object g,
Object img,
int x,
int y)
public Object getScreenImage(Object g)
getScreenImage in class JmolViewer
public Object getImageAs(String type,
int quality,
int width,
int height,
String fileName,
OutputStream os)
getImageAs in class JmolViewertype - "PNG", "JPG", "JPEG", "JPG64", "PPM", "GIF"
Object getImageAs(String type,
int quality,
int width,
int height,
String fileName,
OutputStream os,
String comment)
type - "PNG", "JPG", "JPEG", "JPG64", "PPM", "GIF"quality - width - height - fileName - os - comment -
public void releaseScreenImage()
releaseScreenImage in class JmolViewerpublic boolean getAllowEmbeddedScripts()
public String evalFile(String strFilename)
evalFile in class JmolSimpleViewerpublic String getInterruptScript()
public String script(String strScript)
script in class JmolViewerpublic String evalString(String strScript)
evalString in class JmolSimpleViewerpublic String evalStringQuiet(String strScript)
evalStringQuiet in class JmolViewer
String evalStringQuiet(String strScript,
boolean isQuiet,
boolean allowSyncScript)
private String checkScriptExecution(String strScript,
boolean isInterrupt)
public boolean usingScriptQueue()
public void clearScriptQueue()
private void setScriptQueue(boolean TF)
public boolean checkResume(String str)
public boolean checkStepping(String str)
public boolean checkHalt(String str,
boolean isInterrupt)
checkHalt in class JmolViewerpublic String scriptWait(String strScript)
scriptWait in class JmolViewer
public Object scriptWaitStatus(String strScript,
String statusList)
scriptWaitStatus in class JmolViewer
public Object evalStringWaitStatus(String returnType,
String strScript,
String statusList)
Object evalStringWaitStatus(String returnType,
String strScript,
String statusList,
boolean isScriptFile,
boolean isQuiet,
boolean isQueued)
public void exitJmol()
private Object scriptCheck(String strScript,
boolean returnContext)
public Object scriptCheck(String strScript)
scriptCheck in class JmolViewerpublic boolean isScriptExecuting()
isScriptExecuting in class JmolViewerpublic void haltScriptExecution()
haltScriptExecution in class JmolViewerpublic void resumeScriptExecution()
public void stepScriptExecution()
public void pauseScriptExecution()
public String getDefaultLoadFilter()
public String getDefaultLoadScript()
public Object setLoadFormat(String name,
char type,
boolean withPrefix)
public String[] getElectronDensityLoadInfo()
public String getStandardLabelFormat(int type)
public int getRibbonAspectRatio()
public float getSheetSmoothing()
public boolean getSsbondsBackbone()
public boolean getHbondsBackbone()
public boolean getHbondsSolid()
public Point3f[] getAdditionalHydrogens(BitSet bsAtoms,
boolean doAll,
boolean justCarbon,
List<Atom> vConnections)
public BitSet addHydrogens(BitSet bsAtoms,
boolean asScript,
boolean isSilent)
private BitSet addHydrogensInline(BitSet bsAtoms,
List<Atom> vConnections,
Point3f[] pts)
throws Exception
Exceptionpublic void setMarBond(short marBond)
setMarBond in class JmolViewerpublic boolean isHoverEnabled()
public void setHoverLabel(String strLabel)
void hoverOn(int atomIndex,
int action)
int getHoverDelay()
public void hoverOn(int x,
int y,
String text)
void hoverOff()
public void clearShapeRenderers()
public int getBfactor100Hi()
short getColix(Object object)
public boolean getRasmolSetting(int tok)
public boolean getDebugScript()
public void setDebugScript(boolean debugScript)
setDebugScript in class JmolViewervoid clearClickCount()
public int getCursor()
public void setCursor(int cursor)
void setPickingMode(String strMode,
int pickingMode)
public int getPickingMode()
public boolean getDrawPicking()
public boolean isModelKitMode()
public boolean getBondPicking()
private boolean getAtomPicking()
void setPickingStyle(String style,
int pickingStyle)
public boolean getDrawHover()
public String getAtomInfo(int atomOrPointIndex)
getAtomInfo in class JmolViewer
public String getAtomInfoXYZ(int atomIndex,
boolean useChimeFormat)
public void setJmolCallbackListener(JmolCallbackListener jmolCallbackListener)
setJmolCallbackListener in class JmolViewerpublic void setJmolStatusListener(JmolStatusListener jmolStatusListener)
setJmolStatusListener in class JmolViewerpublic Map<String,List<List<Object>>> getMessageQueue()
List<List<List<Object>>> getStatusChanged(String statusNameList)
public boolean menuEnabled()
void popupMenu(int x,
int y,
char type)
public String getMenu(String type)
private Object getPopupMenu()
public void setMenu(String fileOrText,
boolean isFile)
void setStatusFrameChanged(int frameNo)
public void scriptEcho(String strEcho)
public void notifyError(String errType,
String errMsg,
String errMsgUntranslated)
public String jsEval(String strEval)
public void setStatusAtomHovered(int atomIndex,
String info)
private void setFileLoadStatus(FileManager.EnumFileStatus ptLoad,
String fullPathName,
String fileName,
String modelName,
String strError)
public String getZapName()
public void setStatusMeasuring(String status,
int intInfo,
String strMeasure,
float value)
public void notifyMinimizationStatus()
public void setStatusAtomPicked(int atomIndex,
String info)
public void setStatusResized(int width,
int height)
public void scriptStatus(String strStatus)
public void scriptStatus(String strStatus,
String statusMessage)
public void scriptStatus(String strStatus,
String statusMessage,
int msWalltime,
String strErrorMessageUntranslated)
private String getModelTitle(int modelIndex)
public String getModelFileName(int modelIndex)
getModelFileName in class JmolViewer
public String dialogAsk(String type,
String fileName)
public int getScriptDelay()
public void showUrl(String urlString)
showUrl in class JmolViewerpublic void setMeshCreator(Object meshCreator)
meshCreator - public void showConsole(boolean showConsole)
public void clearConsole()
public Object getParameterEscaped(String key)
public Object getParameter(String key)
getParameter in class JmolViewer
public ScriptVariable getOrSetNewVariable(String key,
boolean doSet)
public ScriptVariable setUserVariable(String name,
ScriptVariable value)
public void unsetProperty(String name)
public String getVariableList()
public boolean getBooleanProperty(String key)
getBooleanProperty in class JmolViewer
public void setStringProperty(String key,
String value)
setStringProperty in class JmolViewer
private void setStringProperty(String key,
int tok,
String value)
public void setFloatProperty(String key,
float value)
setFloatProperty in class JmolViewer
private void setFloatProperty(String key,
int tok,
float value)
public void setIntProperty(String key,
int value)
setIntProperty in class JmolViewer
private void setIntProperty(String key,
int tok,
int value)
private static int checkIntRange(int value,
int min,
int max)
private static float checkFloatRange(float value,
float min,
float max)
public void setBooleanProperty(String key,
boolean value)
setBooleanProperty in class JmolViewer
private void setBooleanProperty(String key,
int tok,
boolean value)
private void setModelKitMode(boolean value)
public boolean getModelkitMode()
public String getLanguage()
public void setSmilesString(String s)
public void removeUserVariable(String key)
public boolean isJmolVariable(String key)
private void jmolTest()
public boolean isPdbSequential()
boolean getSelectAllModels()
public boolean getMessageStyleChime()
public boolean getFontCaching()
public boolean getFontScaling()
public void showParameter(String key,
boolean ifNotSet,
int nMax)
public void showString(String str,
boolean isPrint)
public String getAllSettings(String prefix)
public String getBindingInfo(String qualifiers)
public int getDelayMaximum()
public boolean getDotSurfaceFlag()
public boolean getDotsSelectedOnlyFlag()
public int getDotDensity()
public int getDotScale()
public boolean isRangeSelected()
public boolean getIsosurfaceKey()
public int getIsosurfacePropertySmoothing(boolean asPower)
public boolean getWireframeRotation()
public boolean isWindowCentered()
public void setNavigationDepthPercent(float timeSec,
float percent)
float getNavigationSpeed()
public boolean getShowNavigationPoint()
public float getSolventProbeRadius()
public float getCurrentSolventProbeRadius()
boolean getSolventOn()
public boolean getTestFlag(int i)
public void setPerspectiveDepth(boolean perspectiveDepth)
setPerspectiveDepth in class JmolViewerpublic void setAxesOrientationRasmol(boolean TF)
setAxesOrientationRasmol in class JmolViewerpublic boolean getAxesOrientationRasmol()
getAxesOrientationRasmol in class JmolViewervoid setAxesScale(float scale)
public Point3f[] getAxisPoints()
public float getAxesScale()
public void resetError()
private void setAxesModeMolecular(boolean TF)
void setAxesModeUnitCell(boolean TF)
public EnumAxesMode getAxesMode()
public boolean getDisplayCellParameters()
public boolean getPerspectiveDepth()
getPerspectiveDepth in class JmolViewerpublic void setSelectionHalos(boolean TF)
setSelectionHalos in class JmolViewerpublic boolean getSelectionHaloEnabled(boolean isRenderer)
public boolean getBondSelectionModeOr()
public boolean getChainCaseSensitive()
public boolean getRibbonBorder()
public boolean getCartoonRocketFlag()
public boolean getRocketBarrelFlag()
public boolean getCartoonBaseEdgesFlag()
private void setStrandCount(int type,
int value)
public int getStrandCount(int type)
boolean getHideNameInPopup()
public boolean getNavigationPeriodic()
private void stopAnimationThreads(String fromWhere)
fromWhere - private void setNavigationMode(boolean TF)
public boolean getNavigationMode()
public boolean getNavigateSurface()
public void setTransformManager(TransformManager transformManager)
transformManager - private void setPerspectiveModel(int mode)
private void setTransformManagerDefaults()
public Point3f[] getCameraFactors()
boolean getZoomLarge()
public boolean getTraceAlpha()
public int getHermiteLevel()
public boolean getHighResolution()
String getLoadState(Map<String,Object> htParams)
public void setAutoBond(boolean TF)
setAutoBond in class JmolViewerpublic boolean getAutoBond()
getAutoBond in class JmolViewer
public int[] makeConnections(float minDistance,
float maxDistance,
int order,
int connectOperation,
BitSet bsA,
BitSet bsB,
BitSet bsBonds,
boolean isBonds,
boolean addGroup,
float energy)
public void rebond()
rebond in class JmolViewerpublic void rebond(boolean isStateScript)
public void setPdbConectBonding(boolean isAuto,
boolean isStateScript)
boolean getGreyscaleRendering()
boolean getDisablePopupMenu()
public boolean getForceAutoBond()
public void setPercentVdwAtom(int value)
setPercentVdwAtom in class JmolViewerpublic int getPercentVdwAtom()
getPercentVdwAtom in class JmolViewerpublic RadiusData getDefaultRadiusData()
public short getMadBond()
getMadBond in class JmolViewerpublic short getMarBond()
public byte getModeMultipleBond()
public boolean getShowMultipleBonds()
public float getMultipleBondSpacing()
public float getMultipleBondRadiusFactor()
public void setShowHydrogens(boolean TF)
setShowHydrogens in class JmolViewerpublic boolean getShowHydrogens()
getShowHydrogens in class JmolViewerpublic boolean getShowHiddenSelectionHalos()
public void setShowBbcage(boolean value)
setShowBbcage in class JmolViewerpublic boolean getShowBbcage()
getShowBbcage in class JmolViewerpublic void setShowUnitCell(boolean value)
public boolean getShowUnitCell()
public void setShowAxes(boolean value)
setShowAxes in class JmolViewerpublic boolean getShowAxes()
getShowAxes in class JmolViewerpublic void setFrankOn(boolean TF)
setFrankOn in class JmolViewerpublic boolean getShowFrank()
public boolean isSignedApplet()
public void setShowMeasurements(boolean TF)
setShowMeasurements in class JmolViewerpublic boolean getShowMeasurements()
getShowMeasurements in class JmolViewerpublic boolean getShowMeasurementLabels()
public boolean getMeasureAllModelsFlag()
public void setMeasureDistanceUnits(String units)
public String getMeasureDistanceUnits()
public boolean getUseNumberLocalization()
public void setAppendNew(boolean value)
public boolean getAppendNew()
boolean getAutoFps()
public void setRasmolDefaults()
setRasmolDefaults in class JmolViewerpublic void setJmolDefaults()
setJmolDefaults in class JmolViewerprivate void setDefaults(String type)
private void setDefaults()
public boolean getZeroBasedXyzRasmol()
private void setAntialias(int mode,
boolean TF)
public Point3f[] allocTempPoints(int size)
public void freeTempPoints(Point3f[] tempPoints)
public Point3i[] allocTempScreens(int size)
public void freeTempScreens(Point3i[] tempScreens)
public EnumStructure[] allocTempEnum(int size)
public void freeTempEnum(EnumStructure[] temp)
public Font3D getFont3D(String fontFace,
String fontStyle,
float fontSize)
public String formatText(String text0)
String getElementSymbol(int i)
int getElementNumber(int i)
public String getAtomName(int i)
getAtomName in class JmolViewerpublic int getAtomNumber(int i)
getAtomNumber in class JmolViewer
public Quaternion[] getAtomGroupQuaternions(BitSet bsAtoms,
int nMax)
public Quaternion getAtomQuaternion(int i)
public Point3f getAtomPoint3f(int i)
getAtomPoint3f in class JmolViewerpublic List<Point3f> getAtomPointVector(BitSet bs)
public float getAtomRadius(int i)
getAtomRadius in class JmolViewerpublic int getAtomArgb(int i)
getAtomArgb in class JmolViewerString getAtomChain(int i)
public int getAtomModelIndex(int i)
getAtomModelIndex in class JmolViewerString getAtomSequenceCode(int i)
public float getBondRadius(int i)
getBondRadius in class JmolViewerpublic int getBondOrder(int i)
getBondOrder in class JmolViewerpublic void assignAromaticBonds()
public boolean getSmartAromatic()
public void resetAromatic()
public int getBondArgb1(int i)
getBondArgb1 in class JmolViewerpublic int getBondModelIndex(int i)
getBondModelIndex in class JmolViewerpublic int getBondArgb2(int i)
getBondArgb2 in class JmolViewer
public Point3f[] getPolymerLeadMidPoints(int modelIndex,
int polymerIndex)
getPolymerLeadMidPoints in class JmolViewer
public void setStereoMode(int[] twoColors,
EnumStereoMode stereoMode,
float degrees)
boolean isStereoDouble()
public String getOperatingSystemName()
getOperatingSystemName in class JmolViewerpublic String getJavaVendor()
getJavaVendor in class JmolViewerpublic String getJavaVersion()
getJavaVersion in class JmolViewerpublic Graphics3D getGraphics3D()
public boolean showModelSetDownload()
showModelSetDownload in class JmolViewer
public Object getProperty(String returnType,
String infoType,
String paramInfo)
public boolean isScriptEditorVisible()
public Object getProperty(String returnType,
String infoType,
Object paramInfo)
getProperty in class JmolSimpleViewerreturnType - "JSON", "string", "readable", and anything else returns the Java object.
void showEditor(String[] file_text)
public String getModelExtract(Object atomExpression,
boolean doTransform,
String type)
public void setTainted(boolean TF)
public int notifyMouseClicked(int x,
int y,
int action,
int mode)
Map<String,Object> checkObjectClicked(int x,
int y,
int modifiers)
boolean checkObjectHovered(int x,
int y)
void checkObjectDragged(int prevX,
int prevY,
int x,
int y,
int action)
public void rotateAxisAngleAtCenter(Point3f rotCenter,
Vector3f rotAxis,
float degreesPerSecond,
float endDegrees,
boolean isSpin,
BitSet bsSelected)
public void rotateAboutPointsInternal(Point3f point1,
Point3f point2,
float degreesPerSecond,
float endDegrees,
boolean isSpin,
BitSet bsSelected,
Vector3f translation,
List<Point3f> finalPoints)
int getPickingSpinRate()
public void startSpinningAxis(Point3f pt1,
Point3f pt2,
boolean isClockwise)
public Vector3f getModelDipole()
public Vector3f calculateMolecularDipole()
public float getDipoleScale()
public void getAtomIdentityInfo(int atomIndex,
Map<String,Object> info)
public void setDefaultLattice(Point3f ptLattice)
public Point3f getDefaultLattice()
public BitSet getTaintedAtoms(byte type)
public void setTaintedAtoms(BitSet bs,
byte type)
public String getData(String atomExpression,
String type)
getData in class JmolViewer
public String getModelCml(BitSet bs,
int nAtomsMax,
boolean addBonds)
public Object evaluateExpression(Object stringOrTokens)
public Object getHelixData(BitSet bs,
int tokType)
public String getPdbData(BitSet bs,
OutputStringBuffer sb)
public boolean isJmolDataFrame(int modelIndex)
public boolean isJmolDataFrame()
public int getJmolDataFrameIndex(int modelIndex,
String type)
public void setJmolDataFrame(String type,
int modelIndex,
int dataIndex)
public void setFrameTitle(int modelIndex,
String title)
public void setFrameTitle(Object title)
public String getFrameTitle()
String getJmolFrameType(int modelIndex)
public int getJmolDataSourceFrame(int modelIndex)
public void setAtomProperty(BitSet bs,
int tok,
int iValue,
float fValue,
String sValue,
float[] values,
String[] list)
public void checkCoordinatesChanged()
public void setAtomCoord(int atomIndex,
float x,
float y,
float z)
public void setAtomCoordRelative(int atomIndex,
float x,
float y,
float z)
public void setAtomCoord(BitSet bs,
int tokType,
Object xyzValues)
public void setAtomCoordRelative(Tuple3f offset,
BitSet bs)
boolean allowRotateSelected()
public void invertAtomCoord(Point3f pt,
BitSet bs)
public void invertAtomCoord(Point4f plane,
BitSet bs)
public void invertSelected(Point3f pt,
Point4f plane,
int iAtom,
BitSet invAtoms)
void moveAtoms(Matrix3f mNew,
Matrix3f matrixRotate,
Vector3f translation,
Point3f center,
boolean isInternal,
BitSet bsAtoms)
public void moveSelected(int deltaX,
int deltaY,
int deltaZ,
int x,
int y,
BitSet bsSelected,
boolean isTranslation,
boolean asAtoms)
public void highlightBond(int index,
boolean isHover)
public void highlight(BitSet bs)
void setRotateBondIndex(int index)
int getRotateBondIndex()
void actionRotateBond(int deltaX,
int deltaY,
int x,
int y)
public void refreshMeasures(boolean andStopMinimization)
void setDynamicMeasurements(boolean TF)
public boolean getDynamicMeasurements()
public float[][] functionXY(String functionName,
int nX,
int nY)
functionName - nX - nY -
public float[][][] functionXYZ(String functionName,
int nX,
int nY,
int nZ)
public void getHelp(String what)
public void show2D(String smiles)
public String getChemicalInfo(String smiles,
char type)
public void addCommand(String command)
command - the command to addpublic String removeCommand()
public String getSetHistory(int howFarBack)
getSetHistory in class JmolViewerhowFarBack - number of lines (-1 for next line)
public void writeTextFile(String fileName,
String data)
writeTextFile in class JmolViewerpublic String clipImage(String text)
clipImage in class JmolViewertext - null here clips image; String clips text
public String createImage(String fileName,
String type,
Object text_or_bytes,
int quality,
int width,
int height,
BitSet bsFrames,
String[] fullPath)
fileName - type - text_or_bytes - quality - width - height - bsFrames - fullPath -
public boolean getCreatingImage()
public Object createImage(String fileName,
String type,
Object text_or_bytes,
int quality,
int width,
int height)
createImage in class JmolViewer
public Object createImage(String fileName,
String type,
Object text_or_bytes,
int quality,
int width,
int height,
String[] fullPath)
fileName - starts with ? --> use file dialog; null --> to clipboardtype - PNG, JPG, etc.text_or_bytes - String or byte[] or null if an imagequality - Integer.MIN_VALUE --> not an imagewidth - image widthheight - image heightfullPath -
private Object createImage(String fileName,
String type,
Object text_or_bytes,
int quality,
int width,
int height,
String[] fullPath,
boolean doCheck)
private String getFileNameFromDialog(String fileName,
int quality)
private void setSyncTarget(int mode,
boolean TF)
public void syncScript(String script,
String applet,
int port)
syncScript in class JmolViewervoid setSyncDriver(int mode)
public float[] getPartialCharges()
public float[] getAtomicPotentials(boolean isMep,
BitSet bsSelected,
BitSet bsIgnore,
String fileName)
isMep - bsSelected - bsIgnore - fileName -
public void setProteinType(EnumStructure type,
BitSet bs)
public Point3f getBondPoint3f1(int i)
getBondPoint3f1 in class JmolViewerpublic Point3f getBondPoint3f2(int i)
getBondPoint3f2 in class JmolViewerpublic Vector3f getVibrationVector(int atomIndex)
public int getVanderwaalsMar(int i)
public int getVanderwaalsMar(int i,
EnumVdw type)
void setDefaultVdw(String type)
public String getDefaultVdwTypeNameOrData(int iMode,
EnumVdw vType)
public int deleteAtoms(BitSet bs,
boolean fullModels)
public void deleteBonds(BitSet bsDeleted)
public void deleteModelAtoms(int firstAtomIndex,
int nAtoms,
BitSet bsDeleted)
public BitSet getDeletedAtoms()
public char getQuaternionFrame()
public int getHelixStep()
public String calculatePointGroup()
public Map<String,Object> getPointGroupInfo(Object atomExpression)
public String getPointGroupAsString(boolean asDraw,
String type,
int index,
float scale)
public float getPointGroupTolerance(int type)
public Object getFileAsImage(String pathName,
String[] retFileNameOrError)
public String cd(String dir)
private String setErrorMessage(String errMsg)
private String setErrorMessage(String errMsg,
String errMsgUntranslated)
public String getErrorMessage()
getErrorMessage in class JmolViewerpublic String getErrorMessageUntranslated()
getErrorMessageUntranslated in class JmolViewer
public void setShapeErrorState(int shapeID,
String state)
public String getShapeErrorState()
public void handleError(Error er,
boolean doClear)
public float[] getAtomicCharges()
public ScriptFunction getFunction(String name)
public void addFunction(ScriptFunction f)
public void clearFunctions()
public boolean isFunction(String name)
public String getFunctionCalls(String selectedFunction)
public void showMessage(String s)
public String getMoInfo(int modelIndex)
boolean isRepaintPending()
public Map<String,ScriptVariable> getContextVariables()
public boolean checkPrivateKey(double privateKey)
checkPrivateKey in class JmolViewerprivateKey -
public void bindAction(String desc,
String name,
Point3f range1,
Point3f range2)
public void unBindAction(String desc,
String name)
public Object getMouseInfo()
public void clearTimeout(String name)
public void setTimeout(String name,
int mSec,
String script)
public void triggerTimeout(String name)
public String showTimeout(String name)
public int getFrontPlane()
public List<Object> getPlaneIntersection(int type,
Point4f plane,
float scale,
int flags)
void repaint()
public OutputStream getOutputStream(String localName,
String[] fullPath)
public int calculateStruts(BitSet bs1,
BitSet bs2)
public boolean getStrutsMultiple()
public int getStrutSpacingMinimum()
public float getStrutLengthMaximum()
public float getStrutDefaultRadius()
public boolean getPreserveState()
public boolean getDragSelected()
public float getLoadAtomDataTolerance()
public boolean getAllowGestures()
public boolean getLogGestures()
public boolean allowMultiTouch()
public boolean logCommands()
public String getLogFile()
private String setLogFile(String value)
public void log(String data)
log in interface AtomDataServerboolean isKiosk()
public boolean hasFocus()
public void setFocus()
public MinimizerInterface getMinimizer(boolean createNew)
void stopMinimization()
void clearMinimization()
public String getMinimizationInfo()
public boolean useMinimizationThread()
private void checkMinimization()
public void minimize(int steps,
float crit,
BitSet bsSelected,
BitSet bsFixed,
float rangeFixed,
boolean addHydrogen,
boolean isSilent,
boolean asScript)
steps - Integer.MAX_VALUE --> use defaultscrit - -1 --> use defaultsbsSelected - bsFixed - TODOrangeFixed - addHydrogen - isSilent - asScript - public void setMotionFixedAtoms(BitSet bs)
public BitSet getMotionFixedAtoms()
boolean useArcBall()
void rotateArcBall(int x,
int y,
float factor)
void getAtomicPropertyState(StringBuffer commands,
byte type,
BitSet bs,
String name,
float[] data)
public Point3f[][] getCenterAndPoints(List<BitSet[]> atomSets,
boolean addCenter)
public int getSmallMoleculeMaxAtoms()
public String streamFileData(String fileName,
String type,
String type2,
int modelIndex,
Object[] parameters)
public String getPdbData(int modelIndex,
String type,
Object[] parameters)
public int getRepaintWait()
public BitSet getGroupsWithin(int nResidues,
BitSet bs)
public Object getExecutor()
public boolean eval(ScriptContext context,
ShapeManager shapeManager)
public Map<String,Object> getShapeInfo()
public void togglePickingLabel(BitSet bs)
public void loadShape(int shapeID)
public void setShapeSize(int shapeID,
int mad,
BitSet bsSelected)
public void setShapeSize(int shapeID,
RadiusData rd,
BitSet bsAtoms)
public void setShapeProperty(int shapeID,
String propertyName,
Object value)
public Object getShapeProperty(int shapeType,
String propertyName)
public boolean getShapeProperty(int shapeType,
String propertyName,
Object[] data)
public Object getShapeProperty(int shapeType,
String propertyName,
int index)
private int getShapePropertyAsInt(int shapeID,
String propertyName)
public void setModelVisibility()
public void resetShapes()
public void setAtomLabel(String value,
int i)
public void deleteShapeAtoms(Object[] value,
BitSet bs)
public void getShapeState(StringBuffer commands,
boolean isAll)
public void resetBioshapes(BitSet bsAllAtoms)
public float getAtomShapeValue(int tok,
Group group,
int atomIndex)
public void mergeShapes(Shape[] newShapes)
public ShapeManager getShapeManager()
public boolean setParallel(boolean TF)
public boolean isParallel()
public BitSet getRenderableBitSet()
private void setAtomPickingOption(String option)
private void setBondPickingOption(String option)
void undoClear()
public void undoMoveAction(int action,
int n)
action - Token.undo or Token.redon - number of steps to go back/forward; 0 for all; -1 for clear; -2 for clear BOTH
void undoMoveAction(int taintedAtom,
int type,
boolean clearRedo)
public void assignBond(int bondIndex,
char type)
public void assignAtom(int atomIndex,
Point3f pt,
String type)
public void assignConnect(int index,
int index2)
protected void moveAtomWithHydrogens(int atomIndex,
int deltaX,
int deltaY,
int deltaZ,
BitSet bsAtoms)
void appendLoadStates(StringBuffer commands)
public static void getInlineData(StringBuffer loadScript,
String strModel,
boolean isAppend)
public boolean isAtomPDB(int i)
public boolean isModelPDB(int i)
boolean isAtomAssignable(int i)
public void deleteMeasurement(int i)
deleteMeasurement in class JmolViewerboolean haveModelKit()
BitSet getModelKitStateBitSet(BitSet bs,
BitSet bsDeleted)
public String getSmiles(int index1,
int index2,
BitSet bsSelected,
boolean isBioSmiles,
boolean allowUnmatchedRings,
boolean addCrossLinks,
boolean addComment)
index1 - index2 - bsSelected - isBioSmiles - allowUnmatchedRings - TODOaddCrossLinks - TODOaddComment -
public void connect(float[][] connections)
public String prompt(String label,
String data,
String[] list,
boolean asButtons)
String getMenuName(int i)
public ColorEncoder getColorEncoder(String colorScheme)
public void displayBonds(Bond.BondSet bs,
boolean isDisplay)
public String getModelAtomProperty(Atom atom,
String text)
public void setStateScriptVersion(String version)
public boolean checkAutoBondLegacy()
boolean initializeExporter(JmolRendererInterface g3dExport,
String type,
Object output)
public void setPrivateKeyForShape(int iShape)
public boolean getMouseEnabled()
public boolean getPartialDots()
public void setZslabPoint(Point3f pt)
public void calcAtomsMinMax(BitSet bs,
BoxInfo boxInfo)
calcAtomsMinMax in class JmolViewerpublic int[] getCrossHairMinMax()
public float evalFunctionFloat(Object func,
Object params,
float[] values)
evalFunctionFloat in interface AtomDataServer
public void getObjectMap(Map<String,Token> map,
boolean withDollar)
JmolViewer
getObjectMap in class JmolViewerpublic String[][] getPdbBondInfo(String group3)
public void setPicked(int iAtom)
public boolean runScriptImmediately(String script)
public boolean allowSpecAtom()
public int getMinPixelSelRadius()
public ScriptVariable evaluateExpressionAsVariable(Object stringOrTokens)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||