reportMinAreaViolation
public void reportMinAreaViolation(long area,
int x,
int y,
java.awt.Shape shape)
The algorithm uses this method to report about polygon that violates
min area rule. The algorithm report actual area of the polygon and
vertex with lexigraphically maximal coordinates (x,y).
This means that rightmost vertical edges of polygon are choosen,
and than the most upper vertex on these edges is choosen.
Formally, such point (x,y) is reported that for any other point (x',y') of
this polygin: (x' < x || x' == x && y' < y)
- Specified by:
reportMinAreaViolation
in interface ErrorLogger
- Parameters:
area
- the area of violating polygonx
- x-coordinate of lexigraphically largest point of violating polygony
- y-coordinate of lexigraphically largest point of violating polygonshape
- optional Shape of Polygon