|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFractal.LSystem2Renderer
Fractal.PSLSystem2
public class PSLSystem2
Write an LSystem grammar to a PostScript file
| Constructor Summary | |
|---|---|
PSLSystem2(java.lang.String grammar,
int depth,
float angle)
Create a new LSystem that can be written to a PS file with axiom 'F' |
|
PSLSystem2(java.lang.String axiom,
java.lang.String grammar,
int depth,
float angle)
Create a new LSystem that can be written to a PS file |
|
| Method Summary | |
|---|---|
protected void |
drawLine(java.lang.Object user,
int x,
int y,
int u,
int v)
Execute the LSystem and write its movements to the PS file, scaled to fit the page |
void |
save(java.lang.String filename)
Save the LSystem to the named file at dimensions (500, 500) |
void |
save(java.lang.String filename,
float width,
float height)
Save the LSystem to the named file at the specified dimensions |
| Methods inherited from class Fractal.LSystem2Renderer |
|---|
getDerivedGrammar, render, setDimension |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PSLSystem2(java.lang.String grammar,
int depth,
float angle)
grammar - The grammar of the LSystemdepth - The recursive depth of the grammarangle - The angle distance each turn should make, in degrees
public PSLSystem2(java.lang.String axiom,
java.lang.String grammar,
int depth,
float angle)
axiom - The axiom to apply the fractal togrammar - The grammar of the LSystemdepth - The recursive depth of the grammarangle - The angle distance each turn should make, in degrees| Method Detail |
|---|
public void save(java.lang.String filename)
filename - Filepath to save to
public void save(java.lang.String filename,
float width,
float height)
filename - Filepath to save towidth - Width of PostScript (in centimeters?)height - Height of PostScript (in centimeters?)
protected void drawLine(java.lang.Object user,
int x,
int y,
int u,
int v)
drawLine in class LSystem2Rendereruser - Any object the caller wants to pass. This is forwarded on to
the drawLine callback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||