public class SV extends T implements javajs.api.JSONEncodable
Modifier and Type | Class and Description |
---|---|
protected class |
SV.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 javajs.util.P3 |
pt0 |
private static SV |
vF |
private static SV |
vT |
abs, absolute, acos, add, addhydrogens, adjust, adpmax, adpmin, align, all, allconnected, allfloat, allowembeddedscripts, allowgestures, allowkeystrokes, allowmodelkit, allowmoveatoms, allowmultitouch, allowrotateselected, altloc, ambientocclusion, ambientpercent, amino, andequals, angle, angstroms, animation, animationfps, animationmode, 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, balls, barb, basemodel, basepair, best, bin, binary, bind, bitset, blockdata, bondcount, bondmode, bondmodeor, bondorder, bondpicking, bondradiusmilliangstroms, bonds, bondset, bondtolerance, booleanparam, bottom, boundbox, boundboxcolor, branch, breakcmd, brillouin, cache, calculate, cameradepth, cancel, cap, capture, carbohydrate, cartoon, cartoonbaseedges, cartoonladders, cartoonrockets, cartoonsfancy, casecmd, catchcmd, cavity, cd, cell, celshading, celshadingpower, center, centerAt, centroid, cgo, chain, chaincasesensitive, chainno, check, chemical, chemicalshift, 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, defaultdropscript, 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, drawfontsize, drawhover, drawing, drawpicking, dssp, dsspcalchydrogen, eccentricity, echo, ed, edges, edsurlcutoff, edsurlformat, element, elemisono, elemno, ellipsoid, ellipsoidarcs, ellipsoidarrows, ellipsoidaxes, ellipsoidaxisdiameter, ellipsoidball, ellipsoiddotcount, ellipsoiddots, ellipsoidfill, elsecmd, elseif, end, endifcmd, energy, energyunits, error, eta, exit, exitjmol, exportscale, expression, expressionBegin, expressionEnd, facecenteroffset, file, filecachedirectory, filecaching, fill, filter, find, first, fixed, fixedtemp, flat, floatparam, floatproperty, flowCommand, font, fontcaching, fontscaling, fontsize, forceautobond, forcefield, 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, legacyhaddition, length, lighting, line, linedata, lines, link, list, listf, load, loadatomdatatolerance, loadformat, loadligandformat, lobe, log, logcommands, logfile, loggestures, loglevel, lonepair, loop, lp, lumo, magneticshielding, manifest, mapProperty, mass, mathExpressionCommand, mathfunc, mathop, mathproperty, matrix3f, matrix4f, max, maxset, measure, measureallmodels, measurementlabels, measurementnumbers, measurements, measurementunits, menu, mep, mesh, meshRibbon, meshscale, 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, modulation, modulationscale, molecular, molecule, monitorenergy, monomer, morph, mousedragfactor, mousewheelfactor, move, moveto, movie, mrc, msms, mul, mul3, multiplebondradiusfactor, multiplebondspacing, multiprocessor, nada, name, navfps, navigate, navigatesurface, navigationdepth, navigationmode, navigationperiodic, navigationslab, navigationspeed, navx, navy, navz, nci, next, nmr, nmrpredictformat, nmrurlformat, noArgs, nocontourlines, nocross, nodebug, nodots, noedges, nofill, nohead, noload, nomesh, none, nonequivalent, 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, options, opToggle, opXor, orbital, orientation, origin, out, packed, palindrome, parallel, parameters, paramTypes, partialcharge, partialdots, particleradius, path, pathforallfiles, pause, pdb, pdbaddhydrogens, pdbgetheader, pdbheader, pdbsequential, per, percent, percentvdwatom, period, perpendicular, perspectivedepth, perspectivemodel, phase, phi, phongexponent, picking, pickingspinrate, pickingstyle, picklabel, plane, platformspeed, 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, pymol, 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, rock, rocket, rocketbarrels, rotate, rotate45, rotateSelected, rotation, rotationradius, row, rubberband, sasurface, save, saveproteinstructurestate, scale, scale3d, scaleangstromsperinch, scene, screenx, screenxyz, screeny, screenz, 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, showtiming, 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, starscale, 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, tensor, 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, tokenMul3, 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, twistedsheets, 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, vectorsymmetry, 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, zoomheight, zoomlarge, zoomTo, zshade, zshadepower, zslab
Constructor and Description |
---|
SV() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areEqual(SV x1,
SV x2) |
boolean |
asBoolean() |
float |
asFloat() |
int |
asInt() |
String |
asString() |
(package private) static BS |
bsSelectRange(T x,
int n) |
(package private) static BS |
bsSelectToken(T x) |
static BS |
bsSelectVar(SV var) |
private static boolean |
bValue(T x) |
(package private) boolean |
canIncrement() |
static SV |
concatList(SV x1,
SV x2,
boolean asNew) |
String |
escape() |
static float[] |
flistValue(T x,
int nMin) |
static float |
fValue(T x) |
static BS |
getBitSet(SV x,
boolean allowNull) |
static SV |
getBoolean(boolean value) |
javajs.util.List<SV> |
getList() |
static SV |
getVariable(Object x) |
(package private) static SV |
getVariableAB(byte[] ix) |
static SV |
getVariableAD(double[] f) |
(package private) static SV |
getVariableAF(float[] f) |
(package private) static SV |
getVariableAFF(float[][] fx) |
(package private) static SV |
getVariableAI(int[] ix) |
(package private) static SV |
getVariableAII(int[][] ix) |
(package private) static SV |
getVariableAP(javajs.util.P3[] p) |
(package private) static SV |
getVariableAS(String[] s) |
(package private) static SV |
getVariableAV(SV[] v) |
static SV |
getVariableList(javajs.util.List<?> v) |
static SV |
getVariableMap(Map<String,?> x) |
(package private) boolean |
increment(int n) |
private static boolean |
isArray(Object x) |
static boolean |
isScalar(SV x) |
static boolean |
isVariableType(Object x) |
static int |
iValue(T x) |
static String[] |
listValue(T x) |
(package private) SV |
mapValue(String key) |
static SV |
newI(int i) |
static SV |
newS(String s) |
(package private) static SV |
newSV(int tok,
int intValue,
Object value) |
static SV |
newT(T x) |
static SV |
newV(int tok,
Object value) |
(package private) static Object |
nValue(T x) |
static Object |
oValue(SV x) |
static javajs.util.P4 |
pt4Value(SV x) |
static javajs.util.P3 |
ptValue(SV x) |
SV |
pushPop(SV o) |
(package private) static T |
selectItemTok(T tokenIn,
int i2) |
(package private) static SV |
selectItemVar(SV var) |
SV |
setGlobal() |
SV |
setName(String name) |
(package private) boolean |
setSelectedValue(int selector,
SV var) |
(package private) SV |
setv(SV v,
boolean asCopy) |
(package private) static int |
sizeOf(T x) |
SV |
sortOrReverse(int arrayPt) |
static Object |
sprintf(String strFormat,
SV var) |
private static String |
sprintf(String strFormat,
SV var,
Object[] of,
int[] vd,
float[] vf,
double[] ve,
boolean getS,
boolean getP,
boolean getQ) |
static String |
sprintfArray(SV[] args)
sprintf accepts arguments from the format() function
First argument is a format string.
|
static String |
sValue(T x) |
private static void |
sValueArray(javajs.util.SB sb,
SV vx,
Map<Object,Boolean> map,
int level,
boolean isEscaped) |
void |
toArray() |
private static float |
toFloat(String s) |
String |
toJSON() |
String |
toString() |
(package private) static BS |
unEscapeBitSetArray(ArrayList<SV> x,
boolean allowNull) |
(package private) boolean |
unEscapeBitSetArray(BS bs) |
static Object |
unescapePointOrBitsetAsVariable(Object o) |
addToken, completeCommand, getAtomPropertiesLike, getCommandSet, getMaxMathParams, getParamType, getPrecedence, getSettableTokFromString, getTokenFromName, getTokensLike, getTokensType, getTokFromName, i, isIDcmd, n, nameOf, o, t, tokAttr, tokAttrOr, toString2, tv
private static final SV vT
private static final SV vF
public int index
private static final int FLAG_CANINCREMENT
private static final int FLAG_LOCALVAR
private int flags
private String myName
private static final javajs.util.P3 pt0
public static SV newI(int i)
static int sizeOf(T x)
public static boolean isVariableType(Object x)
public static SV getVariable(Object x)
x
- private static boolean isArray(Object x)
public static SV getVariableList(javajs.util.List<?> v)
public static SV getVariableAD(double[] f)
static SV getVariableAP(javajs.util.P3[] p)
static SV getVariableAFF(float[][] fx)
static SV getVariableAII(int[][] ix)
static SV getVariableAF(float[] f)
static SV getVariableAI(int[] ix)
static SV getVariableAB(byte[] ix)
public SV setGlobal()
boolean canIncrement()
boolean increment(int n)
public boolean asBoolean()
public int asInt()
public float asFloat()
public String asString()
private static boolean bValue(T x)
public static int iValue(T x)
public static float fValue(T x)
private static void sValueArray(javajs.util.SB sb, SV vx, Map<Object,Boolean> map, int level, boolean isEscaped)
public static javajs.util.P3 ptValue(SV x)
public static javajs.util.P4 pt4Value(SV x)
private static float toFloat(String s)
boolean setSelectedValue(int selector, SV var)
public String escape()
public static SV getBoolean(boolean value)
private static String sprintf(String strFormat, SV var, Object[] of, int[] vd, float[] vf, double[] ve, boolean getS, boolean getP, boolean getQ)
public static String sprintfArray(SV[] args)
args
- public SV sortOrReverse(int arrayPt)
arrayPt
- 1-based or Integer.MIN_VALUE to reverseboolean unEscapeBitSetArray(BS bs)
public static float[] flistValue(T x, int nMin)
public void toArray()
public javajs.util.List<SV> getList()
public static boolean isScalar(SV x)
public String toJSON()
toJSON
in interface javajs.api.JSONEncodable