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

java.lang.Object
  extended by cox.jmatt.java.MathTools.graphing.noop.NORenderable
All Implemented Interfaces:
Renderable
Direct Known Subclasses:
GraphablePDK, NOAxis, NOGraphable, NOGraphPaper, NOPolygon

public class NORenderable
extends java.lang.Object
implements Renderable


Constructor Summary
NORenderable()
           
 
Method Summary
 java.lang.Object render(java.lang.Object pContext)
          This method is the raison d'etre for the Renderable interface.
 boolean setParameter(java.lang.String pKey, java.lang.Object pValue)
          This method provides a very general way to configure any type of Renderable.
 boolean setType(java.lang.Object pType)
          Set the type of Renderable this is.
 boolean testCondition(java.lang.Object pCondition, java.lang.Object pValue)
          Test the Renderable to see whether or not a particular condition exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NORenderable

public NORenderable()
Method Detail

render

public java.lang.Object render(java.lang.Object pContext)
Description copied from interface: Renderable

This method is the raison d'etre for the Renderable interface. Calling render() finishes the graphing process. The Object returned is then ready for graphing. That is to say, it is ready to be fed into the external application that actually generates the graph; once this method is called MathTools' responsibility is finished. No further interaction with the returned Object is required!

Specified by:
render in interface Renderable
Parameters:
pContext - The Context Object to be used for rendering.
Returns:
The graph-ready Object, requiring no further MathTools interaction.

setType

public boolean setType(java.lang.Object pType)
Description copied from interface: Renderable
Set the type of Renderable this is. The exact meaning of 'type' and how (or IF) it is used are implementation-dependent.

Specified by:
setType in interface Renderable
Parameters:
pType - The 'type' of Renderable being used.
Returns:
true if setting this renderable to pType makes sense, false otherwise.

setParameter

public boolean setParameter(java.lang.String pKey,
                            java.lang.Object pValue)
Description copied from interface: Renderable
This method provides a very general way to configure any type of Renderable. The only absolute restriction is that the name of the parameter being set is not empty or null. It is the responsibility of the implementation to define what parameters are settable in which components.

Specified by:
setParameter in interface Renderable
Parameters:
pKey - The name of the parameter being set. Must not be null or empty.
pValue - The value of the parameter to set.
Returns:
true if the parameter is set properly, false if it did not make sense or could not be set.

testCondition

public boolean testCondition(java.lang.Object pCondition,
                             java.lang.Object pValue)
Description copied from interface: Renderable
Test the Renderable to see whether or not a particular condition exists. Exactly what these conditions are and how they are used depend on the implementation; this method is defined to allow a uniform way to check them.

Specified by:
testCondition in interface Renderable
Parameters:
pCondition - The condition to test against the value.
pValue - The value against which the condition is to be checked.
Returns:
true if the test succeeds, false otherwise.