Class TextStyle
java.lang.Object
com.inductiveautomation.snap.text.TextStyle
A class to hold style attributes for a text run.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignYNested classes/interfaces inherited from interface com.inductiveautomation.snap.text.TextTypesTextTypes.TabType
- 
Field SummaryFields inherited from interface com.inductiveautomation.snap.text.TextTypesTEXT_CHAR_SPACING, TEXT_COLOR, TEXT_FONT, TEXT_FORMAT, TEXT_LINK, TEXT_OUTLINE, TEXT_SCRIPTING, TEXT_UNDERLINE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Standard clone implementation.Clone with color.Clone with font.Clone with key/value.Clone with map.booleanStandard equals implementation.doubleReturns the char spacing.getColor()Returns the color for this run.getFont()Returns the font for this run.getLink()Returns the link.intReturns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).intReturns the underline style of this run.inthashCode()Standard hashCode implementation.booleanReturns whether this run is underlined.toString()Standard toString implementation.
- 
Constructor Details- 
TextStylepublic TextStyle()
 
- 
- 
Method Details- 
getFontReturns the font for this run.
- 
getColorReturns the color for this run.
- 
isUnderlinedpublic boolean isUnderlined()Returns whether this run is underlined.
- 
getUnderlineStylepublic int getUnderlineStyle()Returns the underline style of this run.
- 
getScriptingpublic int getScripting()Returns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).
- 
getCharSpacingpublic double getCharSpacing()Returns the char spacing.
- 
getLinkReturns the link.
- 
equalsStandard equals implementation.
- 
hashCodepublic int hashCode()Standard hashCode implementation.
- 
cloneStandard clone implementation.
- 
cloneClone with font.
- 
cloneClone with color.
- 
cloneClone with key/value.
- 
cloneClone with map.
- 
toStringStandard toString implementation.
 
-