|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BitMaskCore
Core of bit-mask interface (representation of pixel set in 2D plane).
| Method Summary | |
|---|---|
BitMaskEnumerator |
enumerator()
Bit-mask enumeration. |
boolean |
getPixel(int x,
int y)
Returns the pixel's value. |
void |
init()
Bit-mask re-initialization (keeps current bitmask size - if the size is relevant). |
void |
init(int x,
int y)
Bit-mask (re-)initialization. |
void |
setHLine(int x1,
int x2,
int y)
Sets the horizontal line from [min(x1,x2),y] to [max(x1,x2)-1,y]. |
void |
setPixel(int x,
int y)
Sets the given pixel's value to true = "painted". |
| Method Detail |
|---|
void init(int x,
int y)
x - Width of a new bitmask.y - Height of a new bitmask.void init()
void setPixel(int x,
int y)
true = "painted".
Accepts current binary set operation.
x - X coordinate of a pixel.y - Y coordinate of a pixel.
boolean getPixel(int x,
int y)
x - X coordinate of a pixel.y - Y coordinate of a pixel.
false for off-canvas access).
void setHLine(int x1,
int x2,
int y)
x1 - X coordinate of the starting pixel.x2 - X coordinate of the first pixel after the line.y - Common Y coordinate of the line.BitMaskEnumerator enumerator()
BitMaskEnumerator object instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||