|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcox.jmatt.java.MathTools.graphing.noop.NOGraphEngine
public class NOGraphEngine
This class serves two purposes. First of all it acts as a 'null' GraphEngine
. It is fully functional as such but all instances it returns are
classes from the graphing.noop
package.
Its second and perhaps most useful purpose is to act as a base class for implementations to extend. Not all implementations will require or furnish all
Renderable
classes, yet GraphHandler
demands non-null instances or it might choke. Implementations for which this is the case
(e.g. graphing.Graph
) can subclass this for their base GraphEngine
and only override what they need.
Constructor Summary | |
---|---|
NOGraphEngine()
Simple constructor. |
Method Summary | |
---|---|
Axis |
getAxis(java.lang.Object pKey)
Create and return a NOAxis. |
Graphable |
getGraph(java.lang.Object pKey)
Create and return a NOGraphable. |
GraphKeys |
getGraphKeys()
Return null. |
GraphPaper |
getGraphPaper(java.lang.Object pKey)
Return a NOGraphPaper instance. |
Polygon |
getPolygon(java.lang.Object pKey)
Return a NOPolygon. |
boolean |
setFeature(java.lang.String pFeature,
java.lang.Object pValue)
Always returns false. |
boolean |
testFeature(java.lang.String pFeature)
Always returns false. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NOGraphEngine()
Method Detail |
---|
public GraphPaper getGraphPaper(java.lang.Object pKey)
getGraphPaper
in interface GraphEngine
public Axis getAxis(java.lang.Object pKey)
getAxis
in interface GraphEngine
public Graphable getGraph(java.lang.Object pKey)
getGraph
in interface GraphEngine
public GraphKeys getGraphKeys()
getGraphKeys
in interface GraphEngine
public Polygon getPolygon(java.lang.Object pKey)
getPolygon
in interface GraphEngine
public boolean setFeature(java.lang.String pFeature, java.lang.Object pValue)
setFeature
in interface GraphEngine
pFeature
- The String name of the feature to be set.pValue
- The value the feature is to have.
public boolean testFeature(java.lang.String pFeature)
testFeature
in interface GraphEngine
pFeature
- The name of the feature to test.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |