Class TextToken
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.snap.text.TextRect
com.inductiveautomation.snap.text.TextToken
- All Implemented Interfaces:
RMPropertyChanger,Cloneable
A class to represent a group of characters in a line that share a set of attributes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the y position for this run (in the same coords as the layout frame).getColor()Returns the color for this token.intgetEnd()Returns the end character position of this token in line.getFont()Returns the font for this token.getLine()Returns the line.getLink()Returns the token's link.getRun()Returns the run associated with this token.intReturns the run's scripting.intgetStart()Returns the start character position of this token in line.Returns the token string.doublegetY()Override to get Y from line.Initializes a new token for given line, start and end.booleanReturns whether this run is underlined.voidSets the color for this token.voidsetUnderlined(boolean aValue) Sets whether this run is underlined.toString()Standard toString implementation.Methods inherited from class com.inductiveautomation.snap.text.TextRect
getHeight, getMaxX, getMaxY, getWidth, getX, setHeight, setRect, setSize, setWidth, setX, setYMethods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Constructor Details
-
TextToken
public TextToken()
-
-
Method Details
-
init
Initializes a new token for given line, start and end. -
getLine
Returns the line. -
getStart
public int getStart()Returns the start character position of this token in line. -
getEnd
public int getEnd()Returns the end character position of this token in line. -
getString
Returns the token string. -
getRun
Returns the run associated with this token. -
getFont
Returns the font for this token. -
getColor
Returns the color for this token. -
setColor
Sets the color for this token. -
isUnderlined
public boolean isUnderlined()Returns whether this run is underlined. -
setUnderlined
public void setUnderlined(boolean aValue) Sets whether this run is underlined. -
getScripting
public int getScripting()Returns the run's scripting. -
getLink
Returns the token's link. -
getY
public double getY()Override to get Y from line. -
getBaselineY
public double getBaselineY()Returns the y position for this run (in the same coords as the layout frame). -
toString
Standard toString implementation.
-