cox.jmatt.java.MathTools.demo.gpgdemo
Class GraphPanelFactory

java.lang.Object
  extended by cox.jmatt.java.MathTools.demo.gpgdemo.GraphPanelFactory

public class GraphPanelFactory
extends java.lang.Object

This class exists to provide scripts with access to the various GraphPanel subclasses. These are the static instances set and maintained in CapCom. If MathTools is run from its JAR then these instances are the ones in the 'Graph Paper' demo panel. Setting values in a script will affect the ones in the GUI and vise versa. Prudent use of the reset() method is critical!

If the scripting framework is embedded in a separate program or if the 'Graph Paper' demo panel is not defined (for whatever reason) instances are created as required.


Constructor Summary
GraphPanelFactory()
           
 
Method Summary
 void addPens(SVGTag pTag)
          Add the standard pens to a SVGTag.
 BarChartPanel barChart()
          Fetch a BarChartPanel.
 BPSPanel bps()
          Fetch a BPSPanel.
 void eatMarginPizza(java.lang.String pPrefix)
          Read the margin config from the Pizzaria area.
 java.lang.String getMarginPizza(java.lang.String pPrefix)
          Fetch the margin panel config, if it exists.
 HexGridPanel hex()
          Fetch a HexGridPanel.
 IsometricPanel isometric()
          Fetch a IsometricPanel.
 LedgerPanel ledger()
          Fetch a LedgerPanel.
 LetteringPanel lettering()
          Fetch a LetterngPanel.
 LogPanel logarithmic()
          Fetch a LogPanel.
 MusicPanel music()
          Fetch a MusicPanel.
 OffsetQuadPanel offsetQuad()
          Fetch an OffsetQuadPanel.
 PerspectivePanel perspective()
          Fetch a PerspectivePanel.
 PolarPanel polar()
          Fetch a PolarPanel.
 QuadrillePanel quadrille()
          Fetch a QuadrillePanel.
 void setGPDebug(boolean pEnable)
          Instance debug mode method.
static void setGPDebugMode(boolean pEnable)
          Set or clear the GPGenerator.GP_DEBUG field.
 void setMarginPizza(java.lang.String pPizza)
          Set the Pizzaria area on the GPGenerator if it exists.
 SymmetricLogPanel symLog()
          Fetch a SymmetricLogPanel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphPanelFactory

public GraphPanelFactory()
Method Detail

setGPDebugMode

public static final void setGPDebugMode(boolean pEnable)
Set or clear the GPGenerator.GP_DEBUG field.


setGPDebug

public final void setGPDebug(boolean pEnable)
Instance debug mode method.


addPens

public void addPens(SVGTag pTag)
Add the standard pens to a SVGTag.


setMarginPizza

public void setMarginPizza(java.lang.String pPizza)
Set the Pizzaria area on the GPGenerator if it exists. If not, nothing happens.


getMarginPizza

public java.lang.String getMarginPizza(java.lang.String pPrefix)
Fetch the margin panel config, if it exists. If not an error String is returned.


eatMarginPizza

public void eatMarginPizza(java.lang.String pPrefix)
Read the margin config from the Pizzaria area.


quadrille

public QuadrillePanel quadrille()
Fetch a QuadrillePanel.


polar

public PolarPanel polar()
Fetch a PolarPanel.


logarithmic

public LogPanel logarithmic()
Fetch a LogPanel. The method uses the full name to avoid possible confusion with logging.


ledger

public LedgerPanel ledger()
Fetch a LedgerPanel.


bps

public BPSPanel bps()
Fetch a BPSPanel.


barChart

public BarChartPanel barChart()
Fetch a BarChartPanel.


hex

public HexGridPanel hex()
Fetch a HexGridPanel.


music

public MusicPanel music()
Fetch a MusicPanel.


lettering

public LetteringPanel lettering()
Fetch a LetterngPanel.


offsetQuad

public OffsetQuadPanel offsetQuad()
Fetch an OffsetQuadPanel.


symLog

public SymmetricLogPanel symLog()
Fetch a SymmetricLogPanel.


isometric

public IsometricPanel isometric()
Fetch a IsometricPanel.


perspective

public PerspectivePanel perspective()
Fetch a PerspectivePanel.