Package cox.jmatt.java.MathTools.graphing.noop

This package provides 'no-operation' implementations of Axis, Graphable, GraphPaper, Polygon, and Renderable.

See:
          Description

Class Summary
NOAxis  
NOGraphable  
NOGraphEngine This class serves two purposes.
NOGraphPaper  
NOPolygon  
NORenderable  
 

Package cox.jmatt.java.MathTools.graphing.noop Description

This package provides 'no-operation' implementations of Axis, Graphable, GraphPaper, Polygon, and Renderable. These classes are meant for implementations that do not use these classes: GraphHandler WILL choke if it tries to create an instance and gets null. All specified methods are provided but NONE of them do anything. All boolean methods return false and all render() calls return null. No values are set and nothing happens when one of the methods is called.

So why bother?

Again, because GraphHandler does not handle null instances gracefully. Any GraphEngine implementation that does not need one of the graphing interfaces should supply one of these classes instead. Or, if more than one of the GraphEngine-supplied classes is not used subclass NOGraphEngine to provide whatever is defined. The only null-returning method is getGraphKeys() which is not used in GraphHandler and is in fact optional.