Border3DStyle Class

Border3DStyle Class

This Package | All Packages

Enum
  |
  +--Border3DStyle
public final class Border3DStyle
extends Enum

Defines the constants that you pass to the Graphics.drawBorder3D method to define a 3D border's appearance.

Also see wfc.ui.Graphics

Fields
Name Description
ADJUST Specifies that the border should be drawn outside of the given rectangle, preserving the dimensions of the rectangle for drawing.
ALL All viable flags in the bit mask.
BUMP Consists of a raised outer edge and a sunken inner edge.
ETCHED Consists of a sunken inner edge and a raised outer edge.
FLAT Draws the border entirely flat with no three-dimensional effects.
RAISED Consists of raised inner and outer edges.
RAISEDINNER Consists of a raised inner edge and no outer edge.
RAISEDOUTER Consists of a raised outer edge and no inner edge.
SUNKEN Consists of sunken inner and outer edges.
SUNKENINNER Consists of a sunken inner edge and no outer edge.
SUNKENOUTER Consists of a sunken outer edge and no inner edge.

Methods
Name Description
ensureValid(int value) Throws an exception if the specified value is not supported by this class.
valid(int value) Returns true if the given value is allowable by this class; otherwise, returns false.

Fields

Border3DStyle.ADJUST

Syntax
public static final int ADJUST;
Description
Specifies that the border should be drawn outside of the given rectangle, preserving the dimensions of the rectangle for drawing.

Border3DStyle.ALL

Syntax
public static final int ALL;
Description
All viable flags in the bit mask.

Border3DStyle.BUMP

Syntax
public static final int BUMP;
Description
Consists of a raised outer edge and a sunken inner edge.

Border3DStyle.ETCHED

Syntax
public static final int ETCHED;
Description
Consists of a sunken inner edge and a raised outer edge.

Border3DStyle.FLAT

Syntax
public static final int FLAT;
Description
Draws the border entirely flat with no three-dimensional effects.

Border3DStyle.RAISED

Syntax
public static final int RAISED;
Description
Consists of raised inner and outer edges.

Border3DStyle.RAISEDINNER

Syntax
public static final int RAISEDINNER;
Description
Consists of a raised inner edge and no outer edge.

Border3DStyle.RAISEDOUTER

Syntax
public static final int RAISEDOUTER;
Description
Consists of a raised outer edge and no inner edge.

Border3DStyle.SUNKEN

Syntax
public static final int SUNKEN;
Description
Consists of sunken inner and outer edges.

Border3DStyle.SUNKENINNER

Syntax
public static final int SUNKENINNER;
Description
Consists of a sunken inner edge and no outer edge.

Border3DStyle.SUNKENOUTER

Syntax
public static final int SUNKENOUTER;
Description
Consists of a sunken outer edge and no inner edge.

Methods

Border3DStyle.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 thrown if value does not reference a valid Border3DStyle constant.

Border3DStyle.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

Returns true if the given value is allowable by this class; otherwise, returns false.