Class PaintedImage

java.lang.Object
  extended by PaintedImage
All Implemented Interfaces:
java.io.Serializable

public class PaintedImage
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int BLACK
           
static int DRAW_LINE
           
static int DRAW_OVAL
           
static int DRAW_RECT
           
static int FILL_OVAL
           
static int FILL_RECT
           
static int IS_A_COLOR
           
static int IS_A_SHAPE
           
static int MAIN_COLOR
           
static int NUM_COLORS
           
static int NUM_TYPES
           
private  java.util.ArrayList shapesList
           
static int WHITE
           
 
Constructor Summary
PaintedImage()
           
PaintedImage(java.util.ArrayList s)
           
 
Method Summary
 PaintedImage copy()
           
 void drawImage(java.awt.Graphics g, Vector pos, java.awt.Color mainColor, double zoom)
           
 void drawShape(java.awt.Graphics g, Vector pos, int type, int width, int height, int offsetX, int offsetY, double zoom)
           
 PaintedImage mergeWith(PaintedImage other)
           
 PaintedImage mutate(double mutateProbability, double maxSize)
           
 void setShapesList(java.util.ArrayList x)
           
 java.util.List shapesList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_TYPES

public static final int NUM_TYPES
See Also:
Constant Field Values

FILL_OVAL

public static final int FILL_OVAL
See Also:
Constant Field Values

DRAW_OVAL

public static final int DRAW_OVAL
See Also:
Constant Field Values

FILL_RECT

public static final int FILL_RECT
See Also:
Constant Field Values

DRAW_RECT

public static final int DRAW_RECT
See Also:
Constant Field Values

DRAW_LINE

public static final int DRAW_LINE
See Also:
Constant Field Values

NUM_COLORS

public static final int NUM_COLORS
See Also:
Constant Field Values

MAIN_COLOR

public static final int MAIN_COLOR
See Also:
Constant Field Values

BLACK

public static final int BLACK
See Also:
Constant Field Values

WHITE

public static final int WHITE
See Also:
Constant Field Values

IS_A_COLOR

public static final int IS_A_COLOR
See Also:
Constant Field Values

IS_A_SHAPE

public static final int IS_A_SHAPE
See Also:
Constant Field Values

shapesList

private java.util.ArrayList shapesList
Constructor Detail

PaintedImage

public PaintedImage(java.util.ArrayList s)

PaintedImage

public PaintedImage()
Method Detail

shapesList

public java.util.List shapesList()

setShapesList

public void setShapesList(java.util.ArrayList x)

mutate

public PaintedImage mutate(double mutateProbability,
                           double maxSize)

copy

public PaintedImage copy()

mergeWith

public PaintedImage mergeWith(PaintedImage other)

drawImage

public void drawImage(java.awt.Graphics g,
                      Vector pos,
                      java.awt.Color mainColor,
                      double zoom)

drawShape

public void drawShape(java.awt.Graphics g,
                      Vector pos,
                      int type,
                      int width,
                      int height,
                      int offsetX,
                      int offsetY,
                      double zoom)