Enum Class HwmfBrushStyle

java.lang.Object
java.lang.Enum<HwmfBrushStyle>
org.apache.poi.hwmf.record.HwmfBrushStyle
All Implemented Interfaces:
Serializable, Comparable<HwmfBrushStyle>, Constable

public enum HwmfBrushStyle extends Enum<HwmfBrushStyle>
A 16-bit unsigned integer that defines the brush style. The legal values for this field are defined as follows: if the value is not BS_PATTERN, BS_DIBPATTERNPT MUST be assumed.
  • Enum Constant Details

    • BS_SOLID

      public static final HwmfBrushStyle BS_SOLID
      A brush that paints a single, constant color, either solid or dithered.
    • BS_NULL

      public static final HwmfBrushStyle BS_NULL
      A brush that does nothing. Using a BS_NULL brush in a graphics operation MUST have the same effect as using no brush at all.
    • BS_HATCHED

      public static final HwmfBrushStyle BS_HATCHED
      A brush that paints a predefined simple pattern, or "hatch", onto a solid background.
    • BS_PATTERN

      public static final HwmfBrushStyle BS_PATTERN
      A brush that paints a pattern defined by a bitmap, which MAY be a Bitmap16 Object or a DeviceIndependentBitmap (DIB) Object.
    • BS_INDEXED

      public static final HwmfBrushStyle BS_INDEXED
      Not supported
    • BS_DIBPATTERN

      public static final HwmfBrushStyle BS_DIBPATTERN
      A pattern brush specified by a DIB.
    • BS_DIBPATTERNPT

      public static final HwmfBrushStyle BS_DIBPATTERNPT
      A pattern brush specified by a DIB.
    • BS_PATTERN8X8

      public static final HwmfBrushStyle BS_PATTERN8X8
      Not supported
    • BS_DIBPATTERN8X8

      public static final HwmfBrushStyle BS_DIBPATTERN8X8
      Not supported
    • BS_MONOPATTERN

      public static final HwmfBrushStyle BS_MONOPATTERN
      Not supported
  • Method Details

    • values

      public static HwmfBrushStyle[] 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

      public static HwmfBrushStyle valueOf(String name)
      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