com.stimulsoft.base.drawing
Class StiTextOptions

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

public class StiTextOptions
extends java.lang.Object
implements IStiSerializable, IStiSerializableToString, java.lang.Cloneable, IStiDefault, IStiJsonReportObject

Class describes all text option.


Constructor Summary
StiTextOptions()
          Creates a new object of the type StiTextOptions.
StiTextOptions(boolean rightToLeft, boolean lineLimit, boolean wordWrap, float angle, StiHotkeyPrefix hotkeyPrefix, StiStringTrimming trimming)
          Creates a new object of the type StiTextOptions.
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.
 
Method Summary
 java.lang.Object clone()
          Creates a new object that is a copy of the current instance.
 void deserialize(java.lang.String stringValue)
          Десериализация объекта из строки.
 StiTextOptions deserializeString(java.lang.String stringValue)
           
 boolean equals(java.lang.Object obj)
           
 float getAngle()
          Gets or sets angle of a text rotation.
 float getDistanceBetweenTabs()
          Gets or sets distance between tabs.
 float getFirstTabOffset()
          Gets or sets first tab offset.
 StiHotkeyPrefix getHotkeyPrefix()
          Gets or sets type of drawing hot keys.
 boolean getLineLimit()
          Gets or sets value, that show compleleted lines only.
 boolean getRightToLeft()
          Gets or sets horizontal output direction.
 StiStringTrimming getTrimming()
          Gets or sets type to trim the end of a line.
 boolean getWordWrap()
          Gets or sets word wrap.
 int hashCode()
           
 boolean isDefault()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 java.lang.String serialize()
          Сериализация объекта в строку.
 void setAngle(float value)
           
 void setDistanceBetweenTabs(float value)
           
 void setFirstTabOffset(float value)
           
 void setHotkeyPrefix(StiHotkeyPrefix value)
           
 void setLineLimit(boolean value)
           
 void setRightToLeft(boolean value)
           
 void setTrimming(StiStringTrimming value)
           
 void setWordWrap(boolean value)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

clone

public java.lang.Object clone()
Creates a new object that is a copy of the current instance.

Overrides:
clone in class java.lang.Object
Returns:
A new object that is a copy of this instance.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.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(java.lang.String stringValue)
Description copied from interface: IStiSerializableToString
Десериализация объекта из строки. Все свойства объекта устанавливаются за счет распарсивания строки.

Specified by:
deserialize in interface IStiSerializableToString

deserializeString

public StiTextOptions deserializeString(java.lang.String stringValue)

serialize

public java.lang.String serialize()
Description copied from interface: IStiSerializableToString
Сериализация объекта в строку.

Specified by:
serialize in interface IStiSerializableToString
Returns:
строковое представление объекта

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