com.mebigfatguy.polycasso
Class ImageGeneratedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.mebigfatguy.polycasso.ImageGeneratedEvent
All Implemented Interfaces:
java.io.Serializable

public class ImageGeneratedEvent
extends java.util.EventObject

an event object that is fired when a new test image has been found that is the best so far.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ImageGeneratedEvent(java.lang.Object source, java.awt.Image image)
          creates the event object with the source of the event as well as the image that is now the best image found.
 
Method Summary
 java.awt.Image getImage()
          retrieve the best image as described by this event
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageGeneratedEvent

public ImageGeneratedEvent(java.lang.Object source,
                           java.awt.Image image)
creates the event object with the source of the event as well as the image that is now the best image found.

Parameters:
source - the object that generated this event (an image generator)
image - the best image found so far
Method Detail

getImage

public java.awt.Image getImage()
retrieve the best image as described by this event

Returns:
the best image


Copyright © 2009-2010 MeBigFatGuy.com. All Rights Reserved.