com.sas.geometry
Class SideOrientation

com.sas.geometry.SideOrientation

public abstract class SideOrientation

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

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

Field Summary
static int ALL
           
static int BOTTOM
           
static int LEFT
           
static int RIGHT
           
static int TOP
           
 
Constructor Summary
SideOrientation()
           
 
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

public static final int TOP
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

ALL

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

SideOrientation

public SideOrientation()
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.