Package com.independentsoft.office.drawing

# Class PatternFill

java.lang.Object
com.independentsoft.office.drawing.PatternFill

All Implemented Interfaces:
  `IFill`

public class PatternFill extends Object implements IFill
The Class PatternFill.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PatternFill()`
  Instantiates a new pattern fill.
  `PatternFill​(InternalXMLStreamReader reader)`
  Instantiates a new pattern fill.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `PatternFill`
  `clone()`
  `BackgroundColor`
  `getBackgroundColor()`
  Gets the background color.
  `ForegroundColor`
  `getForegroundColor()`
  Gets the foreground color.
  `PatternFillType`
  `getType()`
  Gets the type.
  `void`
  `setBackgroundColor​(BackgroundColor backgroundColor)`
  Sets the background color.
  `void`
  `setForegroundColor​(ForegroundColor foregroundColor)`
  Sets the foreground color.
  `void`
  `setType​(PatternFillType type)`
  Sets the type.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### PatternFill

    public PatternFill()
    Instantiates a new pattern fill.

  - ### PatternFill

    public PatternFill​(InternalXMLStreamReader reader) throws XMLStreamException
    Instantiates a new pattern fill.
    Parameters:
      `reader` - the reader
    Throws:
      `XMLStreamException` - the xML stream exception

- ## Method Details

  - ### clone

    public PatternFill clone()
    Specified by:
      `clone` in interface `IFill`
    Overrides:
      `clone` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### getBackgroundColor

    public BackgroundColor getBackgroundColor()
    Gets the background color.
    Returns:
      the background color

  - ### setBackgroundColor

    public void setBackgroundColor​(BackgroundColor backgroundColor)
    Sets the background color.
    Parameters:
      `backgroundColor` - the new background color

  - ### getForegroundColor

    public ForegroundColor getForegroundColor()
    Gets the foreground color.
    Returns:
      the foreground color

  - ### setForegroundColor

    public void setForegroundColor​(ForegroundColor foregroundColor)
    Sets the foreground color.
    Parameters:
      `foregroundColor` - the new foreground color

  - ### getType

    public PatternFillType getType()
    Gets the type.
    Returns:
      the type

  - ### setType

    public void setType​(PatternFillType type)
    Sets the type.
    Parameters:
      `type` - the new type