All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiApplyStyleGauge, Cloneable
Direct Known Subclasses:
StiTickLabelBase, StiTickMarkBase

public abstract class StiTickBase extends StiGaugeElement
Copyright Stimulsoft
  • Constructor Details

    • StiTickBase

      public StiTickBase()
  • 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
    • getSkipValues

      public StiSkipValuesExpression getSkipValues()
      the values that should not be rendered. Example: 1;2;3
      Returns:
      the skipValues
    • setSkipValues

      public void setSkipValues(StiSkipValuesExpression skipValues)
      the values that should not be rendered. Example: 1;2;3
      Parameters:
      skipValues - the skipValues to set
    • getSkipIndices

      public StiSkipIndicesExpression getSkipIndices()
      the indexes of values that cannot be displayed. Example: 1;2;3
      Returns:
      the skipIndices
    • setSkipIndices

      public void setSkipIndices(StiSkipIndicesExpression skipIndices)
      the indexes of values that cannot be displayed. Example: 1;2;3
      Parameters:
      skipIndices - the skipIndices to set
    • getPlacement

      public StiPlacement getPlacement()
      the placement of the tick relative to the scale.
      Returns:
      the placement
    • setPlacement

      public void setPlacement(StiPlacement placement)
      the placement of the tick relative to the scale.
      Parameters:
      placement - the placement to set
    • getSkipValuesObj

      public double[] getSkipValuesObj()
      Returns:
      the skipValuesObj
    • setSkipValuesObj

      public void setSkipValuesObj(double[] skipValuesObj)
      Parameters:
      skipValuesObj - the skipValuesObj to set
    • getSkipIndicesObj

      public double[] getSkipIndicesObj()
      Returns:
      the skipIndicesObj
    • setSkipIndicesObj

      public void setSkipIndicesObj(double[] skipIndicesObj)
      Parameters:
      skipIndicesObj - the skipIndicesObj to set
    • getOffset

      public double getOffset()
      the offset from the scale based on the StiPlacement.
      Returns:
      the offset
    • setOffset

      public void setOffset(double offset)
      the offset from the scale based on the StiPlacement.
      Parameters:
      offset - the offset to set
    • getMinimumValue

      public Double getMinimumValue()
      the minimum value, with which displaying should begin.
      Returns:
      the minimumValue
    • setMinimumValue

      public void setMinimumValue(Double minimumValue)
      the minimum value, with which displaying should begin.
      Parameters:
      minimumValue - the minimumValue to set
    • getMaximumValue

      public Double getMaximumValue()
      the maximum value to which displaying should be.
      Returns:
      the maximumValue
    • setMaximumValue

      public void setMaximumValue(Double maximumValue)
      the maximum value to which displaying should be.
      Parameters:
      maximumValue - the maximumValue to set
    • isSkipMajorValues

      protected boolean isSkipMajorValues()
    • getPointCollection

      protected TreeMap<Double,Double> getPointCollection()
    • getMinorCollections

      protected TreeMap<Double,Double> getMinorCollections()
    • getMajorCollections

      protected TreeMap<Double,Double> getMajorCollections()
    • checkTickValue

      protected boolean checkTickValue(double[] skipValues, double[] skipIndices, double key, int value)
    • prepareGaugeElement

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

      protected double getOffset(Double value)
    • getPlacement

      protected StiPlacement getPlacement(StiPlacement value)