Logo Search packages:      
Sourcecode: jmol version File versions  Download package

Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Package Functions | Package Attributes | Static Package Attributes | Static Private Member Functions | Private Attributes | Static Private Attributes

org::jmol::script::ScriptVariable Class Reference

Inheritance diagram for org::jmol::script::ScriptVariable:
Inheritance graph
[legend]
Collaboration diagram for org::jmol::script::ScriptVariable:
Collaboration graph
[legend]

List of all members.

Classes

class  Sort

Public Member Functions

boolean asBoolean ()
float asFloat ()
int asInt ()
String asString ()
boolean canIncrement ()
String escape ()
List getList ()
Object getValAsObj ()
boolean increment (int n)
ScriptVariable mapValue (String key)
 ScriptVariable (BitSet bs, int index)
 ScriptVariable (int tok, Object value)
 ScriptVariable (int tok)
 ScriptVariable (int tok, int intValue)
 ScriptVariable (int tok, int intValue, Object value)
 ScriptVariable (Token x)
ScriptVariable set (ScriptVariable v, boolean asCopy)
ScriptVariable setGlobal ()
ScriptVariable setName (String name)
boolean setSelectedValue (int selector, ScriptVariable var)
ScriptVariable sortOrReverse (int arrayPt)
void toArray ()
String toString ()
boolean unEscapeBitSetArray (BitSet bs)

Static Public Member Functions

static void addToken (String ident, Token token)
static boolean areEqual (ScriptVariable x1, ScriptVariable x2)
static BitSet bsSelect (ScriptVariable var)
static BitSet bsSelect (Token x)
static BitSet bsSelectRange (Token x, int n)
static boolean bValue (Token x)
static String completeCommand (Hashtable map, boolean isSet, boolean asCommand, String str, int n)
static ScriptVariable concatList (ScriptVariable x1, ScriptVariable x2, boolean asNew)
static float[] flistValue (Token x, int nMin)
static float fValue (Token x)
static BitSet getBitSet (ScriptVariable x, boolean allowNull)
static ScriptVariable getBoolean (boolean value)
static String getCommandSet (String strBegin)
static int getSettableTokFromString (String s)
static Token getTokenFromName (String name)
static String[] getTokensLike (String type)
static int getTokFromName (String name)
static ScriptVariable getVariable (Object x)
static final Token intToken (int intValue)
static ScriptVariable intVariable (int intValue)
static boolean isVariableType (Object x)
static int iValue (Token x)
static String[] listValue (Token x)
static String nameOf (int tok)
static Object nValue (Token x)
static Object oValue (ScriptVariable x)
static Point4f pt4Value (ScriptVariable x)
static Point3f ptValue (ScriptVariable x)
static Token selectItem (Token tokenIn, int i2)
static ScriptVariable selectItem (ScriptVariable var)
static Token selectItem (Token var)
static ScriptVariable selectItem (ScriptVariable var, int i2)
static int sizeOf (Token x)
static String sprintf (ScriptVariable[] args)
static Object sprintf (String strFormat, ScriptVariable var)
static String sValue (Token x)
static boolean tokAttr (int a, int b)
static boolean tokAttrOr (int a, int b1, int b2)
static String typeOf (ScriptVariable x)
static BitSet unEscapeBitSetArray (List x, boolean allowNull)
static Object unescapePointOrBitsetAsVariable (Object o)

Public Attributes

int index = Integer.MAX_VALUE
int intValue = Integer.MAX_VALUE
int tok
Object value

Static Public Attributes

static final int adpmax = floatproperty | 1
static final int adpmin = floatproperty | 2
static final int all = expression | 3
static final int allfloat = 8 << 5
static final int allowembeddedscripts = booleanparam | 2
static final int allowgestures = booleanparam | 4
static final int allowkeystrokes = booleanparam | 5
static final int allowmodelkit = booleanparam | 6
static final int allowmultitouch = booleanparam | 7
static final int allowrotateselected = booleanparam | 8
static final int altloc = strproperty | 3
static final int ambientpercent = intparam | 2
static final int angle = 7 | 0 << 9 | mathfunc
static final int animationfps = intparam | 4
static final int antialiasdisplay = booleanparam | 10
static final int antialiasimages = booleanparam | 12
static final int antialiastranslucent = booleanparam | 14
static final int appendnew = booleanparam | 16
static final int appletproxy = strparam | 2
static final int applysymmetrytobonds = booleanparam | 18
static final int array = 1 | 0 << 9 | mathfunc
static final int atomid = intproperty | 2
static final int atomindex = intproperty | 3
static final int atomname = strproperty | 2 | settable
static final int atomno = intproperty | 1 | settable
static final int atompicking = booleanparam | 20
static final int atomproperty = (1 << 22) | expression | misc
static final int atoms = 1 | mathproperty
static final int atomtype = strproperty | 1 | settable
static final int atomtypes = strparam | 4
static final int atomx = floatproperty | 1 | settable
static final int atomy = floatproperty | 2 | settable
static final int atomz = floatproperty | 3 | settable
static final int auto = misc | 28
static final int autobond = booleanparam | 22
static final int autofps = booleanparam | 24
static final int average = 3 << 5
static final int axes = shapeCommand | 2 | deprecatedparam | defaultON
static final int axescolor = strparam | 6
static final int axesmode = intparam | 6
static final int axesmolecular = booleanparam | 28
static final int axesorientationrasmol = booleanparam | 30
static final int axesscale = floatparam | 2
static final int axesunitcell = booleanparam | 32
static final int axeswindow = booleanparam | 34
static final int axis = misc | 30
static final int axis1color = strparam | 8
static final int axis2color = strparam | 10
static final int axis3color = strparam | 12
static final int backbone = floatproperty | shapeCommand | 1 | predefinedset | defaultON | settable
static final int backgroundcolor = strparam | 14
static final int backgroundmodel = setparam | 2
static final int backlit = misc | 38
static final int basepair = misc | 40
static final int bitset = 10
static final int bondcount = intproperty | 4
static final int bondmodeor = booleanparam | 36
static final int bondpicking = booleanparam | 38
static final int bondradiusmilliangstroms = intparam | 8
static final int bonds = 2 | mathproperty | deprecatedparam
static final int bondtolerance = floatparam | 4
static final int booleanparam = (1 << 26) | setparam
static final int boundbox = 9 | mathproperty | deprecatedparam | shapeCommand | defaultON
static final int boundboxcolor = strparam | 16
static final int branch = expression | 4
static final int cameradepth = floatparam | 6
static final int carbohydrate = predefinedset | 36
static final int cartoon = floatproperty | shapeCommand | 2 | defaultON | settable
static final int cartoonbaseedges = booleanparam | 42
static final int cartoonrockets = booleanparam | 43
static final int cell = intproperty | 5
static final int center = 1 | atomExpressionCommand
static final int chain = strproperty | 4
static final int chaincasesensitive = booleanparam | 44
static final int color = intproperty | 7 | scriptCommand | deprecatedparam | settable
static final int colorrasmol = booleanparam | 46
static final int configuration = intproperty | 6 | scriptCommand
static final int connect = scriptCommand | 10
static final int connected = 15 | 0 << 9 | mathfunc
static final int contourlines = misc | 74
static final int covalent = floatproperty | 3
static final int create = misc | 80
static final int cross = 1 | 2 << 9 | mathfunc
static final int currentlocalpath = strparam | 18
static final int data = 8 | 0 << 9 | mathfunc | scriptCommand
static final int dataseparator = strparam | 20
static final int debug = setparam | 4
static final int debugscript = booleanparam | 48
static final int decimal = 3
static final int defaultanglelabel = strparam | 22
static final int defaultcolorscheme = strparam | 24
static final int defaultdirectory = strparam | 26
static final int defaultdistancelabel = strparam | 28
static final int defaultdrawarrowscale = floatparam | 8
static final int defaultlattice = setparam | 6
static final int defaultloadfilter = strparam | 29
static final int defaultloadscript = strparam | 30
static final int defaults = strparam | 32
static final int defaultstructuredssp = booleanparam | 49
static final int defaulttorsionlabel = strparam | 34
static final int defaulttranslucent = floatparam | 10
static final int defaultvdw = strparam | 36
static final int define = 2 | atomExpressionCommand | expression
static final int delaymaximumms = intparam | 10
static final int delete = 3 | atomExpressionCommand
static final int diffusepercent = intparam | 14
static final int dipole = shapeCommand | 14
static final int dipolescale = floatparam | 12
static final int disablepopupmenu = booleanparam | 50
static final int displaycellparameters = booleanparam | 52
static final int dna = predefinedset | 4
static final int dotdensity = intparam | 15
static final int dots = floatproperty | shapeCommand | 3 | defaultON
static final int dotscale = intparam | 16
static final int dotsselectedonly = booleanparam | 53
static final int dotsurface = booleanparam | 54
static final int dragselected = booleanparam | 55
static final int draw = shapeCommand | 16
static final int drawhover = booleanparam | 56
static final int drawpicking = booleanparam | 57
static final int dsspcalchydrogen = booleanparam | 58
static final int dynamicmeasurements = booleanparam | 59
static final int echo = 1 | implicitStringCommand | shapeCommand | setparam
static final int edsurlcutoff = strparam | 37
static final int edsurlformat = strparam | 38
static final int element = strproperty | 5 | settable
static final int elemno = intproperty | 8 | settable
static final int ellipsoid = floatproperty | shapeCommand | 4 | defaultON
static final int ellipsoidarcs = booleanparam | 60
static final int ellipsoidaxes = booleanparam | 61
static final int ellipsoidaxisdiameter = floatparam | 14
static final int ellipsoidball = booleanparam | 62
static final int ellipsoiddotcount = intparam | 17
static final int ellipsoiddots = booleanparam | 63
static final int ellipsoidfill = booleanparam | 64
static final int eta = floatproperty | 4
static final int file = 7 | 1 << 9 | mathfunc | intproperty | scriptCommand
static final int filecachedirectory = strparam | 39
static final int filecaching = booleanparam | 66
static final int fill = misc | 114
static final int first = misc | 118
static final int floatparam = (1 << 25) | setparam
static final int floatproperty = (1 << 25) | atomproperty
static final int fontcaching = booleanparam | 68
static final int fontscaling = booleanparam | 69
static final int forceautobond = booleanparam | 70
static final int formalcharge = intproperty | 9 | setparam | settable
static final int format = 2 | 0 << 9 | mathfunc | mathproperty | strproperty | settable
static final int fractionalrelative = booleanparam | 72
static final int fracx = floatproperty | 4 | settable
static final int fracxyz = 11 | mathproperty | atomproperty | settable
static final int fracy = floatproperty | 5 | settable
static final int fracz = floatproperty | 6 | settable
static final int frank = shapeCommand | 21 | deprecatedparam | defaultON
static final int front = misc | 130
static final int frontlit = misc | 134
static final int frontonly = misc | 136
static final int fullylit = misc | 140
static final int fux = floatproperty | 7 | settable
static final int fuxyz = 12 | mathproperty | atomproperty | settable
static final int fuy = floatproperty | 8 | settable
static final int fuz = floatproperty | 9 | settable
static final int geosurface = floatproperty | shapeCommand | 5 | defaultON
static final int gestureswipefactor = floatparam | 15
static final int greyscalerendering = booleanparam | 74
static final int group = strproperty | 6
static final int group1 = strproperty | 7
static final int groupid = intproperty | 10
static final int groupindex = intproperty | 11
static final int halo = floatproperty | shapeCommand | 6 | defaultON | settable
static final int hash = 6
static final int hbond = scriptCommand | 22 | deprecatedparam | expression | defaultON
static final int hbondsangleminimum = floatparam | 16
static final int hbondsbackbone = booleanparam | 76
static final int hbondsdistancemaximum = floatparam | 17
static final int hbondsrasmol = booleanparam | 77
static final int hbondssolid = booleanparam | 78
static final int helix = 16 | 0 << 9 | mathfunc | predefinedset
static final int helixstep = intparam | 18
static final int helppath = strparam | 40
static final int hermitelevel = intparam | 20
static final int hetero = predefinedset | 6 | deprecatedparam
static final int hidenameinpopup = booleanparam | 82
static final int hidenavigationpoint = booleanparam | 84
static final int hidenotselected = booleanparam | 86
static final int highlight = setparam | 8
static final int highresolution = booleanparam | 88
static final int historylevel = intparam | 21
static final int hover = 3 | implicitStringCommand | defaultON
static final int hoverdelay = floatparam | 18
static final int hoverlabel = strparam | 42
static final int hydrogen = predefinedset | 12 | deprecatedparam
static final int identifier = misc
static final int identify = strproperty | 9
static final int imagestate = booleanparam | 92
static final int info = misc | 158
static final int insertion = strproperty |10
static final int integer = 2
static final int intparam = (1 << 24) | setparam
static final int intproperty = (1 << 24) | atomproperty
static final int ionic = floatproperty | 10 | settable
static final int isaromatic = expression | 9
static final int iskiosk = booleanparam | 93
static final int isosurface = shapeCommand | 29
static final int isosurfacepropertysmoothing = booleanparam | 94
static final int jmol = misc | 168
static final int justifymeasurements = booleanparam | 96
static final int label = 3 | 0 << 9 | mathfunc | mathproperty | strproperty | settable | implicitStringCommand | shapeCommand | defaultON | deprecatedparam
static final int language = strparam | 44
static final int languagetranslation = booleanparam | 97
static final int last = misc | 170
static final int lcaocartoon = shapeCommand | 30
static final int legacyautobonding = booleanparam | 98
static final int list = misc | 177
static final int loadatomdatatolerance = floatparam | 19
static final int loadformat = strparam | 46
static final int logcommands = booleanparam | 99
static final int logfile = strparam | 47
static final int loggestures = booleanparam | 100
static final int loglevel = intparam | 22
static final int matrix3f = 11
static final int matrix4f = 12
static final int max = 2 << 5
static final int measure = 7 | 0 << 9| mathfunc | shapeCommand | deprecatedparam | defaultON
static final int measureallmodels = booleanparam | 101
static final int measurementlabels = booleanparam | 102
static final int measurements = shapeCommand | 31 | setparam
static final int measurementunits = strparam | 48
static final int mesh = misc | 194
static final int meshRibbon = floatproperty | shapeCommand | 7 | defaultON | settable
static final int messagestylechime = booleanparam | 103
static final int min = 1 << 5
static final int minbonddistance = floatparam | 20
static final int minimizationcriterion = floatparam | 21
static final int minimizationrefresh = booleanparam | 104
static final int minimizationsilent = booleanparam | 105
static final int minimizationsteps = intparam | 23
static final int mo = shapeCommand | 33 | expression
static final int model = intproperty | 12 | scriptCommand
static final int modelindex = intproperty | 13
static final int modelkitmode = booleanparam | 106
static final int modify = misc | 200
static final int modifyorcreate = misc | 202
static final int molecule = intproperty | 14
static final int monitorenergy = booleanparam | 107
static final int mousedragfactor = floatparam | 22
static final int mousewheelfactor = floatparam | 23
static final int moveto = scriptCommand | 34
static final int multiplebondradiusfactor = floatparam | 24
static final int multiplebondspacing = floatparam | 25
static final int multiprocessor = booleanparam | 108
static final int nada = 0
static final int navfps = floatparam | 26
static final int navigate = scriptCommand | 35
static final int navigatesurface = booleanparam | 109
static final int navigationdepth = floatparam | 27
static final int navigationmode = booleanparam | 110
static final int navigationperiodic = booleanparam | 111
static final int navigationslab = floatparam | 28
static final int navigationspeed = floatparam | 30
static final int navx = floatparam | 32
static final int navy = floatparam | 34
static final int navz = floatparam | 36
static final int next = misc | 210
static final int nocontourlines = misc | 212
static final int nodots = misc | 218
static final int nofill = misc | 222
static final int nomesh = misc | 228
static final int notfrontonly = misc | 234
static final int notriangles = misc | 236
static final int nucleic = predefinedset | 14
static final int occupancy = intproperty | floatproperty | 2 | settable
static final int off = expression | 12
static final int omega = floatproperty | 5
static final int on = expression | 13
static final int opEQ = 4 | comparator | 9 << 4
static final int opToggle = 2 | mathop | 5 << 4
static final int partialcharge = floatproperty | 11| settable
static final int pause = 7 | implicitStringCommand
static final int pdbgetheader = booleanparam | 112
static final int pdbsequential = booleanparam | 114
static final int percent = 2 | mathop | 11 << 4
static final int percentvdwatom = intparam | 24
static final int perspectivedepth = booleanparam | 116
static final int perspectivemodel = intparam | 26
static final int phi = floatproperty | 6
static final int phongexponent = intparam | 28
static final int picking = strparam | 49
static final int pickingspinrate = intparam | 30
static final int pickingstyle = strparam | 50
static final int picklabel = strparam | 52
static final int plane = 9 | 0 << 9 | mathfunc
static final int play = misc | 272
static final int playrev = misc | 274
static final int plot3d = shapeCommand | 39
static final int pmesh = shapeCommand | 38
static final int point = 10 | 0 << 9 | mathfunc
static final int point3f = 8
static final int point4f = 9
static final int pointgroupdistancetolerance = floatparam | 38
static final int pointgrouplineartolerance = floatparam | 40
static final int polyhedra = shapeCommand | 40
static final int polymer = intproperty | 15
static final int polymerlength = intproperty | 16
static final int preservestate = booleanparam | 117
static final int prev = misc | 284
static final int property = floatproperty | 12| mathproperty | setparam | settable
static final int propertyatomnumbercolumncount = intparam | 32
static final int propertyatomnumberfield = intparam | 31
static final int propertycolorscheme = strparam | 54
static final int propertydatacolumncount = intparam | 34
static final int propertydatafield = intparam | 36
static final int PROPERTYFLAGS = strproperty | intproperty | floatproperty
static final int protein = predefinedset | 16
static final int psi = floatproperty | 7
static final int purine = predefinedset | 18
static final int pyrimidine = predefinedset | 20
static final int quaternionframe = strparam | 58
static final int radius = intproperty | floatproperty | 1 | deprecatedparam | settable
static final int rangeselected = booleanparam | 118
static final int rasmol = misc | 292
static final int refreshing = booleanparam | 120
static final int repaintwaitms = intparam | 37
static final int residue = misc | 296
static final int resno = intproperty | 17
static final int resume = scriptCommand | 46 | noArgs
static final int reverse = 5 | mathproperty
static final int rewind = misc | 302
static final int ribbon = floatproperty | shapeCommand | 9 | defaultON | settable
static final int ribbonaspectratio = intparam | 38
static final int ribbonborder = booleanparam | 122
static final int rna = predefinedset | 22
static final int rocket = floatproperty | shapeCommand | 10 | defaultON | settable
static final int rocketbarrels = booleanparam | 124
static final int rotation = misc | 308
static final int rotationradius = floatparam | 44
static final int saveproteinstructurestate = booleanparam | 126
static final int scaleangstromsperinch = floatparam | 46
static final int scriptCommand = (1 << 12)
static final int scriptqueue = booleanparam | 128
static final int scriptreportinglevel = intparam | 40
static final int selectallmodels = booleanparam | 130
static final int selected = floatproperty | 13 | settable | predefinedset
static final int selectedfloat = 7 << 5
static final int selecthetero = booleanparam | 132
static final int selecthydrogen = booleanparam | 134
static final int selectionhalos = scriptCommand | 51 | deprecatedparam | defaultON
static final int sequence = strproperty | 8
static final int sheet = predefinedset | 32
static final int sheetsmoothing = floatparam | 48
static final int showaxes = booleanparam | 138
static final int showboundbox = booleanparam | 140
static final int showfrank = booleanparam | 142
static final int showhiddenselectionhalos = booleanparam | 144
static final int showhydrogens = booleanparam | 146
static final int showkeystrokes = booleanparam | 148
static final int showmeasurements = booleanparam | 150
static final int showmultiplebonds = booleanparam | 152
static final int shownavigationpointalways = booleanparam | 154
static final int showscript = setparam | 10
static final int showunitcell = booleanparam | 160
static final int sidechain = predefinedset | 26
static final int site = intproperty | 18
static final int slabbyatom = booleanparam | 162
static final int slabbymolecule = booleanparam | 164
static final int slabenabled = booleanparam | 166
static final int smallmoleculemaxatoms = intparam | 42
static final int smartaromatic = booleanparam | 168
static final int smilesurlformat = strparam | 60
static final int solvent = predefinedset | 24 | deprecatedparam
static final int solventprobe = booleanparam | 172
static final int solventproberadius = floatparam | 50
static final int sort = 7 | mathproperty
static final int spacefill = floatproperty | shapeCommand | 11 | defaultON | settable
static final int spec_alternate = expression | 31
static final int spec_atom = expression | 32
static final int spec_chain = expression | 33
static final int spec_model = expression | 34
static final int spec_name_pattern = expression | 36
static final int spec_resid = expression | 37
static final int spec_seqcode = expression | 38
static final int spec_seqcode_range = expression | 39
static final int specialposition = predefinedset | 44
static final int specular = setparam | 12
static final int specularexponent = intparam | 44
static final int specularpercent = intparam | 46
static final int specularpower = intparam | 48
static final int spine = predefinedset | 34
static final int spinfps = floatparam | 52
static final int spinx = floatparam | 54
static final int spiny = floatparam | 56
static final int spinz = floatparam | 58
static final int ssbond = scriptCommand | 56 | deprecatedparam | defaultON
static final int ssbondsbackbone = booleanparam | 176
static final int star = floatproperty | shapeCommand | 12 | defaultON | settable
static final int statusreporting = booleanparam | 178
static final int stddev = 6 << 5
static final int stereodegrees = floatparam | 60
static final int straightness = floatproperty | 8
static final int strandcount = intparam | 50
static final int strandcountformeshribbon = intparam | 52
static final int strandcountforstrands = intparam | 54
static final int strands = floatproperty | shapeCommand | 13 | deprecatedparam | defaultON | settable
static final int string = 4
static final int strparam = (1 << 23) | setparam
static final int strproperty = (1 << 23) | atomproperty
static final int strucid = strproperty |11
static final int strucno = intproperty | 19
static final int structure = intproperty | strproperty | 3 | scriptCommand
static final int strutdefaultradius = floatparam | 62
static final int strutlengthmaximum = floatparam | 64
static final int struts = shapeCommand | 57 | defaultON | expression
static final int strutsmultiple = booleanparam | 179
static final int strutspacing = intparam | 56
static final int substructure = 6 | 2 << 9 | mathfunc | intproperty | strproperty
static final int sum = 4 << 5
static final int sum2 = 5 << 5
static final int surfacedistance = floatproperty | 9
static final int symbol = strproperty |12 | settable
static final int symmetry = strproperty |13 | predefinedset
static final int symop = 2 | 3 << 9 | mathfunc | mathproperty | intproperty
static final int syncmouse = booleanparam | 180
static final int syncscript = booleanparam | 182
static final int temperature = floatproperty | 14 | settable
static final int testflag1 = booleanparam | 184
static final int testflag2 = booleanparam | 186
static final int testflag3 = booleanparam | 188
static final int testflag4 = booleanparam | 190
static final int theta = floatproperty | 10
static final Token tokenAnd = new Token(opAnd, "and")
static final Token tokenAND = new Token(opAND, "")
static final Token tokenAndFALSE = new Token(opAnd, "and")
static final Token tokenComma = new Token(comma, ",")
static final Token tokenConnected = new Token(connected, "connected")
static final Token tokenExpressionBegin = new Token(expressionBegin, "expressionBegin")
static final Token tokenExpressionEnd = new Token(expressionEnd, "expressionEnd")
static final Token tokenLeftParen = new Token(leftparen, "(")
static final Token tokenOpIf = new Token(opIf, "?")
static final Token tokenOr = new Token(opOr, "or")
static final Token tokenOrTRUE = new Token(opOr, "or")
static final Token tokenRightParen = new Token(rightparen, ")")
static final int trace = floatproperty | shapeCommand | 14 | defaultON | settable
static final int tracealpha = booleanparam | 191
static final int trajectory = setparam | 14
static final int translation = misc | 354
static final int translucent = misc | 356
static final int triangles = misc | 358
static final int type = 8 | mathproperty
static final int undo = booleanparam | 192
static final int unitcell = shapeCommand | 64 | deprecatedparam | expression | predefinedset | defaultON
static final int unitcellcolor = strparam | 62
static final int unitx = floatproperty | 11
static final int unitxyz = 13 | mathproperty | atomproperty
static final int unity = floatproperty | 12
static final int unitz = floatproperty | 13
static final int usearcball = booleanparam | 193
static final int useminimizationthread = booleanparam | 194
static final int usenumberlocalization = booleanparam | 196
static final int usercolorscheme = setparam | 16
static final int valence = intproperty | 20 | settable
static final int vanderwaals = floatproperty | 15 | settable
static final int varray = 7
static final int vector = shapeCommand | 65
static final int vectorscale = floatparam | 66
static final int vibration = scriptCommand | 70
static final int vibrationperiod = floatparam | 68
static final int vibrationscale = floatparam | 70
static final int vibx = floatproperty | 16 | settable
static final int vibxyz = 14 | mathproperty | atomproperty | settable
static final int viby = floatproperty | 17 | settable
static final int vibz = floatproperty | 18 | settable
static final int visualrange = floatparam | 72
static final int volume = 7 | 1 << 9 | mathfunc | mathproperty | floatproperty
static final int waitformoveto = booleanparam | 197
static final int windowcentered = booleanparam | 198
static final int wireframe = shapeCommand | 67 | defaultON
static final int wireframerotation = booleanparam | 200
static final int x = floatproperty | 19 | settable
static final int xyz = 10 | mathproperty | atomproperty | settable
static final int y = floatproperty | 20 | settable
static final int z = floatproperty | 21 | settable
static final int zerobasedxyzrasmol = booleanparam | 202
static final int zoomenabled = booleanparam | 204
static final int zoomlarge = booleanparam | 206
static final int zshade = booleanparam | 208
static final int zshadepower = intparam | 58

Static Package Functions

 [static initializer]
static int getMaxMathParams (int tokCommand)
static int getPrecedence (int tokOperator)

Package Attributes

String name

Static Package Attributes

static final int abs = 10 | 1 << 9 | mathfunc
static final int absolute = misc | 2
static final int acos = 3 | 1 << 9 | mathfunc
static final int add = 1 | 2 << 9 | mathfunc | mathproperty
static final int addhydrogens = misc | 4
static final int adjust = misc | 6
static final int align = misc | 8
static final int allconnected = misc | 10
static final int amino = predefinedset | 2
static final int andequals = 2 | mathop | 13 << 4
static final int angstroms = misc | 12
static final int animation = scriptCommand | 1
static final int anisotropy = misc | 14
static final int arc = misc | 16 | expression
static final int area = misc | 18
static final int aromatic = misc | 20 | predefinedset
static final int arrow = misc | 22
static final int as = misc | 24
static final int assign = scriptCommand | 2
static final String[] astrType
static final int atomExpressionCommand = (1 << 13) | scriptCommand
static final int atomicorbital = misc | 26
static final int axisangle = 12 | 0 << 9 | mathfunc
static final int babel = misc | 32
static final int babel21 = misc | 34
static final int back = misc | 36
static final int background = scriptCommand | 3 | deprecatedparam
static final int bin = 1 | 3 << 9 | mathfunc | mathproperty
static final int binary = misc | 42
static final int bind = scriptCommand | 4
static final int blockdata = misc | 44
static final int bondmode = deprecatedparam | 1
static final int bondorder = scriptCommand | 5
static final int bondset = misc | 46
static final int bottom = misc | 48
static final int breakcmd = 7 | flowCommand
static final int calculate = scriptCommand | 6
static final int cancel = misc | 49
static final int cap = misc | 50 | expression
static final int casecmd = 11 | flowCommand
static final int catchcmd = 12 | flowCommand
static final int cavity = misc | 52
static final int cd = scriptCommand | 8 | implicitStringCommand | expression
static final int centerAt = scriptCommand | 9
static final int check = misc | 54
static final int circle = misc | 56
static final int clear = misc | 58
static final int clickable = predefinedset | 38
static final int clipboard = misc | 60
static final int col = 8 | 1 << 9 | mathfunc | mathproperty
static final int collapsed = misc | 62
static final int colon = 2 | mathop | 2 << 4
static final int colorscheme = misc | 64
static final int comma = 0 | mathop | 3 << 4
static final int command = misc | 66
static final int commands = misc | 68
static final int comparator = mathop | (1 << 8)
static final int compare = 13 | 0 << 9 | mathfunc | scriptCommand
static final int console = scriptCommand | 11 | defaultON
static final int constraint = misc | 70
static final int continuecmd = 8 | flowCommand
static final int contour = misc | 72
static final int contours = misc | 76
static final int coord = expression | 6
static final int corners = misc | 78
static final int cos = 5 | 1 << 9 | mathfunc
static final int criterion = misc | 81
static final int crossed = misc | 82
static final int curve = misc | 84
static final int cutoff = misc | 86
static final int cylinder = misc | 88
static final int defaultcmd = 13 | flowCommand
static final int defaultON = (1 << 19)
static final int delay = scriptCommand | 12 | defaultON
static final int density = misc | 90
static final int deprecatedparam = setparam | misc
static final int depth = scriptCommand | 13 | defaultON
static final int diameter = misc | 92
static final int direction = misc | 94
static final int discrete = misc | 96
static final int displacement = misc | 98
static final int display = 4 | atomExpressionCommand | deprecatedparam
static final int displayed = predefinedset | 40
static final int distance = 2 | 2 << 9 | mathfunc | mathproperty
static final int distancefactor = misc | 100
static final int div = 0 | 1 << 9 | mathfunc | mathproperty
static final int divide = 0 | mathop | 11 << 4
static final int dollarsign = expression | 7
static final int dot = 1 | 1 << 9 | mathfunc | mathproperty
static final int dotted = misc | 102
static final int downsample = misc | 104
static final int dssp = misc | 91
static final int eccentricity = misc | 106
static final int ed = misc | 108 | expression
static final int edges = misc | 110
static final int elsecmd = 3 | flowCommand | noArgs
static final int elseif = 2 | flowCommand
static final int end = 9 | flowCommand | expression
static final int endifcmd = 4 | flowCommand | noArgs
static final int energy = misc | 111
static final int error = misc | 112
static final int exit = scriptCommand | 14 | noArgs
static final int exitjmol = scriptCommand | 17 | noArgs
static final int expression = (1 << 20)
static final int expressionBegin = expression | 1
static final int expressionEnd = expression | 2
static final int facecenteroffset = misc | 113
static final int filter = misc | 116
static final int find = 4 | 3 << 9 | mathfunc | mathproperty
static final int fixed = 5 | atomExpressionCommand | expression
static final int fixedtemp = misc | 122
static final int flat = misc | 124
static final int flowCommand = (1 << 16) | mathExpressionCommand
static final int font = scriptCommand | 18
static final int fontsize = deprecatedparam | 2
static final int forcmd = 8 | 1 << 9 | mathfunc | flowCommand
static final int fps = misc | 126 | expression
static final int frame = scriptCommand | 19
static final int from = misc | 128
static final int frontedges = misc | 132
static final int fullplane = misc | 138
static final int function = 4 | 0 << 9 | mathfunc | flowCommand
static final int functionxy = misc | 142
static final int functionxyz = misc | 144
static final int getproperty = 5 | 0 << 9 | mathfunc | scriptCommand
static final int gotocmd = scriptCommand | 20 | implicitStringCommand
static final int gridpoints = misc | 146
static final int helix310 = predefinedset | 8
static final int helixalpha = predefinedset | 7
static final int helixpi = predefinedset | 10
static final int help = 2 | implicitStringCommand
static final int hidden = predefinedset | 42
static final int hide = 6 | atomExpressionCommand
static final int history = scriptCommand | 23 | deprecatedparam
static final int hkl = 1 | 3 << 9 | mathfunc
static final int homo = misc | 148
static final int id = misc | 150 | expression
static final int ifcmd = 9 | 1 << 9 | mathfunc | flowCommand
static final int ignore = misc | 152
static final int image = misc | 154
static final int implicitStringCommand = (1 << 14) | scriptCommand
static final int in = misc | 155
static final int increment = misc | 156
static final int initialize = scriptCommand | 24 | noArgs
static final int insideout = misc | 160
static final int interior = misc | 162
static final int internal = misc | 164
static final int intersection = misc | 166
static final int invertSelected = scriptCommand | 25
static final int javascript = 12 | 1 << 9 | mathfunc | implicitStringCommand
static final int join = 2 | 1 << 9 | mathfunc | mathproperty
static final int keys = 16 | mathproperty
static final int lattice = misc | 171
static final int left = misc | 172
static final int leftbrace = expression | 10
static final int leftdivide = 3 | mathop | 11 << 4
static final int leftparen = 0 | mathop | 1 << 4
static final int leftsquare = 0 | mathop | 4 << 4
static final int length = 3 | mathproperty
static final int line = misc | 174
static final int linedata = misc | 176
static final int lines = 4 | mathproperty
static final int listf = 13
static final int load = 2 | 2 << 9 | mathfunc | scriptCommand
static final int lobe = misc | 178
static final int log = 5 | mathExpressionCommand
static final int lonepair = misc | 180
static final int loop = scriptCommand | 26 | defaultON
static final int lp = misc | 182
static final int lumo = misc | 184
static final int manifest = misc | 186
static final int mapProperty = scriptCommand | 28 | expression
static final int mathExpressionCommand = (1 << 15) | scriptCommand
static final int mathfunc = (1 << 27) | expression
static final int mathop = (1 << 28) | expression
static final int mathproperty = (1 << 26) | expression | misc
static final int maxset = misc | 190
static final int measurementnumbers = deprecatedparam | 3
static final int mep = misc | 192
static final int message = 5 | implicitStringCommand
static final int minimize = scriptCommand | 30
static final int minmaxmask = 0xF << 5
static final int minset = misc | 196
static final int minus = 0 | mathop | 10 << 4
static final int minusMinus = 1 | mathop | 12 << 4
static final int misc = (1 << 30)
static final int mlp = misc | 197
static final int mode = misc | 198
static final int modelbased = misc | 204
static final int molecular = misc | 206
static final int monomer = misc | 208
static final int move = scriptCommand | 32
static final int mul = 3 | 1 << 9 | mathfunc | mathproperty
static final int noArgs = (1 << 18)
static final int nocross = misc | 214
static final int nodebug = misc | 216
static final int noedges = misc | 220
static final int nohead = misc | 224
static final int noload = misc | 226
static final int none = expression | 11
static final int noplane = misc | 230
static final int normal = misc | 232
static final int now = 17 | 0 << 9 | mathfunc
static final int obj = misc | 238
static final int object = misc | 240
static final int offset = misc | 242
static final int offsetside = misc | 244
static final int once = misc | 246
static final int only = misc | 248
static final int opAND = 0 | mathop | 8 << 4
static final int opAnd = 0 | mathop | 6 << 4
static final int opaque = misc | 250
static final int opGE = 1 | comparator | 9 << 4
static final int opGT = 0 | comparator | 9 << 4
static final int opIf = 1 | mathop | 2 << 4 | setparam
static final int opLE = 2 | comparator | 9 << 4
static final int opLT = 3 | comparator | 9 << 4
static final int opNE = 5 | comparator | 9 << 4
static final int opNot = 0 | mathop | 7 << 4
static final int opOr = 0 | mathop | 5 << 4
static final int opXor = 1 | mathop | 5 << 4
static final int orbital = misc | 252
static final int orientation = misc | 254
static final int out = misc | 255
static final int packed = misc | 256
static final int palindrome = misc | 258
static final int parallel = flowCommand | 36
static final int path = misc | 260
static final int pdb = misc | 262 | expression
static final int pdbheader = misc | 264
static final int per = expression | 8
static final int period = misc | 266
static final int perpendicular = misc | 268
static final int phase = misc | 270
static final int plot = scriptCommand | 37
static final int plus = 1 | mathop | 10 << 4
static final int plusPlus = 2 | mathop | 12 << 4
static final int pocket = misc | 276
static final int pointgroup = misc | 278
static final int pointsperangstrom = misc | 280
static final int polygon = misc | 282
static final int pop = scriptCommand | 38 | noArgs
static final int predefinedset = (1 << 21) | expression
static final int print = 1 | mathExpressionCommand
static final int process = flowCommand | 39
static final int prompt = 2 | 3 << 9 | mathfunc | mathExpressionCommand
static final int propselector = 1 | mathop | 13 << 4
static final int push = scriptCommand | 40 | noArgs
static final int quaternion = 11 | 0 << 9 | mathfunc | scriptCommand
static final int quit = scriptCommand | 41 | noArgs
static final int rad = misc | 286
static final int radical = misc | 288
static final int ramachandran = scriptCommand | 42 | expression
static final int random = 4 | 2 << 9 | mathfunc
static final int range = misc | 290
static final int reference = misc | 294
static final int refresh = scriptCommand | 43 | noArgs
static final int replace = 3 | 2 << 9 | mathfunc | mathproperty
static final int reset = scriptCommand | 44
static final int resolution = misc | 298
static final int restore = scriptCommand | 45
static final int restrict = 7 | atomExpressionCommand
static final int returncmd = 2 | mathExpressionCommand
static final int reversecolor = misc | 300
static final int right = misc | 304
static final int rightbrace = expression | 14
static final int rightparen = 1 | mathop | 1 << 4
static final int rightsquare = 1 | mathop | 4 << 4
static final int rotate = scriptCommand | 48 | defaultON
static final int rotate45 = misc | 306
static final int rotateSelected = scriptCommand | 49
static final int row = 9 | 1 << 9 | mathfunc | mathproperty
static final int rubberband = misc | 310
static final int sasurface = misc | 312
static final int save = scriptCommand | 50
static final int scale = misc | 314
static final int scale3d = deprecatedparam | 4
static final int script = 5 | 2 << 9 | mathfunc | scriptCommand
static final int search = 7 | 2 << 9 | mathfunc
static final int select = 3 | 3 << 9 | mathfunc | atomExpressionCommand
static final int selection = misc | 316
static final int semicolon = expression | 15
static final int seqcode = 5
static final int set = 3 | mathExpressionCommand | expression
static final int setparam = (1 << 29)
static final int settable = 1 << 11
static final int shape = misc | 318
static final int shapeCommand = (1 << 17) | scriptCommand
static final int shapely = misc | 320
static final int show = scriptCommand | 52
static final int sigma = misc | 322
static final int sign = misc | 323
static final int silent = misc | 324
static final int sin = 4 | 1 << 9 | mathfunc
static final int size = 6 | mathproperty
static final int slab = scriptCommand | 53 | defaultON
static final int smiles = 8 | 2 << 9 | mathfunc
static final int solid = misc | 327
static final int spacebeforesquare = misc | 371
static final int spacegroup = misc | 328
static final int spec_model2 = expression | 35
static final int sphere = misc | 330
static final int spin = scriptCommand | 55 | deprecatedparam | defaultON
static final int split = 4 | 1 << 9 | mathfunc | mathproperty
static final int sqrt = 6 | 1 << 9 | mathfunc
static final int squared = misc | 332
static final int state = misc | 334
static final int step = scriptCommand | 58 | noArgs
static final int steps = misc | 336
static final int stereo = scriptCommand | 59 | defaultON
static final int stop = misc | 338
static final int sub = 5 | 1 << 9 | mathfunc | mathproperty
static final int subset = 8 | atomExpressionCommand | predefinedset
static final int surface = predefinedset | 28
static final int switchcmd = 10 | flowCommand
static final int sync = scriptCommand | 60
static final int thismodel = predefinedset | 30
static final int ticks = misc | 340
static final int timeout = scriptCommand | 62 | setparam
static final int times = 1 | mathop | 11 << 4
static final int timestimes = 3 | mathop | 12 << 4
static final int title = misc | 342
static final int titleformat = misc | 344
static final int to = misc | 346 | expression
static final int togglelabel = deprecatedparam | 5
static final Token tokenAll = new Token(all, "all")
static final Token tokenArraySelector = new Token(leftsquare, "[")
static final Token tokenArraySquare = new Token(array, "[")
static final Token tokenColon = new Token(colon, ':')
static final Token tokenCoordinateBegin = new Token(leftbrace, "{")
static final Token tokenCoordinateEnd = tokenRightBrace
static final Token tokenDefineString = new Token(Token.define, Token.string, "@")
static final Token tokenDivide = new Token(divide, "/")
static final Token tokenEquals = new Token(opEQ, "=")
static final Token tokenIf = new Token(ifcmd, "if")
static final Token tokenMinus = new Token(minus, "-")
static final Token tokenOff = new Token(off, 0, "off")
static final Token tokenOn = new Token(on, 1, "on")
static final Token tokenPlus = new Token(plus, "+")
static final Token tokenRightBrace = new Token(rightbrace, "}")
static final Token tokenScript = new Token(script, "script")
static final Token tokenSet = new Token(set, '=', "")
static final Token tokenSetArray = new Token(set, '[', "")
static final Token tokenSetCmd = new Token(set, "set")
static final Token tokenSetProperty = new Token(set, '.', "")
static final Token tokenSetVar = new Token(set, '=', "var")
static final Token tokenSpaceBeforeSquare = new Token(spacebeforesquare, " ")
static final Token tokenSwitch = new Token(switchcmd, "switch")
static final Token tokenTimes = new Token(times, "*")
static final int top = misc | 348 | expression
static final int torsion = misc | 350
static final int transform = misc | 352
static final int translate = scriptCommand | 64
static final int translateSelected = scriptCommand | 66
static final int trim = 6 | 1 << 9 | mathfunc | mathproperty
static final int trycmd = 14 | flowCommand | noArgs
static final int unaryMinus = 0 | mathop | 12 << 4
static final int unbind = scriptCommand | 68
static final int url = misc | 360 | expression
static final int user = misc | 362
static final int val = misc | 364
static final ScriptVariable vAll = new ScriptVariable(all, "all")
static final int var = 4 | mathExpressionCommand
static final int variable = misc | 366
static final int variables = misc | 368
static final int vertices = misc | 370
static final int visible = predefinedset | 46
static final int w = 15 | mathproperty
static final int whilecmd = 6 | flowCommand
static final int width = misc | 372
static final int within = 14 | 0 << 9 | mathfunc
static final int write = 6 | 0 << 9 | mathfunc | scriptCommand
static final int zap = 9 | atomExpressionCommand | expression
static final int zoom = scriptCommand | 72
static final int zoomTo = scriptCommand | 74

Static Private Member Functions

static String sprintf (String strFormat, ScriptVariable var, Object[] of, int[] vd, float[] vf, double[] ve, boolean getS, boolean getP)
static void sValueArray (StringBuffer sb, ScriptVariable vx, Map map, int level, boolean isEscaped)
static float toFloat (String s)

Private Attributes

int flags = ~FLAG_CANINCREMENT & FLAG_LOCALVAR

Static Private Attributes

static final int FLAG_CANINCREMENT = 1
static final int FLAG_LOCALVAR = 2
static final Point3f pt0 = new Point3f()
final static ScriptVariable vF = new ScriptVariable(off, 0, "false")
final static ScriptVariable vT = new ScriptVariable(on, 1, "true")

Detailed Description

Definition at line 52 of file ScriptVariable.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index