public class StiGlareBrush extends StiBrush
| Modifier and Type | Field and Description |
|---|---|
double |
angle |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
clone, dispose, getBrush, getInvalidator, getReference, invalidate, LoadFromJson, setInvalidator, setReference, ToColorpublic StiGlareBrush()
public StiGlareBrush(StiColor startColor, StiColor endColor, double angle)
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.public StiGlareBrush(StiColor startColor, StiColor endColor, double angle, float focus, float scale)
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.public java.lang.String serialize()
IStiSerializableToStringpublic void deserialize(java.lang.String value)
IStiSerializableToStringpublic final StiColor getStartColor()
public final void setStartColor(StiColor value)
public final StiColor getEndColor()
public final void setEndColor(StiColor value)
public final double getAngle()
public final void setAngle(double value)
public final float getFocus()
public final void setFocus(float value)
public java.awt.Paint getPaint()
public final float getScale()
public final void setScale(float value)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic StiRectangle getRectangle()
public void setRectangle(StiRectangle rectangle)
rectangle - the rectangle to setpublic void LoadValuesFromJson(JSONObject jObject) throws JSONException
JSONExceptionCopyright © 2020 Stimulsoft. All Rights Reserved.