version 1.3, 2000/07/10 06:48:06 |
version 1.5, 2000/09/13 06:34:47 |
|
|
/** |
/** |
* $OpenXM: OpenXM/src/OpenMath/OXplot.java,v 1.2 2000/07/07 03:02:36 tam Exp $ |
* $OpenXM: OpenXM/src/OpenMath/OXplot.java,v 1.4 2000/09/07 09:12:28 tam Exp $ |
*/ |
*/ |
|
|
import JP.ac.kobe_u.math.tam.OpenXM.*; |
import ORG.openxm.tam.*; |
import java.util.Stack; |
import java.util.Stack; |
import java.util.Vector; |
import java.util.Vector; |
import java.awt.*; |
import java.awt.*; |
Line 17 public class OXplot extends OpenXMserver{ |
|
Line 17 public class OXplot extends OpenXMserver{ |
|
super(hostname,ControlPort,DataPort); |
super(hostname,ControlPort,DataPort); |
} |
} |
|
|
public void computeProcess(OpenXMconnection stream){ |
public void computeProcess(OpenXMstream stream){ |
debug("OXplot started."); |
debug("OXplot started."); |
stack = new Stack(); |
stack = new Stack(); |
plotframe = new Vector(); |
plotframe = new Vector(); |
Line 117 public class OXplot extends OpenXMserver{ |
|
Line 117 public class OXplot extends OpenXMserver{ |
|
} |
} |
} |
} |
|
|
private void SM_popCMO(OpenXMconnection stream) throws java.io.IOException{ |
private void SM_popCMO(OpenXMstream stream) throws java.io.IOException{ |
try{ |
try{ |
if(stack.empty()){ |
if(stack.empty()){ |
stream.send(new CMO_NULL()); |
stream.send(new CMO_NULL()); |
Line 150 public class OXplot extends OpenXMserver{ |
|
Line 150 public class OXplot extends OpenXMserver{ |
|
argv[i] = (CMO)stack.pop(); |
argv[i] = (CMO)stack.pop(); |
} |
} |
|
|
if(function_name.equals("CREATE") && argc==2){ |
if(function_name.equals("create") && argc==2){ |
stack.push(CREATE(argv)); |
stack.push(CREATE(argv)); |
}else if(function_name.equals("PSET") && argc==4){ |
}else if(function_name.equals("pset") && argc==4){ |
PSET(argv); |
PSET(argv); |
}else{ |
}else{ |
stack.push(new CMO_ERROR2(new CMO_NULL())); |
stack.push(new CMO_ERROR2(new CMO_NULL())); |
Line 161 public class OXplot extends OpenXMserver{ |
|
Line 161 public class OXplot extends OpenXMserver{ |
|
return; |
return; |
} |
} |
|
|
private void SM_mathcap(OpenXMconnection stream) throws java.io.IOException{ |
private void SM_mathcap(OpenXMstream stream) throws java.io.IOException{ |
CMO[] mathcap = new CMO[3]; |
CMO[] mathcap = new CMO[3]; |
|
|
{ |
{ |
Line 206 public class OXplot extends OpenXMserver{ |
|
Line 206 public class OXplot extends OpenXMserver{ |
|
debug("push: "+ stack.peek()); |
debug("push: "+ stack.peek()); |
} |
} |
|
|
private void SM_setMathCap(OpenXMconnection stream) |
private void SM_setMathCap(OpenXMstream stream) |
throws java.io.IOException{ |
throws java.io.IOException{ |
Object mathcap = stack.pop(); |
Object mathcap = stack.pop(); |
|
|
Line 216 public class OXplot extends OpenXMserver{ |
|
Line 216 public class OXplot extends OpenXMserver{ |
|
stream.setMathCap((CMO_MATHCAP)mathcap); |
stream.setMathCap((CMO_MATHCAP)mathcap); |
} |
} |
|
|
private void StackMachine(SM mesg,OpenXMconnection stream) |
private void StackMachine(SM mesg,OpenXMstream stream) |
throws java.io.IOException{ |
throws java.io.IOException{ |
debug("receive: "+mesg); |
debug("receive: "+mesg); |
|
|