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 SummaryConstructors
- 
Method SummaryModifier 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.TextRectgetHeight, getMaxX, getMaxY, getWidth, getX, setHeight, setRect, setSize, setWidth, setX, setYMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
TextTokenpublic TextToken()
 
- 
- 
Method Details- 
initInitializes a new token for given line, start and end.
- 
getLineReturns the line.
- 
getStartpublic int getStart()Returns the start character position of this token in line.
- 
getEndpublic int getEnd()Returns the end character position of this token in line.
- 
getStringReturns the token string.
- 
getRunReturns the run associated with this token.
- 
getFontReturns the font for this token.
- 
getColorReturns the color for this token.
- 
setColorSets the color for this token.
- 
isUnderlinedpublic boolean isUnderlined()Returns whether this run is underlined.
- 
setUnderlinedpublic void setUnderlined(boolean aValue) Sets whether this run is underlined.
- 
getScriptingpublic int getScripting()Returns the run's scripting.
- 
getLinkReturns the token's link.
- 
getYpublic double getY()Override to get Y from line.
- 
getBaselineYpublic double getBaselineY()Returns the y position for this run (in the same coords as the layout frame).
- 
toStringStandard toString implementation.
 
-