EVolve.visualization
Class AutoImage

java.lang.Object
  |
  +--EVolve.visualization.AutoImage

public class AutoImage
extends java.lang.Object

Automatic expanding image.


Constructor Summary
AutoImage()
          Creates an auto-image.
 
Method Summary
 java.awt.Color getColor(int x, int y)
          Gets the color of a pixel.
 int getDimension(int dim)
           
 int getH()
           
 java.awt.image.BufferedImage getImage()
          Gets the buffered-image.
 java.awt.Color getSortedColor(ReferenceDimension xAxis, ReferenceDimension yAxis, int x, int y)
           
 AutoImage getSortedImage(ReferenceDimension xAxis, ReferenceDimension yAxis)
          Sorts the image.
 int getW()
           
 void setColor(int x, int y, java.awt.Color color)
          Sets the color of a pixel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoImage

public AutoImage()
Creates an auto-image.

Method Detail

setColor

public void setColor(int x,
                     int y,
                     java.awt.Color color)
Sets the color of a pixel.

Parameters:
x - position on X-axis
y - position on Y-axis
color - the color

getColor

public java.awt.Color getColor(int x,
                               int y)
Gets the color of a pixel.

Parameters:
x - position on X-axis
y - position on Y-axis
Returns:
the color

getSortedColor

public java.awt.Color getSortedColor(ReferenceDimension xAxis,
                                     ReferenceDimension yAxis,
                                     int x,
                                     int y)

getImage

public java.awt.image.BufferedImage getImage()
Gets the buffered-image.

Returns:
buffered-image

getSortedImage

public AutoImage getSortedImage(ReferenceDimension xAxis,
                                ReferenceDimension yAxis)
Sorts the image.

Parameters:
xAxis - dimension that represents the X-axis, null if doesn't need to be sorted
yAxis - dimension that represents the Y-axis, null if doesn't need to be sorted
Returns:
sorted image

getDimension

public int getDimension(int dim)

getW

public int getW()

getH

public int getH()