com.barrybecker4.simulation.lsystem.rendering
Class LSystemRenderer
java.lang.Object
com.barrybecker4.simulation.lsystem.rendering.LSystemRenderer
public class LSystemRenderer
- extends java.lang.Object
Everything we need to know to compute the l-System tree.
Should make the tree automatically center.
|
Constructor Summary |
LSystemRenderer(int width,
int height,
java.lang.String expression,
int numIterations,
double angleInc,
double scale,
double scaleFactor)
Constructor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LSystemRenderer
public LSystemRenderer(int width,
int height,
java.lang.String expression,
int numIterations,
double angleInc,
double scale,
double scaleFactor)
throws java.lang.IllegalArgumentException
- Constructor
- Throws:
java.lang.IllegalArgumentException
getWidth
public int getWidth()
getHeight
public int getHeight()
reset
public void reset()
getImage
public java.awt.image.BufferedImage getImage()
render
public void render()
- draw the tree