Crossfire JXClient, Trunk
Public Member Functions | Package Functions | Package Attributes | List of all members
CLSFractal Class Reference
Inheritance diagram for CLSFractal:
Inheritance graph
Collaboration diagram for CLSFractal:
Collaboration graph

Public Member Functions

void destroy ()
 
String getAppletInfo ()
 
String[][] getParameterInfo ()
 
void init ()
 
void mouseClicked (MouseEvent e)
 
void mouseEntered (MouseEvent e)
 
void mouseExited (MouseEvent e)
 
void mousePressed (MouseEvent e)
 
void mouseReleased (MouseEvent e)
 
void paint (Graphics g)
 
void run ()
 
void start ()
 
void stop ()
 

Package Functions

void includePt (float x, float y)
 
void render (Graphics g, String path)
 

Package Attributes

int border
 
ContextLSystem cls
 
int fractLevel = 1
 
boolean incrementalUpdates
 
Thread kicker
 
boolean normalizescaling
 
int repaintDelay = 50
 
float rotAngle = 45
 
String savedPath
 
float startAngle = 0
 
float Xmax
 
float Xmin
 
float Ymax
 
float Ymin
 

Detailed Description

A (not-yet) Context sensitive L-System Fractal applet class.

The rules for the Context L-system are read from the java.applet.Applet's attributes and then the system is iteratively applied for the given number of levels, possibly drawing each generation as it is generated. Note that the ContextLSystem class does not yet handle the lContext and rContext attributes, although this class is already designed to parse the '[' and ']' characters typically used in Context sensitive L-Systems.

Author
Jim Graham

Definition at line 63 of file CLSFractal.java.

Member Function Documentation

◆ destroy()

void CLSFractal.destroy ( )

Definition at line 118 of file CLSFractal.java.

◆ getAppletInfo()

String CLSFractal.getAppletInfo ( )

Definition at line 289 of file CLSFractal.java.

◆ getParameterInfo()

String [][] CLSFractal.getParameterInfo ( )

Definition at line 299 of file CLSFractal.java.

◆ includePt()

void CLSFractal.includePt ( float  x,
float  y 
)
package

Definition at line 273 of file CLSFractal.java.

◆ init()

void CLSFractal.init ( )

Definition at line 82 of file CLSFractal.java.

◆ mouseClicked()

void CLSFractal.mouseClicked ( MouseEvent  e)

Definition at line 159 of file CLSFractal.java.

◆ mouseEntered()

void CLSFractal.mouseEntered ( MouseEvent  e)

Definition at line 175 of file CLSFractal.java.

◆ mouseExited()

void CLSFractal.mouseExited ( MouseEvent  e)

Definition at line 179 of file CLSFractal.java.

◆ mousePressed()

void CLSFractal.mousePressed ( MouseEvent  e)

Definition at line 163 of file CLSFractal.java.

◆ mouseReleased()

void CLSFractal.mouseReleased ( MouseEvent  e)

Definition at line 167 of file CLSFractal.java.

◆ paint()

void CLSFractal.paint ( Graphics  g)

Definition at line 184 of file CLSFractal.java.

References ContextLSystem.getPath().

Here is the call graph for this function:

◆ render()

void CLSFractal.render ( Graphics  g,
String  path 
)
package

Definition at line 202 of file CLSFractal.java.

References CLSTurtle.draw(), CLSTurtle.jump(), path, CLSTurtle.rotate(), CLSTurtle.X, and CLSTurtle.Y.

Here is the call graph for this function:

◆ run()

void CLSFractal.run ( )

Definition at line 123 of file CLSFractal.java.

References ContextLSystem.generate(), and ContextLSystem.getLevel().

Here is the call graph for this function:

◆ start()

void CLSFractal.start ( )

Definition at line 147 of file CLSFractal.java.

◆ stop()

void CLSFractal.stop ( )

Definition at line 153 of file CLSFractal.java.

Member Data Documentation

◆ border

int CLSFractal.border
package

Definition at line 78 of file CLSFractal.java.

◆ cls

ContextLSystem CLSFractal.cls
package

Definition at line 68 of file CLSFractal.java.

◆ fractLevel

int CLSFractal.fractLevel = 1
package

Definition at line 69 of file CLSFractal.java.

◆ incrementalUpdates

boolean CLSFractal.incrementalUpdates
package

Definition at line 71 of file CLSFractal.java.

◆ kicker

Thread CLSFractal.kicker
package

Definition at line 67 of file CLSFractal.java.

◆ normalizescaling

boolean CLSFractal.normalizescaling
package

Definition at line 79 of file CLSFractal.java.

◆ repaintDelay

int CLSFractal.repaintDelay = 50
package

Definition at line 70 of file CLSFractal.java.

◆ rotAngle

float CLSFractal.rotAngle = 45
package

Definition at line 73 of file CLSFractal.java.

◆ savedPath

String CLSFractal.savedPath
package

Definition at line 181 of file CLSFractal.java.

◆ startAngle

float CLSFractal.startAngle = 0
package

Definition at line 72 of file CLSFractal.java.

◆ Xmax

float CLSFractal.Xmax
package

Definition at line 75 of file CLSFractal.java.

◆ Xmin

float CLSFractal.Xmin
package

Definition at line 74 of file CLSFractal.java.

◆ Ymax

float CLSFractal.Ymax
package

Definition at line 77 of file CLSFractal.java.

◆ Ymin

float CLSFractal.Ymin
package

Definition at line 76 of file CLSFractal.java.


The documentation for this class was generated from the following file: