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

java.lang.Object
  extended by cox.jmatt.java.MathTools.graphing.noop.NORenderable
      extended by cox.jmatt.java.MathTools.graphing.noop.NOGraphPaper
All Implemented Interfaces:
GraphPaper, Renderable
Direct Known Subclasses:
GraphPaperPDK

public class NOGraphPaper
extends NORenderable
implements GraphPaper


Constructor Summary
NOGraphPaper()
           
 
Method Summary
 boolean addAxis(java.lang.String pKey, Axis pAxis)
          Add an Axis instance to the current paper.
 boolean addGraph(java.lang.String pKey, Graphable pGraph)
          Add a graph to the current paper.
 boolean addPolygon(java.lang.String pKey, Polygon pPolygon)
          Add a polygon to the current paper.
 boolean addTransform(java.lang.Object pTransform)
          Use this method to apply a universal transformation to all of the graph components.
 boolean setRanges(double pMinX, double pMinY, double pMaxX, double pMaxY)
          Set the minimum and maximum horizontal and vertical values for the graph.
 boolean setSize(double pWidth, double pHeight)
          Set the size of the actual 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

NOGraphPaper

public NOGraphPaper()
Method Detail

setSize

public boolean setSize(double pWidth,
                       double pHeight)
Description copied from interface: GraphPaper
Set the size of the actual graph.

Specified by:
setSize in interface GraphPaper
Parameters:
pWidth - The width of the graph.
pHeight - The height of the graph.
Returns:
true for valid settings, false otherwise.

setRanges

public boolean setRanges(double pMinX,
                         double pMinY,
                         double pMaxX,
                         double pMaxY)
Description copied from interface: GraphPaper
Set the minimum and maximum horizontal and vertical values for the graph.

Specified by:
setRanges in interface GraphPaper
Parameters:
pMinX - The minimum horizontal (X) value on the graph.
pMinY - The minimum vertical (Y) value for the graph.
pMaxX - The maximum horizontal value for the graph.
pMaxY - The maximum vertical (Y) value on the graph.
Returns:
true if the implementation can support these settings, false otherwise.

addTransform

public boolean addTransform(java.lang.Object pTransform)
Description copied from interface: GraphPaper
Use this method to apply a universal transformation to all of the graph components. Exactly what this entails, or if it is even used, depend on the implementation. Implementations should keep track of the transforms applied AND the order in which they should be applied! Presumably the transform takes place during rendering but this is a suggestion, not a requirement!

Specified by:
addTransform in interface GraphPaper
Parameters:
pTransform - The transformation to apply.
Returns:
true if the transform succeeds, false otherwise.

addAxis

public boolean addAxis(java.lang.String pKey,
                       Axis pAxis)
Description copied from interface: GraphPaper
Add an Axis instance to the current paper. The key is provided to allow unique identification of axes.

Specified by:
addAxis in interface GraphPaper
Parameters:
pKey - The identification or description of the Axis being added.
pAxis - The Axis to add.
Returns:
true if it happened, false otherwise.

addGraph

public boolean addGraph(java.lang.String pKey,
                        Graphable pGraph)
Description copied from interface: GraphPaper
Add a graph to the current paper. The key is provided for identification or description and its use is optional.

Specified by:
addGraph in interface GraphPaper
Parameters:
pKey - The String key used to identify the graph.
pGraph - The graph to add.
Returns:
true if all is well, false if something bad happened.

addPolygon

public boolean addPolygon(java.lang.String pKey,
                          Polygon pPolygon)
Description copied from interface: GraphPaper
Add a polygon to the current paper. The key is provided for identification or description and its use is optional.

Specified by:
addPolygon in interface GraphPaper
Parameters:
pKey - The String key used to identify the polygon.
pPolygon - The Polygon to add.
Returns:
true if all is well, false if something bad happened.