|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcbr.ccv.Area
This class represents a pixel area with a size and color.
| Field Summary | |
protected int |
color_
The color of the area. |
protected boolean |
flag_
A flag that is used to determine whether an area was increased on the current scanline and must therefor be kept. |
protected Area |
redirect_
The redirect area. |
protected int |
size_
The size of the area. |
| Constructor Summary | |
Area(int color,
int size)
Creates an instance with the given color and size. |
|
| Method Summary | |
void |
accumulate(Span span)
Accumulates the pixels of the given span to the appropriate area. |
Area |
getArea()
|
void |
init(int color,
int size)
|
boolean |
isFresh()
|
boolean |
isRedirecting()
|
void |
reset()
Resets the flag to false. |
void |
setRedirect(Area area)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int color_
protected int size_
protected Area redirect_
protected boolean flag_
false.
| Constructor Detail |
public Area(int color,
int size)
color - The color.size - The size in pixels.| Method Detail |
public void init(int color,
int size)
public boolean isRedirecting()
public void setRedirect(Area area)
public Area getArea()
public void reset()
false. A value of
true signals that the area must be
carried over to the next scanline.
public boolean isFresh()
public void accumulate(Span span)
span - The span to add to this area.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||