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,- java.lang.Cloneable
 
 public class TextToken extends TextRect A class to represent a group of characters in a line that share a set of attributes.
- 
- 
Constructor SummaryConstructors Constructor Description TextToken()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetBaselineY()Returns the y position for this run (in the same coords as the layout frame).SnapColorgetColor()Returns the color for this token.intgetEnd()Returns the end character position of this token in line.SnapFontgetFont()Returns the font for this token.TextLinegetLine()Returns the line.TextLinkgetLink()Returns the token's link.TextRungetRun()Returns the run associated with this token.intgetScripting()Returns the run's scripting.intgetStart()Returns the start character position of this token in line.java.lang.StringgetString()Returns the token string.doublegetY()Override to get Y from line.TextTokeninit(TextLine aLine, TextRun aRun, int aStart, int anEnd)Initializes a new token for given line, start and end.booleanisUnderlined()Returns whether this run is underlined.voidsetColor(SnapColor aColor)Sets the color for this token.voidsetUnderlined(boolean aValue)Sets whether this run is underlined.java.lang.StringtoString()Standard toString implementation.- 
Methods inherited from class com.inductiveautomation.snap.text.TextRectgetHeight, getMaxX, getMaxY, getWidth, getX, setHeight, setRect, setSize, setWidth, setX, setY
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
initpublic TextToken init(TextLine aLine, TextRun aRun, int aStart, int anEnd) Initializes a new token for given line, start and end.
 - 
getLinepublic TextLine getLine() Returns 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.
 - 
getStringpublic java.lang.String getString() Returns the token string.
 - 
getRunpublic TextRun getRun() Returns the run associated with this token.
 - 
getFontpublic SnapFont getFont() Returns the font for this token.
 - 
getColorpublic SnapColor getColor() Returns the color for this token.
 - 
setColorpublic void setColor(SnapColor aColor) Sets 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.
 - 
getLinkpublic TextLink getLink() Returns the token's link.
 - 
getBaselineYpublic double getBaselineY() Returns the y position for this run (in the same coords as the layout frame).
 
- 
 
-