com.stimulsoft.base.drawing
Class StiGlassBrush

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

public class StiGlassBrush
extends StiBrush

Class describes GlassBrush.


Constructor Summary
StiGlassBrush()
          Creates a new instance of the StiGlassBrush class.
StiGlassBrush(StiColor color, boolean drawHatch, float blend)
          Creates a new instance of the StiGlassBrush class.
 
Method Summary
 void deserialize(java.lang.String value)
          Десериализация объекта из строки.
 boolean equals(java.lang.Object obj)
           
 float getBlend()
          Gets or sets blend factor.
 StiBrush getBottomBrush()
           
 StiColor getBottomColor()
           
 StiColor getBottomColorLight()
           
 StiRectangle getBottomRectangle(StiRectangle rect)
           
 StiColor getColor()
          Gets or sets the color of this StiGlassBrush object.
 boolean getDrawHatch()
          Gets or sets value which indicates draw hatch at background or not.
 StiBrush getTopBrush()
           
 StiColor getTopColor()
           
 StiColor getTopColorLight()
           
 StiRectangle getTopRectangle(StiRectangle rect)
           
 int hashCode()
           
 void LoadValuesFromJson(JSONObject jObject)
           
 java.lang.String serialize()
          Сериализация объекта в строку.
 void setBlend(float blend)
           
 void setColor(StiColor value)
           
 void setDrawHatch(boolean 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

StiGlassBrush

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


StiGlassBrush

public StiGlassBrush(StiColor color,
                     boolean drawHatch,
                     float blend)
Creates a new instance of the StiGlassBrush class.

Parameters:
Color - The color of this StiGlassBrush object.
Method Detail

getColor

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


setColor

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


getDrawHatch

public boolean getDrawHatch()
Gets or sets value which indicates draw hatch at background or not.


setDrawHatch

public void setDrawHatch(boolean value)

getBlend

public float getBlend()
Gets or sets blend factor.


setBlend

public void setBlend(float blend)
Parameters:
blend - the blend to set

getTopRectangle

public StiRectangle getTopRectangle(StiRectangle rect)

getBottomRectangle

public StiRectangle getBottomRectangle(StiRectangle rect)

getTopColor

public final StiColor getTopColor()

getTopColorLight

public final StiColor getTopColorLight()

getBottomColor

public final StiColor getBottomColor()

getBottomColorLight

public final StiColor getBottomColorLight()

getTopBrush

public final StiBrush getTopBrush()

getBottomBrush

public final StiBrush getBottomBrush()

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

LoadValuesFromJson

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