Class PaintedImage
java.lang.Object
PaintedImage
- All Implemented Interfaces:
- java.io.Serializable
public class PaintedImage
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
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 |
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
PaintedImage
public PaintedImage(java.util.ArrayList s)
PaintedImage
public PaintedImage()
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)