Package com.stimulsoft.base.drawing
Class StiTextOptions
java.lang.Object
com.stimulsoft.base.drawing.StiTextOptions
- All Implemented Interfaces:
IStiDefault,IStiJsonReportObject,IStiSerializable,IStiSerializableToString,Cloneable
public class StiTextOptions
extends Object
implements IStiSerializable, IStiSerializableToString, Cloneable, IStiDefault, IStiJsonReportObject
Class describes all text option.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionclone()Creates a new object that is a copy of the current instance.voiddeserialize(String stringValue) deserializeString(String stringValue) booleanfloatgetAngle()Gets or sets angle of a text rotation.floatGets or sets distance between tabs.floatGets or sets first tab offset.Gets or sets type of drawing hot keys.booleanGets or sets value, that show compleleted lines only.booleanGets or sets horizontal output direction.Gets or sets type to trim the end of a line.booleanGets or sets word wrap.inthashCode()booleanvoidLoadFromJsonObject(JSONObject jObject) voidsetAngle(float value) voidsetDistanceBetweenTabs(float value) voidsetFirstTabOffset(float value) voidsetHotkeyPrefix(StiHotkeyPrefix value) voidsetLineLimit(boolean value) voidsetRightToLeft(boolean value) voidsetTrimming(StiStringTrimming value) voidsetWordWrap(boolean value)
-
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
Creates a new object that is a copy of the current instance. -
hashCode
public int hashCode() -
equals
-
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
Gets or sets type of drawing hot keys. -
setHotkeyPrefix
-
getTrimming
Gets or sets type to trim the end of a line. -
setTrimming
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceIStiDefault
-
deserialize
- Specified by:
deserializein interfaceIStiSerializableToString
-
deserializeString
-
serialize
- Specified by:
serializein interfaceIStiSerializableToString
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-