public class RMTextLine extends RMTextRun
Constructor and Description |
---|
RMTextLine() |
Modifier and Type | Method and Description |
---|---|
int |
addChars(RMXStringRun aRun,
int aStart,
int anEnd)
Adds chars to text line.
|
char |
charAt(int anIndex)
Returns the char value at the specified index.
|
int |
getCharIndex(double anX)
Returns the character index for the given x/y point.
|
double |
getHitMaxX()
Returns the max x position possible for layout's path.
|
double |
getLineAdvance()
Returns the vertical distance for any line below this line.
|
double |
getMaxAscent()
Returns the max ascent of the chars in this line.
|
RMTextLine |
getNext()
Returns the next run.
|
java.awt.geom.Point2D |
getPointForChar(int anIndex)
Returns the text origin for the given character index.
|
RMTextRun |
getRun(int anIndex)
Returns the text run at the given index.
|
int |
getRunCount()
Returns the number of runs in this line.
|
RMTextRun |
getRunForPointX(double anX)
Returns the line index for the given y value.
|
RMTextRun |
getRunLast()
Returns the last run.
|
double |
getRunsHeight()
Returns the total height of line runs.
|
double |
getUnderlineStroke()
Returns the max stroke width of any underlined chars in this line.
|
double |
getUnderlineY()
Returns the Y position of any underlined chars in this line.
|
double |
getXForChar(int anIndex)
Returns the x coord for the given character index.
|
double |
getYBaseline()
Returns the y position for this line (in same coords as the layout frame).
|
void |
performTabShift()
If line has any non-left tabs this method adjusts the width of the tab runs (and the positions of successive
runs to correct for shift of these tabs).
|
void |
setLocked(boolean aFlag)
Sets whether text layout can add more characters.
|
java.lang.CharSequence |
subSequence(int aStart,
int anEnd)
Returns a new char sequence that is a subsequence of this sequence.
|
java.lang.String |
toString()
Standard toString implementation.
|
getCharSpacing, getColor, getColorChanged, getEnd, getEndsWithNewline, getEndsWithWhiteSpace, getFont, getFontChanged, getIndex, getLastChar, getLayout, getLine, getOutline, getParagraph, getRun, getRunAt, getScripting, getStart, getTab, getTabType, getUnderlineStyle, getXString, glyphVector, isHyphenated, isLocked, isTab, isUnderlined, length, setHyphenated
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union
public int addChars(RMXStringRun aRun, int aStart, int anEnd)
public char charAt(int anIndex)
public java.lang.CharSequence subSequence(int aStart, int anEnd)
subSequence
in interface java.lang.CharSequence
subSequence
in class RMTextRun
public double getYBaseline()
getYBaseline
in class RMTextRun
public double getHitMaxX()
public RMTextLine getNext()
public int getRunCount()
getRunCount
in class RMTextRun
public RMTextRun getRun(int anIndex)
public RMTextRun getRunLast()
getRunLast
in class RMTextRun
public double getRunsHeight()
public double getMaxAscent()
public double getLineAdvance()
public double getXForChar(int anIndex)
getXForChar
in class RMTextRun
public java.awt.geom.Point2D getPointForChar(int anIndex)
getPointForChar
in class RMTextRun
public RMTextRun getRunForPointX(double anX)
public int getCharIndex(double anX)
getCharIndex
in class RMTextRun
public double getUnderlineStroke()
getUnderlineStroke
in class RMTextRun
public double getUnderlineY()
getUnderlineY
in class RMTextRun
public void setLocked(boolean aFlag)
public void performTabShift()