public class MathListener
extends java.lang.Object
Beside registration of Mathematica functions this class communicates with the Mathematica kernel and invokes the Mathematica function registered in the handler.
This class is provided as a convenience to simplify the writing of listeners. Subclasses do not implement the registration methods invoked by Mathematica to register handler commands and establishing of the kernel link.
Constructor and Description |
---|
MathListener()
Constructor tries to get Math-Link connection.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHandler(java.lang.String meth)
Get the callback function of Mathematica which is registered
with an event listener method of JavaView.
|
java.lang.String |
getName()
The name of a listeners allows the display to issue verbal debug messages.
|
void |
setHandler(java.lang.String meth,
java.lang.String func)
Register a callback function of Mathematica which is invoked
whenever the event listener method of JavaView is called.
|
void |
setName(java.lang.String name)
Set name of this listener.
|
public MathListener()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getHandler(java.lang.String meth)
meth
- Listener method called from JavaView events.public void setHandler(java.lang.String meth, java.lang.String func)
meth
- Listener method called from JavaView events.func
- Mathematica function to be invoked."