[Mathlib-commitlog] SF.net SVN: mathlib:[698] JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ graphic
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-20 20:17:25
|
Revision: 698
http://mathlib.svn.sourceforge.net/mathlib/?rev=698&view=rev
Author: st_mueller
Date: 2009-01-20 20:17:23 +0000 (Tue, 20 Jan 2009)
Log Message:
-----------
changed signature of evaluate(Token[] operands)
to
evaluate(Token[] operands, GlobalValues globals)
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/title.java
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/xlabel.java
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/ylabel.java
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/zlabel.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/title.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/title.java 2009-01-20 20:12:50 UTC (rev 697)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/title.java 2009-01-20 20:17:23 UTC (rev 698)
@@ -2,12 +2,13 @@
import jmathlib.core.tokens.*;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**Add text to the title of the current axes*/
public class title extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
//ErrorLogger.debugLine("title: evaluate");
@@ -20,8 +21,8 @@
String title = ((CharToken)operands[0]).toString();
- getGraphicsManager().getCurrentFigure().getCurrentAxes().setTitle(title);
- getGraphicsManager().getCurrentFigure().repaint();
+ globals.getGraphicsManager().getCurrentFigure().getCurrentAxes().setTitle(title);
+ globals.getGraphicsManager().getCurrentFigure().repaint();
return null;
}
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/xlabel.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/xlabel.java 2009-01-20 20:12:50 UTC (rev 697)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/xlabel.java 2009-01-20 20:17:23 UTC (rev 698)
@@ -2,12 +2,13 @@
import jmathlib.core.tokens.*;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**Add text to the x-axis of the current axes*/
public class xlabel extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
//ErrorLogger.debugLine("xlabel evaluate");
@@ -20,8 +21,8 @@
String xLabel = ((CharToken)operands[0]).toString();
- getGraphicsManager().getCurrentFigure().getCurrentAxes().setXLabel(xLabel);
- getGraphicsManager().getCurrentFigure().repaint();
+ globals.getGraphicsManager().getCurrentFigure().getCurrentAxes().setXLabel(xLabel);
+ globals.getGraphicsManager().getCurrentFigure().repaint();
return null;
}
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/ylabel.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/ylabel.java 2009-01-20 20:12:50 UTC (rev 697)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/ylabel.java 2009-01-20 20:17:23 UTC (rev 698)
@@ -2,12 +2,13 @@
import jmathlib.core.tokens.*;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**Add text to the y-axis of the current axes*/
public class ylabel extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
//ErrorLogger.debugLine("ylabel evaluate");
@@ -20,8 +21,8 @@
String yLabel = ((CharToken)operands[0]).toString();
- getGraphicsManager().getCurrentFigure().getCurrentAxes().setYLabel(yLabel);
- getGraphicsManager().getCurrentFigure().repaint();
+ globals.getGraphicsManager().getCurrentFigure().getCurrentAxes().setYLabel(yLabel);
+ globals.getGraphicsManager().getCurrentFigure().repaint();
return null;
}
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/zlabel.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/zlabel.java 2009-01-20 20:12:50 UTC (rev 697)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/graphics/zlabel.java 2009-01-20 20:17:23 UTC (rev 698)
@@ -2,12 +2,13 @@
import jmathlib.core.tokens.*;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**Add text to the z-axis of the current axes*/
public class zlabel extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
//ErrorLogger.debugLine("zlabel evaluate");
@@ -20,8 +21,8 @@
String zLabel = ((CharToken)operands[0]).toString();
- getGraphicsManager().getCurrentFigure().getCurrentAxes().setZLabel(zLabel);
- getGraphicsManager().getCurrentFigure().repaint();
+ globals.getGraphicsManager().getCurrentFigure().getCurrentAxes().setZLabel(zLabel);
+ globals.getGraphicsManager().getCurrentFigure().repaint();
return null;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|