org.jmol.script
public class ScriptVariable extends Token
Modifier and Type | Class and Description |
---|---|
protected class |
ScriptVariable.Sort |
Modifier and Type | Field and Description |
---|---|
private static int |
FLAG_CANINCREMENT |
private static int |
FLAG_LOCALVAR |
private int |
flags |
int |
index |
private String |
myName |
private static Point3f |
pt0 |
(package private) static ScriptVariable |
vAll |
private static ScriptVariable |
vF |
private static ScriptVariable |
vT |
abs, absolute, acos, add, addhydrogens, adjust, adpmax, adpmin, align, all, allconnected, allfloat, allowembeddedscripts, allowgestures, allowkeystrokes, allowmodelkit, allowmoveatoms, allowmultitouch, allowrotateselected, altloc, ambientpercent, amino, andequals, angle, angstroms, animation, animationfps, anisotropy, antialiasdisplay, antialiasimages, antialiastranslucent, append, appendnew, appletproxy, applysymmetrytobonds, arc, area, aromatic, array, arrow, as, assign, astrType, atomExpressionCommand, atomicorbital, atomid, atomindex, atomname, atomno, atompicking, atomproperty, atoms, atomtype, atomtypes, atomx, atomy, atomz, auto, autobond, autofps, average, axes, axescolor, axesmode, axesmolecular, axesorientationrasmol, axesscale, axesunitcell, axeswindow, axis, axis1color, axis2color, axis3color, axisangle, babel, babel21, back, backbone, background, backgroundcolor, backgroundmodel, backlit, barb, basepair, bin, binary, bind, bitset, blockdata, bondcount, bondmode, bondmodeor, bondorder, bondpicking, bondradiusmilliangstroms, bonds, bondset, bondtolerance, booleanparam, bottom, boundbox, boundboxcolor, branch, breakcmd, calculate, cameradepth, cancel, cap, carbohydrate, cartoon, cartoonbaseedges, cartoonrockets, casecmd, catchcmd, cavity, cd, cell, center, centerAt, chain, chaincasesensitive, check, chemical, circle, clash, clear, clickable, clipboard, col, collapsed, colon, color, colorrasmol, colorscheme, comma, command, commands, comparator, compare, configuration, connect, connected, console, constraint, contact, continuecmd, contour, contourlines, contours, coord, corners, cos, count, covalent, create, criterion, cross, crossed, currentlocalpath, curve, cutoff, cylinder, data, dataseparator, debug, debugscript, decimal, defaultanglelabel, defaultcmd, defaultcolorscheme, defaultdirectory, defaultdistancelabel, defaultdrawarrowscale, defaultlabelpdb, defaultlabelxyz, defaultlattice, defaultloadfilter, defaultloadscript, defaultON, defaults, defaultstructuredssp, defaulttorsionlabel, defaulttranslucent, defaultvdw, define, delay, delaymaximumms, delete, density, deprecatedparam, depth, diameter, diffusepercent, dipole, dipolescale, direction, disablepopupmenu, discrete, displacement, display, displaycellparameters, displayed, distance, distancefactor, div, divide, dna, dollarsign, dot, dotdensity, dots, dotscale, dotsselectedonly, dotsurface, dotted, downsample, dragselected, draw, drawhover, drawing, drawpicking, dssp, dsspcalchydrogen, dynamicmeasurements, eccentricity, echo, ed, edges, edsurlcutoff, edsurlformat, element, elemisono, elemno, ellipsoid, ellipsoidarcs, ellipsoidaxes, ellipsoidaxisdiameter, ellipsoidball, ellipsoiddotcount, ellipsoiddots, ellipsoidfill, elsecmd, elseif, end, endifcmd, energy, error, eta, exit, exitjmol, expression, expressionBegin, expressionEnd, facecenteroffset, file, filecachedirectory, filecaching, fill, filter, find, first, fixed, fixedtemp, flat, floatparam, floatproperty, flowCommand, font, fontcaching, fontscaling, fontsize, forceautobond, forcmd, formalcharge, format, fps, fractionalrelative, fracx, fracxyz, fracy, fracz, frame, frank, from, front, frontedges, frontlit, frontonly, full, fullplane, fullylit, function, functionxy, functionxyz, fux, fuxyz, fuy, fuz, geosurface, gestureswipefactor, getproperty, gotocmd, greyscalerendering, gridpoints, group, group1, groupid, groupindex, halo, hash, hbond, hbondsangleminimum, hbondsbackbone, hbondsdistancemaximum, hbondsrasmol, hbondssolid, helix, helix310, helixalpha, helixpi, helixstep, help, helppath, hermitelevel, hetero, hidden, hide, hidenameinpopup, hidenavigationpoint, hidenotselected, highlight, highresolution, history, historylevel, hkl, homo, hover, hoverdelay, hoverlabel, hydrogen, hydrophobic, id, identifier, identify, ifcmd, ignore, image, imagestate, implicitStringCommand, in, inchi, inchikey, increment, info, initialize, inline, insertion, insideout, integer, interior, intermolecular, internal, intersection, intparam, intproperty, intramolecular, intValue, invertSelected, ionic, isaromatic, iskiosk, isosurface, isosurfacekey, isosurfacepropertysmoothing, isosurfacepropertysmoothingpower, javascript, jmol, join, justifymeasurements, keys, label, language, languagetranslation, last, lattice, lcaocartoon, left, leftbrace, leftdivide, leftparen, leftsquare, legacyautobonding, length, lighting, line, linedata, lines, link, list, listf, load, loadatomdatatolerance, loadformat, loadligandformat, lobe, log, logcommands, logfile, loggestures, loglevel, lonepair, loop, lp, lumo, manifest, mapProperty, mass, mathExpressionCommand, mathfunc, mathop, mathproperty, matrix3f, matrix4f, max, maxset, measure, measureallmodels, measurementlabels, measurementnumbers, measurements, measurementunits, menu, mep, mesh, meshRibbon, message, messagestylechime, middle, min, minbonddistance, minimizationcriterion, minimizationrefresh, minimizationsilent, minimizationsteps, minimize, minmaxmask, minpixelselradius, minset, minus, minusMinus, misc, mlp, mo, mode, model, modelbased, modelindex, modelkitmode, modify, modifyorcreate, molecular, molecule, monitorenergy, monomer, mousedragfactor, mousewheelfactor, move, moveto, mrc, msms, mul, multiplebondradiusfactor, multiplebondspacing, multiprocessor, nada, name, navfps, navigate, navigatesurface, navigationdepth, navigationmode, navigationperiodic, navigationslab, navigationspeed, navx, navy, navz, nci, next, noArgs, nocontourlines, nocross, nodebug, nodots, noedges, nofill, nohead, noload, nomesh, none, noplane, normal, notfrontonly, notriangles, now, nucleic, obj, object, occupancy, off, offset, offsetside, omega, on, once, only, opAnd, opAND, opaque, opEQ, opGE, opGT, opIf, opLE, opLT, opNE, opNot, opOr, opToggle, opXor, orbital, orientation, origin, out, packed, palindrome, parallel, parameters, partialcharge, partialdots, path, pause, pdb, pdbaddhydrogens, pdbgetheader, pdbheader, pdbsequential, per, percent, percentvdwatom, period, perpendicular, perspectivedepth, perspectivemodel, phase, phi, phongexponent, picking, pickingspinrate, pickingstyle, picklabel, plane, play, playrev, plot, plot3d, plus, plusPlus, pmesh, pocket, point, point3f, point4f, pointgroup, pointgroupdistancetolerance, pointgrouplineartolerance, pointsperangstrom, polygon, polyhedra, polymer, polymerlength, pop, predefinedset, preservestate, prev, print, probe, process, prompt, property, propertyatomnumbercolumncount, propertyatomnumberfield, propertycolorscheme, propertydatacolumncount, propertydatafield, PROPERTYFLAGS, propselector, protein, psi, purine, push, pyrimidine, quaternion, quaternionframe, quit, rad, radical, radius, ramachandran, random, range, rangeselected, rasmol, redomove, reference, refresh, refreshing, remove, repaintwaitms, replace, reset, residue, resno, resolution, restore, restrict, resume, returncmd, reverse, reversecolor, rewind, ribbon, ribbonaspectratio, ribbonborder, right, rightbrace, rightparen, rightsquare, rna, rocket, rocketbarrels, rotate, rotate45, rotateSelected, rotation, rotationradius, row, rubberband, sasurface, save, saveproteinstructurestate, scale, scale3d, scaleangstromsperinch, script, scriptCommand, scriptqueue, scriptreportinglevel, search, select, selectallmodels, selected, selectedfloat, selecthetero, selecthydrogen, selection, selectionhalos, semicolon, seqcode, sequence, set, setparam, settable, shape, shapeCommand, shapely, sheet, sheetsmoothing, show, showaxes, showboundbox, showfrank, showhiddenselectionhalos, showhydrogens, showkeystrokes, showmeasurements, showmultiplebonds, shownavigationpointalways, showscript, showunitcell, sidechain, sigma, sign, silent, sin, site, size, slab, slabbyatom, slabbymolecule, slabenabled, slabrange, smallmoleculemaxatoms, smartaromatic, smiles, smiles2dimageformat, smilesurlformat, solid, solvent, solventprobe, solventproberadius, sort, spacebeforesquare, spacefill, spacegroup, spec_alternate, spec_atom, spec_chain, spec_model, spec_model2, spec_name_pattern, spec_resid, spec_seqcode, spec_seqcode_range, specialposition, specular, specularexponent, specularpercent, specularpower, sphere, spin, spine, spinfps, spinx, spiny, spinz, split, sqrt, squared, ssbond, ssbondsbackbone, star, state, statusreporting, stddev, step, stereo, stereodegrees, stop, straightness, strandcount, strandcountformeshribbon, strandcountforstrands, strands, string, strparam, strproperty, strucid, strucno, structure, strutdefaultradius, strutlengthmaximum, struts, strutsmultiple, strutspacing, sub, subset, substructure, sum, sum2, supercell, surface, surfacedistance, switchcmd, symbol, symmetry, symop, sync, syncmouse, syncscript, temperature, testflag1, testflag2, testflag3, testflag4, theta, thismodel, ticks, timeout, times, timestimes, title, titleformat, to, togglelabel, tok, tokenAll, tokenAnd, tokenAND, tokenAndFALSE, tokenArraySelector, tokenArraySquare, tokenColon, tokenComma, tokenConnected, tokenCoordinateBegin, tokenCoordinateEnd, tokenDefineString, tokenDivide, tokenEquals, tokenExpressionBegin, tokenExpressionEnd, tokenIf, tokenLeftParen, tokenMinus, tokenOff, tokenOn, tokenOpIf, tokenOr, tokenOrTRUE, tokenPlus, tokenRightBrace, tokenRightParen, tokenScript, tokenSet, tokenSetArray, tokenSetCmd, tokenSetProperty, tokenSetVar, tokenSpaceBeforeSquare, tokenSwitch, tokenTimes, top, torsion, trace, tracealpha, trajectory, transform, translate, translateSelected, translation, translucent, triangles, trim, trycmd, type, unaryMinus, unbind, undo, undomove, unitcell, unitcellcolor, unitx, unitxyz, unity, unitz, url, usearcball, useminimizationthread, usenumberlocalization, user, usercolorscheme, val, valence, value, vanderwaals, var, variable, variables, varray, vector, vectorscale, vertices, vibration, vibrationperiod, vibrationscale, vibx, vibxyz, viby, vibz, visible, visualrange, volume, w, waitformoveto, whilecmd, width, windowcentered, wireframe, wireframerotation, within, write, x, xyz, y, z, zap, zdepth, zerobasedxyzrasmol, zoom, zoomenabled, zoomlarge, zoomTo, zshade, zshadepower, zslab
Constructor and Description |
---|
ScriptVariable() |
ScriptVariable(BitSet bs,
int index) |
ScriptVariable(int tok) |
ScriptVariable(int tok,
int intValue) |
ScriptVariable(int tok,
int intValue,
Object value) |
ScriptVariable(int tok,
Object value) |
ScriptVariable(Token x) |
addToken, completeCommand, getAtomPropertiesLike, getCommandSet, getMaxMathParams, getParamType, getPrecedence, getSettableTokFromString, getTokenFromName, getTokensLike, getTokFromName, intToken, nameOf, tokAttr, tokAttrOr
private static final ScriptVariable vT
private static final ScriptVariable vF
static final ScriptVariable vAll
public int index
private static final int FLAG_CANINCREMENT
private static final int FLAG_LOCALVAR
private int flags
private String myName
private static final Point3f pt0
public ScriptVariable()
public ScriptVariable(int tok)
public ScriptVariable(int tok, int intValue, Object value)
public ScriptVariable(int tok, Object value)
public ScriptVariable(int tok, int intValue)
public ScriptVariable(BitSet bs, int index)
public ScriptVariable(Token x)
public static String typeOf(ScriptVariable x)
public static int sizeOf(Token x)
public static ScriptVariable intVariable(int intValue)
public static boolean isVariableType(Object x)
public static ScriptVariable getVariable(Object x)
x
- public ScriptVariable set(ScriptVariable v, boolean asCopy)
v
- asCopy
- create a new set of object pointers
for an array; copies an associative arraypublic ScriptVariable setName(String name)
public ScriptVariable setGlobal()
public boolean canIncrement()
public boolean increment(int n)
public boolean asBoolean()
public int asInt()
public float asFloat()
public String asString()
public Object getValAsObj()
public static Object oValue(ScriptVariable x)
x
- public static Object nValue(Token x)
x
- public static boolean bValue(Token x)
public static int iValue(Token x)
public static float fValue(Token x)
private static void sValueArray(StringBuffer sb, ScriptVariable vx, Map<Object,Boolean> map, int level, boolean isEscaped)
public static Point3f ptValue(ScriptVariable x)
public static Point4f pt4Value(ScriptVariable x)
private static float toFloat(String s)
public static ScriptVariable concatList(ScriptVariable x1, ScriptVariable x2, boolean asNew)
public static BitSet bsSelect(ScriptVariable var)
public static ScriptVariable selectItem(ScriptVariable var)
public static ScriptVariable selectItem(ScriptVariable var, int i2)
public boolean setSelectedValue(int selector, ScriptVariable var)
public String escape()
public static ScriptVariable getBoolean(boolean value)
public static Object sprintf(String strFormat, ScriptVariable var)
private static String sprintf(String strFormat, ScriptVariable var, Object[] of, int[] vd, float[] vf, double[] ve, boolean getS, boolean getP)
public static String sprintf(ScriptVariable[] args)
args
- public static BitSet getBitSet(ScriptVariable x, boolean allowNull)
public static boolean areEqual(ScriptVariable x1, ScriptVariable x2)
public ScriptVariable sortOrReverse(int arrayPt)
arrayPt
- 1-based or Integer.MIN_VALUE to reversepublic boolean unEscapeBitSetArray(BitSet bs)
public static BitSet unEscapeBitSetArray(ArrayList<ScriptVariable> x, boolean allowNull)
public static float[] flistValue(Token x, int nMin)
public void toArray()
public ScriptVariable mapValue(String key)
public List<ScriptVariable> getList()