Class Framework.ChaosGame

java.lang.Object
  extended by Framework.ChaosGame
All Implemented Interfaces:
Framework.Drawable
Enclosing class:
Framework

public class Framework.ChaosGame
extends java.lang.Object
implements Framework.Drawable


Field Summary
 
Fields inherited from interface Framework.Drawable
palette, random
 
Constructor Summary
Framework.ChaosGame(java.awt.Dimension appDimen)
           
 
Method Summary
 void draw(java.awt.image.BufferedImage drawTo)
          Draws itself to the parameterized BufferedImage.
 boolean finished()
          Sets the status of the rendering to completed.
 java.awt.Color getBackgroundColor()
          Merely returns the background color for this Drawable.
 void setCompleted()
          Sets the status of the rendering to completed.
 void setMouseEvent(java.awt.event.MouseEvent e)
          Allows all implementers to react to mouse events passed from the content class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Framework.ChaosGame

public Framework.ChaosGame(java.awt.Dimension appDimen)
Method Detail

draw

public void draw(java.awt.image.BufferedImage drawTo)
Description copied from interface: Framework.Drawable
Draws itself to the parameterized BufferedImage.

Specified by:
draw in interface Framework.Drawable
Parameters:
drawTo - a BufferedImage to draw to.

getBackgroundColor

public java.awt.Color getBackgroundColor()
Description copied from interface: Framework.Drawable
Merely returns the background color for this Drawable.

Specified by:
getBackgroundColor in interface Framework.Drawable
Returns:
the Color of the background for this Drawable.

setMouseEvent

public void setMouseEvent(java.awt.event.MouseEvent e)
Description copied from interface: Framework.Drawable
Allows all implementers to react to mouse events passed from the content class.

Specified by:
setMouseEvent in interface Framework.Drawable
Parameters:
e - The MouseEvent that the object is to respond to.

finished

public boolean finished()
Description copied from interface: Framework.Drawable
Sets the status of the rendering to completed. Called by Content's stopThread method to interrupt and terminate the rendering thread.

Specified by:
finished in interface Framework.Drawable

setCompleted

public void setCompleted()
Description copied from interface: Framework.Drawable
Sets the status of the rendering to completed. Called by Content's stopThread method to interrupt and terminate the rendering thread.

Specified by:
setCompleted in interface Framework.Drawable