Class TextStyle
- java.lang.Object
-
- com.inductiveautomation.snap.text.TextStyle
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
-
Nested 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 Constructor Description TextStyle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextStyle
clone()
Standard clone implementation.TextStyle
clone(SnapColor aColor)
Clone with color.TextStyle
clone(SnapFont aFont)
Clone with font.TextStyle
clone(java.lang.String aKey, java.lang.Object aValue)
Clone with key/value.TextStyle
clone(java.util.Map<?,?> aMap)
Clone with map.boolean
equals(java.lang.Object anObj)
Standard equals implementation.double
getCharSpacing()
Returns the char spacing.SnapColor
getColor()
Returns the color for this run.SnapFont
getFont()
Returns the font for this run.TextLink
getLink()
Returns the link.int
getScripting()
Returns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).int
getUnderlineStyle()
Returns the underline style of this run.int
hashCode()
Standard hashCode implementation.boolean
isUnderlined()
Returns whether this run is underlined.java.lang.String
toString()
Standard toString implementation.
-
-
-
Method Detail
-
getFont
public SnapFont getFont()
Returns the font for this run.
-
getColor
public SnapColor 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
public TextLink getLink()
Returns the link.
-
equals
public boolean equals(java.lang.Object anObj)
Standard equals implementation.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Standard hashCode implementation.- Overrides:
hashCode
in classjava.lang.Object
-
clone
public TextStyle clone()
Standard clone implementation.- Overrides:
clone
in classjava.lang.Object
-
clone
public TextStyle clone(java.lang.String aKey, java.lang.Object aValue)
Clone with key/value.
-
clone
public TextStyle clone(java.util.Map<?,?> aMap)
Clone with map.
-
toString
public java.lang.String toString()
Standard toString implementation.- Overrides:
toString
in classjava.lang.Object
-
-