Class StiHatchBrush

java.lang.Object
com.stimulsoft.base.drawing.StiBrush
com.stimulsoft.base.drawing.StiHatchBrush
All Implemented Interfaces:
IStiInvalidator, IStiSerializable, IStiSerializableToString, Cloneable

public class StiHatchBrush extends StiBrush
Class describes the HatchBrush.
  • Constructor Details

    • StiHatchBrush

      public StiHatchBrush()
      Creates a new instance of the StiHatchBrush class.
    • StiHatchBrush

      public StiHatchBrush(StiHatchStyle style, StiColor foreColor, StiColor backColor)
      Creates a new instance of the StiHatchBrush class.
      Parameters:
      style - Hatch style of this StiHatchBrush object.
      foreColor - The color of hatch lines drawn by this StiHatchBrush object.
      backColor - The color of spaces between the hatch lines drawn by this StiHatchBrush object.
    • StiHatchBrush

      public StiHatchBrush(StiHatchStyle style, StiColorEnum foreColor, StiColorEnum backColor)
  • Method Details

    • getBackColor

      public final StiColor getBackColor()
      Gets the color of spaces between the hatch lines drawn by this StiHatchBrush object.
    • setBackColor

      public final void setBackColor(StiColor value)
    • serialize

      public String serialize()
    • deserialize

      public void deserialize(String value)
    • getForeColor

      public final StiColor getForeColor()
      Gets the color of hatch lines drawn by this StiHatchBrush object.
    • setForeColor

      public final void setForeColor(StiColor value)
    • getStyle

      public final StiHatchStyle getStyle()
      Gets the hatch style of this StiHatchBrush object.
    • setStyle

      public final void setStyle(StiHatchStyle value)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getPaint

      public Paint getPaint()
      Returns:
      the image
    • LoadValuesFromJson

      public void LoadValuesFromJson(JSONObject jObject) throws JSONException
      Throws:
      JSONException