Border3DSide Class

Border3DSide Class

This Package | All Packages

public final class Border3DSide

This class defines the constants that you pass to the Graphics.drawBorder3D method to define a three-dimensional border's appearance.

Also see wfc.ui.Graphics

Fields
Name Description
ALL Combines all available position constants (LEFT, TOP, RIGHT, BOTTOM, and MIDDLE).
BOTTOM Draws the bottom side of a three-dimensional border.
LEFT Draws the left side of a three-dimensional border.
MIDDLE Fills in the middle part of the three-dimensional border.
RIGHT Draws the right side of a three-dimensional border.
TOP Draws the top side of a three-dimensional border.

Methods
Name Description
ensureValid(int value) Throws an exception if the specified value is not supported by this class.
valid(int value) Retrieves a boolean value that indicates whether the specified value is supported by this class.

Fields

Border3DSide.ALL

Syntax
public static final int ALL;
Description
Combines all available position constants (LEFT, TOP, RIGHT, BOTTOM, and MIDDLE).

Border3DSide.BOTTOM

Syntax
public static final int BOTTOM;
Description
Draws the bottom side of a three-dimensional border.

Border3DSide.LEFT

Syntax
public static final int LEFT;
Description
Draws the left side of a three-dimensional border.

Border3DSide.MIDDLE

Syntax
public static final int MIDDLE;
Description
Fills in the middle part of the three-dimensional border.

Border3DSide.RIGHT

Syntax
public static final int RIGHT;
Description
Draws the right side of a three-dimensional border.

Border3DSide.TOP

Syntax
public static final int TOP;
Description
Draws the top side of a three-dimensional border.

Methods

Border3DSide.ensureValid

Syntax
public static void ensureValid( int value );
Parameters
value
The value to check.
Description

Throws an exception if the specified value is not supported by this class.

Exceptions

InvalidEnumArgument

Border3DSide.valid

Syntax
public static boolean valid( int value );
Parameters
value
The value to check.
Return Value

Returns true if the value is valid; otherwise, returns false.

Description

Retrieves a boolean value that indicates whether the specified value is supported by this class.