All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiApplyStyleGauge, Cloneable
Direct Known Subclasses:
StiBarBase, StiMarkerBase, StiNeedle, StiStateIndicator

public abstract class StiIndicatorBase extends StiGaugeElement
Copyright Stimulsoft
  • Constructor Details

    • StiIndicatorBase

      public StiIndicatorBase()
  • Method Details

    • SaveToJsonObject

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

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

      public double getValueObj()
      Returns:
      the valueObj
    • setValueObj

      public void setValueObj(double valueObj)
      Parameters:
      valueObj - the valueObj to set
    • getPlacement

      public StiPlacement getPlacement()
      Returns:
      the placement
    • setPlacement

      public void setPlacement(StiPlacement placement)
      Parameters:
      placement - the placement to set
    • getBrush

      public StiBrush getBrush()
      Returns:
      the brush
    • setBrush

      public void setBrush(StiBrush brush)
      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
    • OnGetValue

      protected void OnGetValue(StiGetValueEventArgs e)
      Raises the GetValue event.
      Parameters:
      e -
    • InvokeGetValue

      public void InvokeGetValue(StiGaugeElement sender, StiGetValueEventArgs e)
      Raises the GetValue event.
      Parameters:
      sender -
      e -
    • getGetValueEvent

      public StiGetValueEvent getGetValueEvent()
      Occurs when getting the property Value.
      Returns:
      the getValueEvent
    • setGetValueEvent

      public void setGetValueEvent(StiGetValueEvent getValueEvent)
      Occurs when getting the property Value.
      Parameters:
      getValueEvent - the getValueEvent to set
    • getValue

      public StiValueExpression getValue()
      the current position of an indicator.
      Returns:
      the value
    • setValue

      public void setValue(StiValueExpression value)
      the current position of an indicator.
      Parameters:
      value - the value to set
    • prepareGaugeElement

      public void prepareGaugeElement()
      Overrides:
      prepareGaugeElement in class StiGaugeElement
    • interactiveClick

      protected abstract void interactiveClick(StiRectangle rect, StiPoint p)
    • onValueChanged

      protected void onValueChanged()
    • getActualValue

      public Double getActualValue()