Package org.jmol.scriptext
Class ScriptExt
- java.lang.Object
-
- org.jmol.scriptext.ScriptExt
-
-
Constructor Summary
Constructors Constructor Description ScriptExt()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected BSatomExpressionAt(int i)protected javajs.util.P3centerParameter(int i)protected voidcheckLength(int i)abstract java.lang.Stringdispatch(int iTok, boolean b, T[] st)protected voiderror(int err)protected voidfinalizeObject(int shapeID, int colorArgb, float translucentLevel, int intScale, boolean doSet, java.lang.Object data, int iptDisplayProperty, BS bs)protected floatfloatParameter(int i)protected floatgetColorTrans(ScriptEval eval, int i, boolean allowNone, int[] ret)Checks color, translucent, opaque parameters.protected javajs.util.P3getPoint3f(int i, boolean allowFractional)protected java.lang.ObjectgetShapeProperty(int shapeType, java.lang.String propertyName)protected TgetToken(int i)ScriptExtinit(java.lang.Object eval)protected intintParameter(int index)protected voidinvArg()protected voidinvPO()protected booleanisFloatParameter(int index)protected java.lang.StringparamAsStr(int i)protected java.lang.StringsetShapeId(int iShape, int i, boolean idSeen)protected voidsetShapeProperty(int shapeType, java.lang.String propertyName, java.lang.Object propertyValue)protected voidshowString(java.lang.String s)protected java.lang.StringstringParameter(int index)protected inttokAt(int i)
-
-
-
Field Detail
-
vwr
protected Viewer vwr
-
e
protected ScriptEval e
-
chk
protected boolean chk
-
st
protected T[] st
-
slen
protected int slen
-
-
Method Detail
-
init
public ScriptExt init(java.lang.Object eval)
-
dispatch
public abstract java.lang.String dispatch(int iTok, boolean b, T[] st) throws ScriptException- Throws:
ScriptException
-
atomExpressionAt
protected BS atomExpressionAt(int i) throws ScriptException
- Throws:
ScriptException
-
checkLength
protected void checkLength(int i) throws ScriptException- Throws:
ScriptException
-
error
protected void error(int err) throws ScriptException- Throws:
ScriptException
-
invArg
protected void invArg() throws ScriptException- Throws:
ScriptException
-
invPO
protected void invPO() throws ScriptException- Throws:
ScriptException
-
getShapeProperty
protected java.lang.Object getShapeProperty(int shapeType, java.lang.String propertyName)
-
paramAsStr
protected java.lang.String paramAsStr(int i) throws ScriptException- Throws:
ScriptException
-
centerParameter
protected javajs.util.P3 centerParameter(int i) throws ScriptException- Throws:
ScriptException
-
floatParameter
protected float floatParameter(int i) throws ScriptException- Throws:
ScriptException
-
getPoint3f
protected javajs.util.P3 getPoint3f(int i, boolean allowFractional) throws ScriptException- Throws:
ScriptException
-
intParameter
protected int intParameter(int index) throws ScriptException- Throws:
ScriptException
-
isFloatParameter
protected boolean isFloatParameter(int index)
-
setShapeProperty
protected void setShapeProperty(int shapeType, java.lang.String propertyName, java.lang.Object propertyValue)
-
showString
protected void showString(java.lang.String s)
-
stringParameter
protected java.lang.String stringParameter(int index) throws ScriptException- Throws:
ScriptException
-
getToken
protected T getToken(int i) throws ScriptException
- Throws:
ScriptException
-
tokAt
protected int tokAt(int i)
-
setShapeId
protected java.lang.String setShapeId(int iShape, int i, boolean idSeen) throws ScriptException- 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, java.lang.Object data, int iptDisplayProperty, BS bs) throws ScriptException- Throws:
ScriptException
-
-