public static enum Boundary2DScanner.Side extends java.lang.Enum<Boundary2DScanner.Side>
The pixel side. This class represents one of 4 sides of a pixel (little square 1x1).
See definition of the "pixel" term in comments to Boundary2DScanner
class.
This class is immutable and threadsafe: there are no ways to modify settings of the created instance.
Enum Constant and Description 

X_MINUS
The left side (if the x axis is directed rightwards):
the vertical boundary segment of the pixel with less xcoordinate.

X_PLUS
The right side (if the x axis is directed rightwards):
the vertical boundary segment of the pixel with greater xcoordinate.

Y_MINUS
The top side (if the y axis is directed downwards):
the horizontal boundary segment of the pixel with less ycoordinate.

Y_PLUS
The bottom side (if the y axis is directed downwards):
the horizontal boundary segment of the pixel with greater ycoordinate.

Modifier and Type  Method and Description 

double 
centerX()
Returns xcoordinate of the center (middle) of this side of the pixel.

double 
centerY()
Returns ycoordinate of the center (middle) of this side of the pixel.

int 
dxAlong()
Returns xprojection of this side of the pixel;
the side is considered as an oriented segment (vector).

int 
dyAlong()
Returns yprojection of this side of the pixel;
the side is considered as an oriented segment (vector).

boolean 
isHorizontal()

boolean 
isVertical()

static Boundary2DScanner.Side 
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.

static Boundary2DScanner.Side[] 
values()
Returns an array containing the constants of this enum type, in
the order they are declared.

public static final Boundary2DScanner.Side X_MINUS
public static final Boundary2DScanner.Side Y_MINUS
public static final Boundary2DScanner.Side X_PLUS
public static final Boundary2DScanner.Side Y_PLUS
public static Boundary2DScanner.Side[] values()
for (Boundary2DScanner.Side c : Boundary2DScanner.Side.values()) System.out.println(c);
public static Boundary2DScanner.Side valueOf(java.lang.String name)
name
 the name of the enum constant to be returned.java.lang.IllegalArgumentException
 if this enum type has no constant
with the specified namejava.lang.NullPointerException
 if the argument is nullpublic boolean isHorizontal()
public boolean isVertical()
public int dxAlong()
Boundary2DScanner
class.
This method returns +1 for Y_MINUS
, 1 for Y_PLUS
,
0 for X_MINUS
and X_PLUS
.
public int dyAlong()
Boundary2DScanner
class.
This method returns 1 for X_MINUS
, +1 for X_PLUS
,
0 for Y_MINUS
and Y_PLUS
.
public double centerX()
This method returns 0.5 for X_MINUS
, +0.5 for X_PLUS
,
0.0 for Y_MINUS
and Y_PLUS
.
public double centerY()
This method returns 0.5 for Y_MINUS
, +0.5 for Y_PLUS
,
0.0 for X_MINUS
and X_PLUS
.