EVolve.visualization
Class AutoShapeImage

java.lang.Object
  |
  +--EVolve.visualization.AutoImage
        |
        +--EVolve.visualization.AutoShapeImage
All Implemented Interfaces:
java.lang.Cloneable

public class AutoShapeImage
extends AutoImage


Field Summary
 
Fields inherited from class EVolve.visualization.AutoImage
h, hMax, image, imageHeight, imageWidth, Int2Object, object2Int, w, wMax
 
Constructor Summary
AutoShapeImage()
           
AutoShapeImage(Shape defaultShape)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Object getColor(int x, int y)
          Gets the color of a pixel.
 Shape getEntityShapes(int x, int y)
           
 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.
 void reArrange(int width, int boxSize)
           
 void setColor(int x, int y, java.lang.Object shape)
          Sets the color of a pixel.
 void setImageWidth(int width, int height)
           
 
Methods inherited from class EVolve.visualization.AutoImage
getDimension, getH, getImageDataArray, getW
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoShapeImage

public AutoShapeImage()

AutoShapeImage

public AutoShapeImage(Shape defaultShape)
Method Detail

setColor

public void setColor(int x,
                     int y,
                     java.lang.Object shape)
Description copied from class: AutoImage
Sets the color of a pixel.

Overrides:
setColor in class AutoImage
Parameters:
x - position on X-axis
y - position on Y-axis
shape - the color

getImage

public java.awt.image.BufferedImage getImage()
                                      throws NoDataPlotException
Description copied from class: AutoImage
Gets the buffered-image.

Overrides:
getImage in class AutoImage
Returns:
buffered-image
NoDataPlotException

getColor

public java.lang.Object getColor(int x,
                                 int y)
Description copied from class: AutoImage
Gets the color of a pixel.

Overrides:
getColor in class AutoImage
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)
Overrides:
getSortedColor in class AutoImage

getEntityShapes

public Shape getEntityShapes(int x,
                             int y)

getSortedImage

public AutoImage getSortedImage(ReferenceDimension xAxis,
                                ReferenceDimension yAxis)
Description copied from class: AutoImage
Sorts the image.

Overrides:
getSortedImage in class AutoImage
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

setImageWidth

public void setImageWidth(int width,
                          int height)
Overrides:
setImageWidth in class AutoImage

reArrange

public void reArrange(int width,
                      int boxSize)

clone

public java.lang.Object clone()
Overrides:
clone in class AutoImage