com.barrybecker4.simulation.lsystem.rendering
Class LSystemRenderer

java.lang.Object
  extended by 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
 
Method Summary
 int getHeight()
           
 java.awt.image.BufferedImage getImage()
           
 int getWidth()
           
 void render()
          draw the tree
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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