com.barrybecker4.simulation.lsystem.model
Class LSystemModel
java.lang.Object
com.barrybecker4.simulation.lsystem.model.LSystemModel
public class LSystemModel
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_EXPRESSION
public static final java.lang.String DEFAULT_EXPRESSION
- See Also:
- Constant Field Values
DEFAULT_ITERATIONS
public static final int DEFAULT_ITERATIONS
- See Also:
- Constant Field Values
DEFAULT_ANGLE
public static final double DEFAULT_ANGLE
- See Also:
- Constant Field Values
DEFAULT_SCALE
public static final double DEFAULT_SCALE
- See Also:
- Constant Field Values
DEFAULT_SCALE_FACTOR
public static final double DEFAULT_SCALE_FACTOR
- See Also:
- Constant Field Values
DEFAULT_SIZE
public static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
LSystemModel
public LSystemModel()
setSize
public void setSize(int width,
int height)
reset
public void reset()
setNumIterations
public void setNumIterations(int num)
setAngle
public void setAngle(double ang)
setScale
public void setScale(double value)
setScaleFactor
public void setScaleFactor(double value)
setExpression
public void setExpression(java.lang.String exp)
getImage
public java.awt.image.BufferedImage getImage()
timeStep
public boolean timeStep(double timeStep)
- Parameters:
timeStep - number of rows to compute on this timestep.
- Returns:
- true when done computing whole renderer.