All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiApplyStyleGauge, Cloneable
Direct Known Subclasses:
StiLinearBar, StiRadialBar

public abstract class StiBarBase extends StiIndicatorBase
Copyright Stimulsoft
  • Constructor Details

    • StiBarBase

      public StiBarBase()
  • Method Details

    • SaveToJsonObject

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

      public void LoadFromJsonObject(JSONObject jObject) throws JSONException
      Specified by:
      LoadFromJsonObject in interface IStiJsonReportObject
      Overrides:
      LoadFromJsonObject in class StiIndicatorBase
      Throws:
      JSONException
    • 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 StiIndicatorBase
    • getEmptyBrush

      public StiBrush getEmptyBrush()
      Gets or sets the brush for the empty part of the bar indicator.
      Returns:
      the emptyBrush
    • setEmptyBrush

      public void setEmptyBrush(StiBrush emptyBrush)
      Gets or sets the brush for the empty part of the bar indicator.
      Parameters:
      emptyBrush - the emptyBrush to set
    • getEmptyBorderBrush

      public StiBrush getEmptyBorderBrush()
      the border brush for the empty part of the bar indicator.
      Returns:
      the emptyBorderBrush
    • setEmptyBorderBrush

      public void setEmptyBorderBrush(StiBrush emptyBorderBrush)
      the border brush for the empty part of the bar indicator.
      Parameters:
      emptyBorderBrush - the emptyBorderBrush to set
    • getEmptyBorderWidth

      public double getEmptyBorderWidth()
      the border width for the empty part of the bar indicator.
      Returns:
      the emptyBorderWidth
    • setEmptyBorderWidth

      public void setEmptyBorderWidth(double emptyBorderWidth)
      the border width for the empty part of the bar indicator.
      Parameters:
      emptyBorderWidth - the emptyBorderWidth to set
    • getOffset

      public double getOffset()
      the offset ratio of an item.
      Returns:
      the offset
    • setOffset

      public void setOffset(double offset)
      the offset ratio of an item.
      Parameters:
      offset - the offset to set
    • getStartWidth

      public double getStartWidth()
      start width of the bar indicator.
      Returns:
      the startWidth
    • setStartWidth

      public void setStartWidth(double startWidth)
      start width of the bar indicator.
      Parameters:
      startWidth - the startWidth to set
    • getEndWidth

      public double getEndWidth()
      end width of the bar indicator.
      Returns:
      the endWidth
    • setEndWidth

      public void setEndWidth(double endWidth)
      end width of the bar indicator.
      Parameters:
      endWidth - the endWidth to set
    • isUseRangeColor

      public boolean isUseRangeColor()
      value which indicates whether we should use Brush property of the StiIndicatorBase class as brush for this indicator.
      Returns:
      the useRangeColor
    • setUseRangeColor

      public void setUseRangeColor(boolean useRangeColor)
      value which indicates whether we should use Brush property of the StiIndicatorBase class as brush for this indicator.
      Parameters:
      useRangeColor - the useRangeColor to set
    • getRangeList

      public StiBarRangeListCollection getRangeList()
      Returns:
      the rangeList
    • setRangeList

      public void setRangeList(StiBarRangeListCollection rangeList)
      Parameters:
      rangeList - the rangeList to set
    • getBarType

      protected abstract StiBarRangeListType getBarType()
    • onRangeColorChanged

      protected abstract void onRangeColorChanged()
    • checkActualBrushForTopGeometry

      protected abstract void checkActualBrushForTopGeometry()
    • onValueChanged

      protected void onValueChanged()
      Overrides:
      onValueChanged in class StiIndicatorBase