|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EVolve.visualization.AutoImage
Automatic expanding image.
Field Summary | |
protected int |
h
|
protected int |
hMax
|
protected short[][] |
image
|
protected int |
imageHeight
|
protected int |
imageWidth
|
protected java.util.HashMap |
Int2Object
|
protected java.util.HashMap |
object2Int
|
protected int |
w
|
protected int |
wMax
|
Constructor Summary | |
AutoImage()
Creates an auto-image. |
Method Summary | |
java.lang.Object |
clone()
|
java.lang.Object |
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. |
short[][] |
getImageDataArray()
|
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.lang.Object color)
Sets the color of a pixel. |
void |
setImageWidth(int width,
int height)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected short[][] image
protected int w
protected int h
protected int wMax
protected int hMax
protected int imageWidth
protected int imageHeight
protected java.util.HashMap object2Int
protected java.util.HashMap Int2Object
Constructor Detail |
public AutoImage()
Method Detail |
public void setColor(int x, int y, java.lang.Object color)
x
- position on X-axisy
- position on Y-axiscolor
- the colorpublic java.lang.Object getColor(int x, int y)
x
- position on X-axisy
- position on Y-axis
public java.awt.Color getSortedColor(ReferenceDimension xAxis, ReferenceDimension yAxis, int x, int y)
public java.awt.image.BufferedImage getImage() throws NoDataPlotException
NoDataPlotException
public AutoImage getSortedImage(ReferenceDimension xAxis, ReferenceDimension yAxis)
xAxis
- dimension that represents the X-axis, null if doesn't need to be sortedyAxis
- dimension that represents the Y-axis, null if doesn't need to be sorted
public int getDimension(int dim)
public int getW()
public int getH()
public void setImageWidth(int width, int height)
public short[][] getImageDataArray()
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |