|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjmathlib.core.interpreter.GlobalValues
public class GlobalValues
This class contains the global variables, which are accessible throughout the program. These include System flags The list of contexts The interpreter object The GraphicsManager The working directory These values are all private and should be access through the getter/setter functions
| Constructor Summary | |
|---|---|
GlobalValues(Interpreter _interpreter,
boolean _runningStandalone)
Initialises the global values |
|
| Method Summary | |
|---|---|
void |
createContext(VariableList _variables)
Change the current context to point to the new Variable List |
Variable |
createVariable(java.lang.String name)
Create a variable in the local or global workspace |
ContextList |
getContextList()
Allow access to the context list |
FunctionManager |
getFunctionManager()
Returns a handle to the function manager |
VariableList |
getGlobalVariables()
|
GraphicsManager |
getGraphicsManager()
Returns a handle to the graphics manager |
Interpreter |
getInterpreter()
Returns the interpreter object |
VariableList |
getLocalVariables()
|
java.text.NumberFormat |
getNumberFormat()
returns the number format for displaying numbers |
PluginsManager |
getPluginsManager()
Returns a handle to the plugin manager |
java.lang.String |
getProperty(java.lang.String property)
Returns one of JMathLib's properties |
Variable |
getVariable(java.lang.String name)
|
java.io.File |
getWorkingDirectory()
Returns the working directory |
void |
loadPropertiesFromFile()
load JMathLib properties from a file or in applet version from the web server. |
void |
popContext()
Return to the previous variable list |
void |
setNumberFormat(java.text.NumberFormat _numFormat)
sets the number format for displaying numbers |
void |
setProperty(java.lang.String property,
java.lang.String value)
Sets a property of JMathLib |
void |
setVariable(java.lang.String name,
OperandToken value)
Create a variable in the local or global workspace |
void |
setWorkingDirectory(java.io.File _workingDir)
Sets the working directory |
void |
storePropertiesToFile()
store properties back to a file on disc. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalValues(Interpreter _interpreter,
boolean _runningStandalone)
_interpreter - = the Interpreter object_runningStandalone - = true if this was run from an application| Method Detail |
|---|
public VariableList getLocalVariables()
public VariableList getGlobalVariables()
public Variable getVariable(java.lang.String name)
-
public Variable createVariable(java.lang.String name)
creates - a new variable
public void setVariable(java.lang.String name,
OperandToken value)
name - of the variabledata - of the variablepublic void createContext(VariableList _variables)
_Variables - = the new list of Variables to usepublic void popContext()
public ContextList getContextList()
public Interpreter getInterpreter()
public FunctionManager getFunctionManager()
public GraphicsManager getGraphicsManager()
public PluginsManager getPluginsManager()
public java.io.File getWorkingDirectory()
public void setWorkingDirectory(java.io.File _workingDir)
set - working directorypublic java.text.NumberFormat getNumberFormat()
public void setNumberFormat(java.text.NumberFormat _numFormat)
_numFormat - format typepublic void loadPropertiesFromFile()
public void storePropertiesToFile()
public java.lang.String getProperty(java.lang.String property)
property -
public void setProperty(java.lang.String property,
java.lang.String value)
name - of propertyvalue - of property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||