All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiApplyStyleGauge, Cloneable
Direct Known Subclasses:
StiLinearTickMarkBase, StiRadialTickMarkBase

public class StiTickMarkBase extends StiTickBase
Copyright Stimulsoft
  • Constructor Details

    • StiTickMarkBase

      public StiTickMarkBase()
  • Method Details

    • SaveToJsonObject

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

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

      public double getRelativeHeight()
      the height factor relative to the height of the basic component.
      Returns:
      the relativeHeight
    • setRelativeHeight

      public void setRelativeHeight(double relativeHeight)
      the height factor relative to the height of the basic component.
      Parameters:
      relativeHeight - the relativeHeight to set
    • getRelativeWidth

      public double getRelativeWidth()
      the width ratio relative to the height of the basic component.
      Returns:
      the relativeWidth
    • setRelativeWidth

      public void setRelativeWidth(double relativeWidth)
      the width ratio relative to the height of the basic component.
      Parameters:
      relativeWidth - the relativeWidth to set
    • getSkin

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

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

      public StiGaugeElementSkin getCustomSkin()
      Returns:
      the customSkin
    • setCustomSkin

      public void setCustomSkin(StiGaugeElementSkin customSkin)
      Parameters:
      customSkin - the customSkin to set
    • 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
    • getActualSkin

      protected StiGaugeElementSkin getActualSkin()
    • getRelativeWidth

      protected double getRelativeWidth(Double value)
    • getRelativeHeight

      protected double getRelativeHeight(Double value)