Class ScriptExt
java.lang.Object
org.jmol.scriptext.ScriptExt
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BSatomExpressionAt(int i) protected P3[]protected P3centerParameter(int i) protected voidcheckLength(int i) abstract Stringprotected voiderror(int err) protected voidfinalizeObject(int shapeID, int colorArgb, float translucentLevel, int intScale, boolean doSet, Object data, int iptDisplayProperty, BS bs) protected floatfloatParameter(int i) protected P3[]getAllPoints(int index, int nmin) protected floatgetColorTrans(ScriptEval eval, int i, boolean allowNone, int[] ret) Checks color, translucent, opaque parameters.protected int[][]getIntArray2(int i) protected P3getPoint3f(int i, boolean allowFractional) protected ObjectgetShapeProperty(int shapeType, String propertyName) protected TgetToken(int i) protected intintParameter(int index) protected voidinvArg()protected voidinvPO()protected booleanisFloatParameter(int index) protected StringparamAsStr(int i) protected StringsetShapeId(int iShape, int i, boolean idSeen) protected voidsetShapeProperty(int shapeType, String propertyName, Object propertyValue) protected voidshowString(String s) protected StringstringParameter(int index) protected inttokAt(int i)
-
Field Details
-
vwr
-
e
-
chk
protected boolean chk -
st
-
slen
protected int slen
-
-
Constructor Details
-
ScriptExt
public ScriptExt()
-
-
Method Details
-
init
-
dispatch
- Throws:
ScriptException
-
atomExpressionAt
- Throws:
ScriptException
-
checkLength
- Throws:
ScriptException
-
error
- Throws:
ScriptException
-
invArg
- Throws:
ScriptException
-
invPO
- Throws:
ScriptException
-
getShapeProperty
-
paramAsStr
- Throws:
ScriptException
-
centerParameter
- Throws:
ScriptException
-
floatParameter
- Throws:
ScriptException
-
getPoint3f
- Throws:
ScriptException
-
intParameter
- Throws:
ScriptException
-
isFloatParameter
protected boolean isFloatParameter(int index) -
setShapeProperty
-
showString
-
stringParameter
- Throws:
ScriptException
-
getToken
- Throws:
ScriptException
-
tokAt
protected int tokAt(int i) -
setShapeId
- Throws:
ScriptException
-
getColorTrans
protected float getColorTrans(ScriptEval eval, int i, boolean allowNone, int[] ret) throws ScriptException Checks color, translucent, opaque parameters.- Parameters:
eval-i-allowNone-ret- returned int argb color- Returns:
- translucentLevel and sets iToken and ret[0]
- Throws:
ScriptException
-
finalizeObject
protected void finalizeObject(int shapeID, int colorArgb, float translucentLevel, int intScale, boolean doSet, Object data, int iptDisplayProperty, BS bs) throws ScriptException - Parameters:
shapeID-colorArgb-translucentLevel-intScale-doSet-data-iptDisplayProperty- pointer to mesh nofill....; if default is meshNoFill, then this number is -1 - iptbs-- Throws:
ScriptException
-
getIntArray2
- Throws:
ScriptException
-
getAllPoints
- Throws:
ScriptException
-
bsToArray
-