Class TextStyle
java.lang.Object
com.inductiveautomation.snap.text.TextStyle
A class to hold style attributes for a text run.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignYNested classes/interfaces inherited from interface com.inductiveautomation.snap.text.TextTypes
TextTypes.TabType -
Field Summary
Fields inherited from interface com.inductiveautomation.snap.text.TextTypes
TEXT_CHAR_SPACING, TEXT_COLOR, TEXT_FONT, TEXT_FORMAT, TEXT_LINK, TEXT_OUTLINE, TEXT_SCRIPTING, TEXT_UNDERLINE -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
TextStyle
public TextStyle()
-
-
Method Details
-
getFont
Returns the font for this run. -
getColor
Returns the color for this run. -
isUnderlined
public boolean isUnderlined()Returns whether this run is underlined. -
getUnderlineStyle
public int getUnderlineStyle()Returns the underline style of this run. -
getScripting
public int getScripting()Returns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none). -
getCharSpacing
public double getCharSpacing()Returns the char spacing. -
getLink
Returns the link. -
equals
Standard equals implementation. -
hashCode
public int hashCode()Standard hashCode implementation. -
clone
Standard clone implementation. -
clone
Clone with font. -
clone
Clone with color. -
clone
Clone with key/value. -
clone
Clone with map. -
toString
Standard toString implementation.
-