Class StiGradientBrush

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

public class StiGradientBrush extends StiBrush
Class describes a gradient brush.
  • Field Details

    • angle

      public double angle
  • Constructor Details

    • StiGradientBrush

      public StiGradientBrush()
      Creates a new instance of the StiGradientBrush class.
    • StiGradientBrush

      public StiGradientBrush(StiRectangle rectangle, StiColor startColor, StiColor endColor, double angle)
      Parameters:
      rectangle -
      startColor -
      endColor -
      angle -
    • StiGradientBrush

      public StiGradientBrush(StiColor startColor, StiColor endColor, double angle)
      Creates a new instance of the StiGradientBrush 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.
  • Method Details

    • getStartColor

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

      public String serialize()
    • deserialize

      public void deserialize(String value)
    • 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)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getPaint

      public Paint getPaint()
      Returns:
      the paint
    • getRectangle

      public StiRectangle getRectangle()
      Returns:
      the rectangle
    • setRectangle

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

      public Point2D getStartGradiendPoint()
      Returns:
      the startGradiendPoint
    • setStartGradiendPoint

      public void setStartGradiendPoint(Point2D startGradiendPoint)
      Parameters:
      startGradiendPoint - the startGradiendPoint to set
    • getEndGradiendPoint

      public Point2D getEndGradiendPoint()
      Returns:
      the endGradiendPoint
    • setEndGradiendPoint

      public void setEndGradiendPoint(Point2D endGradiendPoint)
      Parameters:
      endGradiendPoint - the endGradiendPoint to set
    • LoadValuesFromJson

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