|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcox.jmatt.java.MathTools.graphing.xml.GraphEngineXML
public class GraphEngineXML
This GraphEngine
creates graphing classes that render XML output. The markup used is simplified, per other MathTools XML, and none of the
tags has deeply nested children. All components returned are of the 'XML' variety: AxisXML, GrapPaperXML, etc. None of these have any non-standard methods
with the exception of RenderableXML
. That class has a setID()
method which is used to set the necessary ID attributes on the tags
it generates. This is handled automatically and transparently, so the script does not need to worry about it! The ID is set when the RenderableXML
is added to its GraphPaper. The key used to add the component becomes its ID and this cannot be null or empty! (This is enforced.)
The 'name=' attribute of the tag, if it exists, is the value used when the original component was created. That is, the 'pKey' arguments in this class,
which must be String, become the 'name=' attribute of the tag whenever the component is rendered. Since GraphPaper
becomes the root element of
the XML document it does not have or require an 'id=' attribute. Its name and type, however, can still be set.
Constructor Summary | |
---|---|
GraphEngineXML()
The only constructor needed. |
Method Summary | |
---|---|
Axis |
getAxis(java.lang.Object pKey)
Create and return an implementation-specific Axis. |
Graphable |
getGraph(java.lang.Object pKey)
Create and return a Graphable suited to the implementation. |
GraphKeys |
getGraphKeys()
Return an instance of the implementation's GraphKeys, or null if none such exists. |
GraphPaper |
getGraphPaper(java.lang.Object pKey)
Retrieve a GraphPaper instance for the implementation. |
Polygon |
getPolygon(java.lang.Object pKey)
Return a blank Polygon. |
boolean |
setFeature(java.lang.String pFeature,
java.lang.Object pValue)
Not used. |
boolean |
testFeature(java.lang.String pFeature)
Not used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphEngineXML()
Method Detail |
---|
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.
public Axis getAxis(java.lang.Object pKey)
GraphEngine
getAxis
in interface GraphEngine
public Graphable getGraph(java.lang.Object pKey)
GraphEngine
getGraph
in interface GraphEngine
public GraphPaper getGraphPaper(java.lang.Object pKey)
GraphEngine
getGraphPaper
in interface GraphEngine
public Polygon getPolygon(java.lang.Object pKey)
GraphEngine
getPolygon
in interface GraphEngine
public GraphKeys getGraphKeys()
GraphEngine
getGraphKeys
in interface GraphEngine
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |