com.stimulsoft.base.drawing
Class StiHatchBrush

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

public class StiHatchBrush
extends StiBrush

Class describes the HatchBrush.


Constructor Summary
StiHatchBrush()
          Creates a new instance of the StiHatchBrush class.
StiHatchBrush(StiHatchStyle style, StiColorEnum foreColor, StiColorEnum backColor)
           
StiHatchBrush(StiHatchStyle style, StiColor foreColor, StiColor backColor)
          Creates a new instance of the StiHatchBrush class.
 
Method Summary
 void deserialize(java.lang.String value)
          Десериализация объекта из строки.
 boolean equals(java.lang.Object obj)
           
 StiColor getBackColor()
          Gets the color of spaces between the hatch lines drawn by this StiHatchBrush object.
 StiColor getForeColor()
          Gets the color of hatch lines drawn by this StiHatchBrush object.
 java.awt.Paint getPaint()
           
 StiHatchStyle getStyle()
          Gets the hatch style of this StiHatchBrush object.
 int hashCode()
           
 void LoadValuesFromJson(JSONObject jObject)
           
 java.lang.String serialize()
          Сериализация объекта в строку.
 void setBackColor(StiColor value)
           
 void setForeColor(StiColor value)
           
 void setStyle(StiHatchStyle value)
           
 
Methods inherited from class com.stimulsoft.base.drawing.StiBrush
clone, dispose, getBrush, getInvalidator, getReference, invalidate, LoadFromJson, setInvalidator, setReference, ToColor
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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 java.lang.String serialize()
Description copied from interface: IStiSerializableToString
Сериализация объекта в строку.

Returns:
строковое представление объекта

deserialize

public void deserialize(java.lang.String value)
Description copied from interface: IStiSerializableToString
Десериализация объекта из строки. Все свойства объекта устанавливаются за счет распарсивания строки.


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 java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getPaint

public java.awt.Paint getPaint()
Returns:
the image

LoadValuesFromJson

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