Package org.jmol.scriptext
Class ScriptExt
java.lang.Object
org.jmol.scriptext.ScriptExt
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected javajs.util.BS
atomExpressionAt
(int i) protected javajs.util.P3[]
bsToArray
(javajs.util.BS bs) protected javajs.util.P3
centerParameter
(int i) protected void
checkLength
(int i) abstract String
protected void
error
(int err) protected void
finalizeObject
(int shapeID, int colorArgb, float translucentLevel, int intScale, boolean doSet, Object data, int iptDisplayProperty, javajs.util.BS bs) protected float
floatParameter
(int i) protected javajs.util.P3[]
getAllPoints
(int index, int nmin) protected float
getColorTrans
(ScriptEval eval, int i, boolean allowNone, int[] ret) Checks color, translucent, opaque parameters.protected int[][]
getIntArray2
(int i) protected javajs.util.P3
getPoint3f
(int i, boolean allowFractional) protected Object
getShapeProperty
(int shapeType, String propertyName) protected T
getToken
(int i) protected int
intParameter
(int index) protected void
invArg()
protected void
invPO()
protected boolean
isFloatParameter
(int index) protected String
paramAsStr
(int i) protected String
setShapeId
(int iShape, int i, boolean idSeen) protected void
setShapeProperty
(int shapeType, String propertyName, Object propertyValue) protected void
showString
(String s) protected String
stringParameter
(int index) protected int
tokAt
(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, javajs.util.BS bs) throws ScriptException - Throws:
ScriptException
-
getIntArray2
- Throws:
ScriptException
-
getAllPoints
- Throws:
ScriptException
-
bsToArray
protected javajs.util.P3[] bsToArray(javajs.util.BS bs)
-