public class StiGradientBrush extends StiBrush
| Modifier and Type | Field and Description |
|---|---|
double |
angle |
| Constructor and Description |
|---|
StiGradientBrush()
Creates a new instance of the StiGradientBrush class.
|
StiGradientBrush(StiColor startColor,
StiColor endColor,
double angle)
Creates a new instance of the StiGradientBrush 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.
|
java.awt.geom.Point2D |
getEndGradiendPoint() |
java.awt.Paint |
getPaint() |
StiRectangle |
getRectangle() |
StiColor |
getStartColor()
Gets or sets the starting color for the gradient.
|
java.awt.geom.Point2D |
getStartGradiendPoint() |
int |
hashCode() |
void |
LoadValuesFromJson(JSONObject jObject) |
java.lang.String |
serialize()
Сериализация объекта в строку.
|
void |
setAngle(double value) |
void |
setEndColor(StiColor value) |
void |
setEndGradiendPoint(java.awt.geom.Point2D endGradiendPoint) |
void |
setRectangle(StiRectangle rectangle) |
void |
setStartColor(StiColor value) |
void |
setStartGradiendPoint(java.awt.geom.Point2D startGradiendPoint) |
clone, dispose, getBrush, getInvalidator, getReference, invalidate, LoadFromJson, setInvalidator, setReference, ToColorpublic StiGradientBrush()
public StiGradientBrush(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 final StiColor getStartColor()
public java.lang.String serialize()
IStiSerializableToStringpublic void deserialize(java.lang.String value)
IStiSerializableToStringpublic 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 int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.awt.Paint getPaint()
public StiRectangle getRectangle()
public void setRectangle(StiRectangle rectangle)
rectangle - the rectangle to setpublic java.awt.geom.Point2D getStartGradiendPoint()
public void setStartGradiendPoint(java.awt.geom.Point2D startGradiendPoint)
startGradiendPoint - the startGradiendPoint to setpublic java.awt.geom.Point2D getEndGradiendPoint()
public void setEndGradiendPoint(java.awt.geom.Point2D endGradiendPoint)
endGradiendPoint - the endGradiendPoint to setpublic void LoadValuesFromJson(JSONObject jObject) throws JSONException
JSONExceptionCopyright © 2020 Stimulsoft. All Rights Reserved.