|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcox.jmatt.java.MathTools.demo.gpgdemo.GraphPanelFactory
public class GraphPanelFactory
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 |
---|
public GraphPanelFactory()
Method Detail |
---|
public static final void setGPDebugMode(boolean pEnable)
GPGenerator.GP_DEBUG
field.
public final void setGPDebug(boolean pEnable)
public void addPens(SVGTag pTag)
standard pens
to a SVGTag
.
public void setMarginPizza(java.lang.String pPizza)
GPGenerator
if it exists. If not, nothing happens.
public java.lang.String getMarginPizza(java.lang.String pPrefix)
public void eatMarginPizza(java.lang.String pPrefix)
public QuadrillePanel quadrille()
QuadrillePanel
.
public PolarPanel polar()
PolarPanel
.
public LogPanel logarithmic()
LogPanel
. The method uses the full name to avoid possible confusion with logging.
public LedgerPanel ledger()
LedgerPanel
.
public BPSPanel bps()
BPSPanel
.
public BarChartPanel barChart()
BarChartPanel
.
public HexGridPanel hex()
HexGridPanel
.
public MusicPanel music()
MusicPanel
.
public LetteringPanel lettering()
LetterngPanel
.
public OffsetQuadPanel offsetQuad()
OffsetQuadPanel
.
public SymmetricLogPanel symLog()
SymmetricLogPanel
.
public IsometricPanel isometric()
IsometricPanel
.
public PerspectivePanel perspective()
PerspectivePanel
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |