Class StiTextOptions

java.lang.Object
com.stimulsoft.base.drawing.StiTextOptions
All Implemented Interfaces:
IStiDefault, IStiJsonReportObject, IStiSerializable, IStiSerializableToString, Cloneable

Class describes all text option.
  • Constructor Details

    • StiTextOptions

      public StiTextOptions()
      Creates a new object of the type StiTextOptions.
    • StiTextOptions

      public StiTextOptions(boolean rightToLeft, boolean lineLimit, boolean wordWrap, float angle, StiHotkeyPrefix hotkeyPrefix, StiStringTrimming trimming)
      Creates a new object of the type StiTextOptions.
      Parameters:
      rightToLeft - Horizontal output direction.
      lineLimit - Show completed lines only.
      wordWrap - Word wrap.
      angle - Angle of a text rotation.
      hotkeyPrefix - Type to draw hot keys.
      trimming - Type to trim the end of a line.
    • StiTextOptions

      public StiTextOptions(boolean rightToLeft, boolean lineLimit, boolean wordWrap, float angle, StiHotkeyPrefix hotkeyPrefix, StiStringTrimming trimming, float firstTabOffset, float distanceBetweenTabs)
      Creates a new object of the type StiTextOptions.
      Parameters:
      rightToLeft - Horizontal output direction.
      lineLimit - Show completed lines only.
      wordWrap - Word wrap.
      angle - Angle of a text rotation.
      hotkeyPrefix - Type to draw hot keys.
      trimming - Type to trim the end of a line.
      firstTabOffset - First tab offset.
      distanceBetweenTabs - Distance between tabs.
  • Method Details

    • clone

      public Object clone()
      Creates a new object that is a copy of the current instance.
      Overrides:
      clone in class Object
      Returns:
      A new object that is a copy of this instance.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getRightToLeft

      public boolean getRightToLeft()
      Gets or sets horizontal output direction.
    • setRightToLeft

      public void setRightToLeft(boolean value)
    • getLineLimit

      public boolean getLineLimit()
      Gets or sets value, that show compleleted lines only.
    • setLineLimit

      public void setLineLimit(boolean value)
    • getWordWrap

      public boolean getWordWrap()
      Gets or sets word wrap.
    • setWordWrap

      public void setWordWrap(boolean value)
    • getAngle

      public float getAngle()
      Gets or sets angle of a text rotation.
    • setAngle

      public void setAngle(float value)
    • getFirstTabOffset

      public float getFirstTabOffset()
      Gets or sets first tab offset.
    • setFirstTabOffset

      public void setFirstTabOffset(float value)
    • getDistanceBetweenTabs

      public float getDistanceBetweenTabs()
      Gets or sets distance between tabs.
    • setDistanceBetweenTabs

      public void setDistanceBetweenTabs(float value)
    • getHotkeyPrefix

      public StiHotkeyPrefix getHotkeyPrefix()
      Gets or sets type of drawing hot keys.
    • setHotkeyPrefix

      public void setHotkeyPrefix(StiHotkeyPrefix value)
    • getTrimming

      public StiStringTrimming getTrimming()
      Gets or sets type to trim the end of a line.
    • setTrimming

      public void setTrimming(StiStringTrimming value)
    • isDefault

      public boolean isDefault()
      Specified by:
      isDefault in interface IStiDefault
    • deserialize

      public void deserialize(String stringValue)
      Specified by:
      deserialize in interface IStiSerializableToString
    • deserializeString

      public StiTextOptions deserializeString(String stringValue)
    • serialize

      public String serialize()
      Specified by:
      serialize in interface IStiSerializableToString
    • SaveToJsonObject

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

      public void LoadFromJsonObject(JSONObject jObject) throws JSONException
      Specified by:
      LoadFromJsonObject in interface IStiJsonReportObject
      Throws:
      JSONException