com.stimulsoft.base.drawing
Class StiSolidBrush

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

public class StiSolidBrush
extends StiBrush

Class describes SolidBrush.


Field Summary
static StiSolidBrush TRANSPARENT
           
 
Constructor Summary
StiSolidBrush()
          Creates a new instance of the StiSolidBrush class.
StiSolidBrush(StiColor color)
          Creates a new instance of the StiSolidBrush class.
StiSolidBrush(StiColorEnum color)
           
 
Method Summary
 void deserialize(java.lang.String value)
          Десериализация объекта из строки.
 boolean equals(java.lang.Object obj)
           
 StiColor getColor()
          Gets or sets the color of this StiSolidBrush object.
 int hashCode()
           
 void LoadValuesFromJson(JSONObject jObject)
           
 java.lang.String serialize()
          Сериализация объекта в строку.
 void setColor(StiColor 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
 

Field Detail

TRANSPARENT

public static final StiSolidBrush TRANSPARENT
Constructor Detail

StiSolidBrush

public StiSolidBrush()
Creates a new instance of the StiSolidBrush class.


StiSolidBrush

public StiSolidBrush(StiColor color)
Creates a new instance of the StiSolidBrush class.

Parameters:
color - The color of this StiSolidBrush object.

StiSolidBrush

public StiSolidBrush(StiColorEnum color)
Method Detail

getColor

public final StiColor getColor()
Gets or sets the color of this StiSolidBrush object.


setColor

public final void setColor(StiColor 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

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
Десериализация объекта из строки. Все свойства объекта устанавливаются за счет распарсивания строки.


LoadValuesFromJson

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