public class MathAdjustmentListener extends MathListener implements java.awt.event.AdjustmentListener
In response to a AdjustmentEvent, objects of this class send to Mathematica:
userCode[theAdjustmentEvent, theAdjustmentEvent.getAdjustmentType(), theAdjustmentEvent.getValue()]userFunc is specified as a string, either a function name or an expression (like a pure function "foo[##]&"), via the setHandler() method.
Constructor and Description |
---|
MathAdjustmentListener()
The constructor that is typically called from Mathematica.
|
MathAdjustmentListener(KernelLink ml)
You must use this constructor when using this class in a Java program,
because you need to specify the KernelLink that will be used.
|
MathAdjustmentListener(java.lang.String func)
Because the AdjustmentListener interface
has only one method, adjustmentValueChanged(), you can specify the Mathematica function to be
called with this constructor, rather than having to separately call setHandler().
|
Modifier and Type | Method and Description |
---|---|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e) |
callMathHandler, callVoidMathHandler, getHandler, getLink, setHandler
public MathAdjustmentListener()
public MathAdjustmentListener(KernelLink ml)
ml
- The link to which computations will be sent when adjustmentValueChanged() is called.public MathAdjustmentListener(java.lang.String func)
func
- The Mathematica function to be executed in response to an AdjustmentEvent.J/Link is Copyright (c) 1999-2020, Wolfram Research, Inc. All rights reserved.