|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.imageutil.PixelArea
public class PixelArea
SegmentArea holds the information.
Field Summary | |
---|---|
protected CPointDouble |
_aggregationPoint
|
protected int |
_area
Number of pixels. |
protected java.lang.Boolean |
_background
Area is background, value null means not known. |
protected BBox |
_boundingBox
|
protected boolean |
_gapInLine
If any line in the area has a line that was split. |
protected int |
_startX
|
protected int |
_startY
|
Constructor Summary | |
---|---|
PixelArea(int x,
int y)
|
Method Summary | |
---|---|
void |
addPoint(int x,
int y)
|
int |
getArea()
Number of pixels. |
java.lang.Boolean |
getBackground()
|
BBox |
getBoundingBox()
|
IPoint2D |
getCenterPoint()
|
int |
getStartX()
|
int |
getStartY()
|
boolean |
isGapInLine()
If any line in the area has a line that was split. |
void |
putPixel(int x,
int y,
int color)
Handle a pixel with a color and a coordinate. |
void |
setBackground(java.lang.Boolean background)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CPointDouble _aggregationPoint
protected int _startX
protected int _startY
protected BBox _boundingBox
protected int _area
protected java.lang.Boolean _background
protected boolean _gapInLine
Constructor Detail |
---|
public PixelArea(int x, int y)
Method Detail |
---|
public void addPoint(int x, int y)
public IPoint2D getCenterPoint()
public int getArea()
public boolean isGapInLine()
public BBox getBoundingBox()
public java.lang.Boolean getBackground()
public void setBackground(java.lang.Boolean background)
public void putPixel(int x, int y, int color)
PixelHandler
putPixel
in interface PixelHandler
public int getStartX()
public int getStartY()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |