This package holds the GPGenerator graph paper generation panels. The base class is GraphPanel which adds the drawGraph() method to a standard Panel. This method accepts the top, bottom, left and right margins of the SVGTag representing the sheet of graph paper. These are the margins set in GPGenerator, which are passed in when the method is called. In addition to drawGraph(), GraphPanel's main reason for existence there are utility methods to extract and clamp String values pulled from TextFields.

The documentation for each type of graph paper is contained within its GraphPanel's javadoc. The preferred way to use these demo panels is through the MathTools GUI but it is not the only way. Each panel has setter methods for all configurable data plus the drawGraph() method. This means any of the classes in this package can be instantiated (outside a GUI, even) and used from a program or script. The only data required outside configuration are the margins and an SVGTag to hold the graph.

The GraphPanelFactory allows the specialized demo classes here to be exposed to scripts. While the preferred method is still by GUI, this allows easy use of the calculations and panels here, should the need arise.