cox.jmatt.java.MathTools.graphing.noop
Class NOGraphable

java.lang.Object
  extended by cox.jmatt.java.MathTools.graphing.noop.NORenderable
      extended by cox.jmatt.java.MathTools.graphing.noop.NOGraphable
All Implemented Interfaces:
Graphable, Renderable

public class NOGraphable
extends NORenderable
implements Graphable


Field Summary
 
Fields inherited from interface cox.jmatt.java.MathTools.graphing.Graphable
PARAMETRIC_GRAPH, PARAMETRIC_X, PARAMETRIC_Y, POLAR_GRAPH, STANDARD_GRAPH
 
Constructor Summary
NOGraphable()
           
 
Method Summary
 boolean addExpression(java.lang.String pKey, java.lang.Object pExpression)
          Add an expression to the current graph.
 boolean addLimit(java.lang.String pKey, java.lang.Object pLimit)
          Add a limit to the current graph.
 
Methods inherited from class cox.jmatt.java.MathTools.graphing.noop.NORenderable
render, setParameter, setType, testCondition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cox.jmatt.java.MathTools.graphing.Renderable
render, setParameter, setType, testCondition
 

Constructor Detail

NOGraphable

public NOGraphable()
Method Detail

addExpression

public boolean addExpression(java.lang.String pKey,
                             java.lang.Object pExpression)
Description copied from interface: Graphable
Add an expression to the current graph. Ordinarily each graph will have only one expression, but parametric functions or piecewise graphs may require more. The pKey is optional but can be used if necessary.

Specified by:
addExpression in interface Graphable
Parameters:
pKey - A String identifying the expression to be added. Usage is optional.
pExpression - The Object representing the graph-generating entity.
Returns:
true if the operation succeeds, false otherwise.

addLimit

public boolean addLimit(java.lang.String pKey,
                        java.lang.Object pLimit)
Description copied from interface: Graphable
Add a limit to the current graph. This may be in the form of a Constraint or it may be entirely implementation-defined. As with addExpression(), a String key is provided for identification or classification. Usage is optional but strongly suggested!

Specified by:
addLimit in interface Graphable
Parameters:
pKey - A String used to identify the limit being added. Not required.
pLimit - An Object representing the limit to be enforced.
Returns:
true if the limit makes sense and is added successfully, false otherwise.