Enum Class Pattern
Enum Constant Summary
Enum Constants
Specifies that Spread controls the pattern.
Specifies diagonal crosshatch.
Specifies thin diagonal crosshatch.
Specifies reverse diagonal stripe.
Specifies thin horizontal crosshatch.
Specifies horizontal stripe.
Specifies thin reverse diagonal stripe.
Specifies thin horizontal stripe.
Specifies thin diagonal stripe.
Specifies thin vertical stripe.
Specifies the linear graident type for gradient fill.
Specifies the rectangular gradient type for gradient fill.
Specifies thick diagonal crosshatch.
Specifies diagonal stripe.
Specifies vertical stripe.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
int
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
Automatic
public static final Pattern Automatic
Specifies that Spread controls the pattern.
None
Specifies no pattern.
Solid
Specifies a solid color.
Gray75
Specifies 75% gray.
Gray50
Specifies 50% gray.
Gray25
Specifies 25% gray.
Gray16
Specifies 12.5% gray.
Gray8
Specifies 6.25% gray.
Horizontal
public static final Pattern Horizontal
Specifies horizontal stripe.
Vertical
public static final Pattern Vertical
Specifies vertical stripe.
Down
Specifies reverse diagonal stripe.
Up
Specifies diagonal stripe.
Checker
public static final Pattern Checker
Specifies diagonal crosshatch.
SemiGray75
public static final Pattern SemiGray75
Specifies thick diagonal crosshatch.
LightHorizontal
public static final Pattern LightHorizontal
Specifies thin horizontal stripe.
LightVertical
public static final Pattern LightVertical
Specifies thin vertical stripe.
LightDown
public static final Pattern LightDown
Specifies thin reverse diagonal stripe.
LightUp
public static final Pattern LightUp
Specifies thin diagonal stripe.
Grid
Specifies thin horizontal crosshatch.
CrissCross
public static final Pattern CrissCross
Specifies thin diagonal crosshatch.
LinearGradient
public static final Pattern LinearGradient
Specifies the linear graident type for gradient fill.
RectangularGradient
public static final Pattern RectangularGradient
Specifies the rectangular gradient type for gradient fill.
Method Details
values
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name
- the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException
- if this enum class has no constant with the specified name
NullPointerException
- if the argument is null
getValue
public int getValue ()
forValue
public static Pattern forValue (int value)