public class TextToken extends TextRect
Constructor and Description |
---|
TextToken() |
Modifier and Type | Method and Description |
---|---|
double |
getBaselineY()
Returns the y position for this run (in the same coords as the layout frame).
|
SnapColor |
getColor()
Returns the color for this token.
|
int |
getEnd()
Returns the end character position of this token in line.
|
SnapFont |
getFont()
Returns the font for this token.
|
TextLine |
getLine()
Returns the line.
|
TextLink |
getLink()
Returns the token's link.
|
TextRun |
getRun()
Returns the run associated with this token.
|
int |
getScripting()
Returns the run's scripting.
|
int |
getStart()
Returns the start character position of this token in line.
|
java.lang.String |
getString()
Returns the token string.
|
double |
getY()
Override to get Y from line.
|
TextToken |
init(TextLine aLine,
TextRun aRun,
int aStart,
int anEnd)
Initializes a new token for given line, start and end.
|
boolean |
isUnderlined()
Returns whether this run is underlined.
|
void |
setColor(SnapColor aColor)
Sets the color for this token.
|
void |
setUnderlined(boolean aValue)
Sets whether this run is underlined.
|
java.lang.String |
toString()
Standard toString implementation.
|
getHeight, getMaxX, getMaxY, getWidth, getX, setHeight, setRect, setSize, setWidth, setX, setY
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
addListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public TextToken init(TextLine aLine, TextRun aRun, int aStart, int anEnd)
public TextLine getLine()
public int getStart()
public int getEnd()
public java.lang.String getString()
public TextRun getRun()
public SnapFont getFont()
public SnapColor getColor()
public void setColor(SnapColor aColor)
public boolean isUnderlined()
public void setUnderlined(boolean aValue)
public int getScripting()
public TextLink getLink()
public double getBaselineY()