net.sourceforge.webcompmath.data.beans
Interface ParserMathObject

All Superinterfaces:
MathObject, java.io.Serializable
All Known Implementing Classes:
WCMAnimatorBean, WCMDataTableInputBean, WCMDerivativeBean, WCMExpressionFunctionBean, WCMExpressionInputBean, WCMMouseVariableBean, WCMTableFunctionBean, WCMVariableBean, WCMVariableInputBean, WCMVariableJSliderBean

public interface ParserMathObject
extends MathObject

This interface provides a standard way for WCM beans to tell a WCMParserBean how to add them properly to a parser. Some objects, like WCMVariableBean's and any class that implements ParserExtension can just be added to a parser directly, so these classes just return themselves in their getMathObject methods. Other classes, like WCMVariableInputBean, need to have getVariable() called on them and the result added to the parser. The getMathObject method in this interface hides this from any class that wants to add one of these beans to a parser.

Author:
Tom Downey

Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add a property change listener (typically only called by a WCMParserBean)
 MathObject getMathObject()
          Get the MathObject for adding to a parser.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add a property change listener (typically only called by a WCMParserBean)
 
Methods inherited from interface net.sourceforge.webcompmath.data.MathObject
getName, setName
 

Method Detail

getMathObject

MathObject getMathObject()
Get the MathObject for adding to a parser.

Returns:
the MathObject that will be added to a parser

addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener (typically only called by a WCMParserBean)

Parameters:
listener -

removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener (typically only called by a WCMParserBean)

Parameters:
listener -