|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--JavaPixel
Field Summary | |
int |
x
|
int |
y
|
Constructor Summary | |
JavaPixel(JavaPicture pic,
int px,
int py)
|
Method Summary | |
int |
getAlpha()
Returns the alpha value of the pixel. |
int |
getBlue()
Returns the blue value of the pixel. |
int |
getGreen()
Returns the green value of the pixel. |
int |
getRed()
Returns the red value of the pixel. |
void |
setBlue(int nuBlue)
Sets the blue value of the pixel. |
void |
setGreen(int nuGreen)
Sets the green value of the pixel. |
void |
setPixel()
actually sets the integer (or basic) value of the pixel once the separate red, green, blue and alpha values are set |
void |
setRed(int nuRed)
Sets the red value of the pixel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int x
public int y
Constructor Detail |
public JavaPixel(JavaPicture pic, int px, int py)
pic
- the JavaPicture object for each the JavaPixel is a pixel forpx
- the x coordinate of the pixel in picpy
- the y coordinate of the pixel in picMethod Detail |
public int getRed()
public int getAlpha()
public int getGreen()
public int getBlue()
public void setPixel()
public void setRed(int nuRed)
nuRed
- the red value as an integerpublic void setBlue(int nuBlue)
nuBlue
- the blue value as an integerpublic void setGreen(int nuGreen)
nuGreen
- the green value as an integer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |