Class StiRadialScale

All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiApplyStyleGauge, Cloneable

public class StiRadialScale extends StiScaleBase
Copyright Stimulsoft
  • Constructor Details

    • StiRadialScale

      public StiRadialScale()
  • Method Details

    • SaveToJsonObject

      public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
      Specified by:
      SaveToJsonObject in interface IStiJsonReportObject
      Overrides:
      SaveToJsonObject in class StiScaleBase
      Throws:
      JSONException
    • LoadFromJsonObject

      public void LoadFromJsonObject(JSONObject jObject) throws JSONException
      Specified by:
      LoadFromJsonObject in interface IStiJsonReportObject
      Overrides:
      LoadFromJsonObject in class StiScaleBase
      Throws:
      JSONException
    • getComponentId

      public StiComponentId getComponentId()
      Specified by:
      getComponentId in class StiScaleBase
    • clone

      public Object clone()
      Description copied from class: StiElementBase
      Creates a new object that is a copy of the current instance.
      Overrides:
      clone in class StiScaleBase
    • applyStyle

      public void applyStyle(IStiGaugeStyle style)
      Description copied from interface: IStiApplyStyleGauge
      Apply style to component which release this interface.
      Specified by:
      applyStyle in interface IStiApplyStyleGauge
      Overrides:
      applyStyle in class StiElementBase
      Parameters:
      style -
    • setRadius

      public void setRadius(double radius)
      outer radius of the radial scale. Should be from 0 to 1.
      Parameters:
      radius - the radius to set
    • getRadius

      public double getRadius()
      outer radius of the radial scale. Should be from 0 to 1.
      Returns:
      the radius
    • getRadiusMode

      public StiRadiusMode getRadiusMode()
      the mode of calculating the radius RadialScale.
      Returns:
      the radiusMode
    • setRadiusMode

      public void setRadiusMode(StiRadiusMode radiusMode)
      the mode of calculating the radius RadialScale.
      Parameters:
      radiusMode - the radiusMode to set
    • getCenter

      public StiPoint getCenter()
      center of the radial scale.
      Returns:
      the center
    • setCenter

      public void setCenter(StiPoint center)
      center of the radial scale.
      Parameters:
      center - the center to set
    • getStartAngle

      public double getStartAngle()
      start angle of the radial scale.
      Returns:
      the startAngle
    • setStartAngle

      public void setStartAngle(double startAngle)
      start angle of the radial scale.
      Parameters:
      startAngle - the startAngle to set
    • getSweepAngle

      public double getSweepAngle()
      sweep angle of the radial scale.
      Returns:
      the sweepAngle
    • setSweepAngle

      public void setSweepAngle(double sweepAngle)
      sweep angle of the radial scale.
      Parameters:
      sweepAngle - the sweepAngle to set
    • getSkin

      public StiRadialScaleSkin getSkin()
      the skin of the component rendering.
      Returns:
      the skin
    • setSkin

      public void setSkin(StiRadialScaleSkin skin)
      the skin of the component rendering.
      Parameters:
      skin - the skin to set
    • getScaleType

      public StiGaugeElemenType getScaleType()
      Specified by:
      getScaleType in class StiScaleBase
    • GetRadius

      public double GetRadius()
      outer radius of the radial scale. Should be from 0 to 1.
      Returns:
      the radius
    • GetStartWidth

      public double GetStartWidth()
    • GetEndWidth

      public double GetEndWidth()
    • GetSweepAngle

      public double GetSweepAngle()
    • getCurrentAngle

      public double getCurrentAngle(double angle)
    • createNew

      public StiScaleBase createNew()
      Overrides:
      createNew in class StiScaleBase