Package org.apache.poi.hwmf.record
Enum HwmfHatchStyle
- All Implemented Interfaces:
Serializable,Comparable<HwmfHatchStyle>,java.lang.constant.Constable
The HatchStyle Enumeration specifies the hatch pattern.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription///// - A 45-degree upward, left-to-right hatch.+++++ - A horizontal and vertical cross-hatch.xxxxx - A 45-degree crosshatch.The hatch is not a pattern, but is a dithered color, defined by the current background color.The hatch is not a pattern, but is a dithered color.The hatch is not a pattern, but is a dithered color, defined by the current text (foreground) color.\\\\\ - A 45-degree downward, left-to-right hatch.----- - A horizontal hatchThe hatch is not a pattern, but is a solid color, defined by the current background color.The hatch is not a pattern, but is a solid color.The hatch is not a pattern, but is a solid color, defined by the current text (foreground) color.||||| - A vertical hatch -
Method Summary
Modifier and TypeMethodDescriptionintgetFlag()longstatic HwmfHatchStylevalueOf(int flag) Returns the enum constant of this type with the specified name.static HwmfHatchStyleReturns the enum constant of this type with the specified name.static HwmfHatchStyle[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
HS_HORIZONTAL
----- - A horizontal hatch -
HS_VERTICAL
||||| - A vertical hatch -
HS_FDIAGONAL
\\\\\ - A 45-degree downward, left-to-right hatch. -
HS_BDIAGONAL
///// - A 45-degree upward, left-to-right hatch. -
HS_CROSS
+++++ - A horizontal and vertical cross-hatch. -
HS_DIAGCROSS
xxxxx - A 45-degree crosshatch. -
HS_SOLIDCLR
The hatch is not a pattern, but is a solid color. -
HS_DITHEREDCLR
The hatch is not a pattern, but is a dithered color. -
HS_SOLIDTEXTCLR
The hatch is not a pattern, but is a solid color, defined by the current text (foreground) color. -
HS_DITHEREDTEXTCLR
The hatch is not a pattern, but is a dithered color, defined by the current text (foreground) color. -
HS_SOLIDBKCLR
The hatch is not a pattern, but is a solid color, defined by the current background color. -
HS_DITHEREDBKCLR
The hatch is not a pattern, but is a dithered color, defined by the current background color.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getFlag
public int getFlag() -
getPattern
public long getPattern() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
flag- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-