client.mandelbrot
Class MandelbrotImage

java.lang.Object
  extended by client.mandelbrot.MandelbrotImage

public class MandelbrotImage
extends java.lang.Object

Stores the image representation of the solution to a Mandelbrot task.

Author:
Mark Wiley

Constructor Summary
MandelbrotImage()
          Creates a new instance of MandelbrotDisplay
MandelbrotImage(int resolution, ColorMap colormap)
          Creates the graphical representation of a Mandelbrot set
 
Method Summary
 java.awt.image.BufferedImage getImage()
           
 void integrateEvent(MbrotEvent event)
          Integrates a MandelbrotEvent's data into the image representation of the solution.
 void reset()
          Reinitializes this MandelbrotImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MandelbrotImage

public MandelbrotImage()
Creates a new instance of MandelbrotDisplay


MandelbrotImage

public MandelbrotImage(int resolution,
                       ColorMap colormap)
Creates the graphical representation of a Mandelbrot set

Parameters:
resolution - The resolution of this image
colormap - The color map to used when mapping solution values to color
Method Detail

reset

public void reset()
Reinitializes this MandelbrotImage


integrateEvent

public void integrateEvent(MbrotEvent event)
Integrates a MandelbrotEvent's data into the image representation of the solution.

Parameters:
event - The event to incorporate into the image

getImage

public java.awt.image.BufferedImage getImage()
Returns:
The buffered image wrapped by this MandelbrotImage