com.sas.geometry
Class CornerOrientation

com.sas.geometry.CornerOrientation

public abstract class CornerOrientation

CornerOrientation defines a set of constants for identifying a corner along a rectangular path and a method for determining whether a given integer is one of them.

See Also:
Orientations, Orientation, CircularOrientation, HorizontalOrientation, RectangularOrientation, SideOrientation, VerticalOrientation

Field Summary
static int BOTTOM_LEFT
           
static int BOTTOM_RIGHT
           
static int TOP_LEFT
           
static int TOP_RIGHT
           
 
Constructor Summary
CornerOrientation()
           
 
Method Summary
static boolean validate(int orientation)
          Determines whether a given integer value is one of the defined orientations.
static boolean validateCombination(int orientation)
          Determines whether a given integer value is a valid combination one or more of the defined orientations.
 

Field Detail

TOP_LEFT

public static final int TOP_LEFT
See Also:
Constant Field Values

TOP_RIGHT

public static final int TOP_RIGHT
See Also:
Constant Field Values

BOTTOM_RIGHT

public static final int BOTTOM_RIGHT
See Also:
Constant Field Values

BOTTOM_LEFT

public static final int BOTTOM_LEFT
See Also:
Constant Field Values
Constructor Detail

CornerOrientation

public CornerOrientation()
Method Detail

validate

public static boolean validate(int orientation)
Determines whether a given integer value is one of the defined orientations.

Parameters:
orientation - The integer value to validate.
Returns:
true if orientation is one of the defined ones and false otherwise.

validateCombination

public static boolean validateCombination(int orientation)
Determines whether a given integer value is a valid combination one or more of the defined orientations.

Parameters:
orientation - The integer value to validate.
Returns:
true if orientation is a combination of one or more of the defined orientations and false otherwise.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.