java.lang.Object
com.stimulsoft.report.infographics.gauge.primitives.range.StiRangeBase
All Implemented Interfaces:
IStiSerializable, IStiSerializableRef
Direct Known Subclasses:
StiLinearRange, StiRadialRange

public abstract class StiRangeBase extends Object implements IStiSerializableRef
Copyright Stimulsoft
  • Constructor Details

    • StiRangeBase

      public StiRangeBase()
  • Method Details

    • setReference

      public void setReference(int reference)
      Specified by:
      setReference in interface IStiSerializableRef
    • getReference

      public int getReference()
      Specified by:
      getReference in interface IStiSerializableRef
    • cleanReference

      public void cleanReference()
    • SaveToJsonObject

      public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
      Throws:
      JSONException
    • LoadFromJsonObject

      public void LoadFromJsonObject(JSONObject jObject) throws JSONException
      Throws:
      JSONException
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • getBrush

      public StiBrush getBrush()
      a brush to fill a component.
      Returns:
      the brush
    • setBrush

      public void setBrush(StiBrush brush)
      a brush to fill a component.
      Parameters:
      brush - the brush to set
    • getBorderBrush

      public StiBrush getBorderBrush()
      the border of the component.
      Returns:
      the borderBrush
    • setBorderBrush

      public void setBorderBrush(StiBrush borderBrush)
      the border of the component.
      Parameters:
      borderBrush - the borderBrush to set
    • getBorderWidth

      public double getBorderWidth()
      the border thickness of the component.
      Returns:
      the borderWidth
    • setBorderWidth

      public void setBorderWidth(double borderWidth)
      the border thickness of the component.
      Parameters:
      borderWidth - the borderWidth to set
    • getStartValue

      public double getStartValue()
      start value of the range.
      Returns:
      the startValue
    • setStartValue

      public void setStartValue(double startValue)
      start value of the range.
      Parameters:
      startValue - the startValue to set
    • getEndValue

      public double getEndValue()
      end value of the range.
      Returns:
      the endValue
    • setEndValue

      public void setEndValue(double endValue)
      end value of the range.
      Parameters:
      endValue - the endValue to set
    • getStartWidth

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

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

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

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

      public StiPlacement getPlacement()
      the placement of the component.
      Returns:
      the placement
    • setPlacement

      public void setPlacement(StiPlacement placement)
      the placement of the component.
      Parameters:
      placement - the placement 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
    • getRangeList

      public StiScaleRangeList getRangeList()
    • setRangeList

      public void setRangeList(StiScaleRangeList rangeList)
      Parameters:
      rangeList - the rangeList to set
    • getLocalizeName

      public abstract String getLocalizeName()
    • drawRange

      protected abstract void drawRange(StiGaugeContextPainter context, StiScaleBase scale)
    • createNew

      public StiRangeBase createNew()