|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFill
public class Fill
Fill class is used to fill a color to the whole area of the main canvas. It also consists of a helper class which is coords class. This class will try and fill the whole area of the pixel with the colors wanted. There are no OS/Hardware dependencies and no variances. There are no security constraints. There are no references to external specifications.
Field Summary | |
---|---|
(package private) java.awt.image.BufferedImage |
bim
BufferImage that is going to be colored. |
(package private) coords |
cur
The coordinates that is used to move around in the coord array of pixels and keep track which of the coords is not colored. |
(package private) static int |
eastBound
The column number of pixels. |
(package private) static int |
fill
The new color to fill the pixel with the colors wanted. |
(package private) static int |
index
The current position in the array. |
(package private) static int |
old
The original color that you want to change. |
(package private) coords[] |
pixels
A coordinate array of the pixels used to keep track which part of the BufferedImage bim is not colored. |
(package private) static int |
southBound
The row number of pixels. |
Constructor Summary | |
---|---|
Fill(java.awt.image.BufferedImage in,
int x1,
int y1,
int filler)
Constructor for the fill class. |
Method Summary | |
---|---|
void |
fillIt()
fillIt does the coloring. |
java.awt.image.BufferedImage |
getBufferedImage()
Returns the BufferedImage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.awt.image.BufferedImage bim
static int old
static int fill
static int index
static int eastBound
static int southBound
coords[] pixels
coords cur
Constructor Detail |
---|
public Fill(java.awt.image.BufferedImage in, int x1, int y1, int filler)
in
- BufferedImage we want to color.x1
- The starting index for x.y1
- The starting index for y.filler
- The color that it is supposed to be used.Method Detail |
---|
public java.awt.image.BufferedImage getBufferedImage()
public void fillIt()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |