Package com.stimulsoft.base.drawing
Class StiGlareBrush
java.lang.Object
com.stimulsoft.base.drawing.StiBrush
com.stimulsoft.base.drawing.StiGlareBrush
- All Implemented Interfaces:
IStiInvalidator,IStiSerializable,IStiSerializableToString,Cloneable
Class describes a glare gradient brush.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionvoiddeserialize(String value) booleanfinal doublegetAngle()Gets or sets the angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.final StiColorGets or sets the ending color for the gradient.final floatgetFocus()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).getPaint()final floatgetScale()Gets or sets value from 0 through 1 that specifies how fast the colors falloff from the focus.final StiColorGets or sets the starting color for the gradient.inthashCode()voidLoadValuesFromJson(JSONObject jObject) final voidsetAngle(double value) final voidsetEndColor(StiColor value) final voidsetFocus(float value) voidsetRectangle(StiRectangle rectangle) final voidsetScale(float value) final voidsetStartColor(StiColor value) Methods inherited from class com.stimulsoft.base.drawing.StiBrush
clone, dispose, getBrush, getInvalidator, getReference, invalidate, light, LoadFromJson, setInvalidator, setReference, ToColor
-
Field Details
-
angle
public double angle
-
-
Constructor Details
-
StiGlareBrush
public StiGlareBrush()Creates a new instance of the StiGlareBrush class. -
StiGlareBrush
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 Details
-
serialize
-
deserialize
-
getStartColor
Gets or sets the starting color for the gradient. -
setStartColor
-
getEndColor
Gets or sets the ending color for the gradient. -
setEndColor
-
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
-
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() -
equals
-
getRectangle
- Returns:
- the rectangle
-
setRectangle
- Parameters:
rectangle- the rectangle to set
-
LoadValuesFromJson
- Throws:
JSONException
-