com.stimulsoft.base.drawing
Class StiGlareBrush

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

public class StiGlareBrush
extends StiBrush

Class describes a glare gradient brush.


Field Summary
 double angle
           
 
Constructor Summary
StiGlareBrush()
          Creates a new instance of the StiGlareBrush class.
StiGlareBrush(StiColor startColor, StiColor endColor, double angle)
          Creates a new instance of the StiGlareBrush class.
StiGlareBrush(StiColor startColor, StiColor endColor, double angle, float focus, float scale)
          Creates a new instance of the StiGlareBrush class.
 
Method Summary
 void deserialize(java.lang.String value)
          Десериализация объекта из строки.
 boolean equals(java.lang.Object obj)
           
 double getAngle()
          Gets or sets the angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.
 StiColor getEndColor()
          Gets or sets the ending color for the gradient.
 float getFocus()
          Gets or sets value from 0 through 1 that specifies the center of the gradient (the point where the gradient is composed of only the ending color).
 java.awt.Paint getPaint()
           
 StiRectangle getRectangle()
           
 float getScale()
          Gets or sets value from 0 through 1 that specifies how fast the colors falloff from the focus.
 StiColor getStartColor()
          Gets or sets the starting color for the gradient.
 int hashCode()
           
 void LoadValuesFromJson(JSONObject jObject)
           
 java.lang.String serialize()
          Сериализация объекта в строку.
 void setAngle(double value)
           
 void setEndColor(StiColor value)
           
 void setFocus(float value)
           
 void setRectangle(StiRectangle rectangle)
           
 void setScale(float value)
           
 void setStartColor(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

angle

public double angle
Constructor Detail

StiGlareBrush

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


StiGlareBrush

public StiGlareBrush(StiColor startColor,
                     StiColor endColor,
                     double angle)
Creates a new instance of the StiGlareBrush class.

Parameters:
startColor - the starting color for the gradient.
endColor - The ending color for the gradient.
angle - The angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.

StiGlareBrush

public StiGlareBrush(StiColor startColor,
                     StiColor endColor,
                     double angle,
                     float focus,
                     float scale)
Creates a new instance of the StiGlareBrush class.

Parameters:
startColor - the starting color for the gradient.
endColor - The ending color for the gradient.
angle - The angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.
focus - The value from 0 through 1 that specifies the center of the gradient (the point where the gradient is composed of only the ending color).
scale - The value from 0 through 1 that specifies how fast the colors falloff from the focus.
Method Detail

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


getStartColor

public final StiColor getStartColor()
Gets or sets the starting color for the gradient.


setStartColor

public final void setStartColor(StiColor value)

getEndColor

public final StiColor getEndColor()
Gets or sets the ending color for the gradient.


setEndColor

public final void setEndColor(StiColor value)

getAngle

public final double getAngle()
Gets or sets the angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.


setAngle

public final void setAngle(double value)

getFocus

public final float getFocus()
Gets or sets value from 0 through 1 that specifies the center of the gradient (the point where the gradient is composed of only the ending color).


setFocus

public final void setFocus(float value)

getPaint

public java.awt.Paint getPaint()

getScale

public final float getScale()
Gets or sets value from 0 through 1 that specifies how fast the colors falloff from the focus.


setScale

public final void setScale(float 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

getRectangle

public StiRectangle getRectangle()
Returns:
the rectangle

setRectangle

public void setRectangle(StiRectangle rectangle)
Parameters:
rectangle - the rectangle to set

LoadValuesFromJson

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