| java.lang.Object com.ibm.richtext.textformat.LayoutInfo
LayoutInfo | abstract class LayoutInfo (Code) | | |
Method Summary | |
abstract public Rectangle | caretBounds(MConstText text, int lengthBasis, int lineBound, int charOffset, int x, int y) | abstract public int | getAscent() | abstract public int | getCharLength() | final public int | getCharStart(int lengthBasis) | abstract public int | getDescent() | final public int | getGraphicStart(int graphicBasis) | public int | getHeight() | abstract public int | getLeading() | abstract public int | getLeadingMargin() | abstract public int | getNextOffset(int lengthBasis, int charOffset, short dir) | abstract public int | getTotalAdvance() | abstract public int | getVisibleAdvance() | abstract public boolean | isLeftToRight() | final public void | makeRelativeToBeginning(int lengthBasis, int graphicBasis) | final public void | makeRelativeToEnd(int lengthBasis, int graphicBasis) | abstract public TextOffset | pixelToOffset(int lengthBasis, TextOffset result, int lineBound, int x, int y) Given a point within this line, return the character offset corresponding to that point.
result. | public void | render(int lengthBasis, Graphics2D g, int lineBound, int x, int y) Use layout information to render the line at x, y. | public void | renderCaret(MConstText text, int lengthBasis, Graphics2D g, int lineBound, int x, int y, int charOffset, Color strongCaretColor, Color weakCaretColor) | public void | renderWithHighlight(int lengthBasis, Graphics2D g, int lineBound, int x, int y, TextOffset selStart, TextOffset selStop, Color highlightColor) Draws text with highlighting. | final public void | setCharStart(int beginningRelativeStart) | final public void | setGraphicStart(int beginningRelativeStart) | abstract public int | strongCaretBaselinePosition(int lengthBasis, int lineBound, int charOffset) |
caretBounds | abstract public Rectangle caretBounds(MConstText text, int lengthBasis, int lineBound, int charOffset, int x, int y)(Code) | | |
getAscent | abstract public int getAscent()(Code) | | |
getCharLength | abstract public int getCharLength()(Code) | | |
getCharStart | final public int getCharStart(int lengthBasis)(Code) | | |
getDescent | abstract public int getDescent()(Code) | | |
getGraphicStart | final public int getGraphicStart(int graphicBasis)(Code) | | |
getHeight | public int getHeight()(Code) | | |
getLeading | abstract public int getLeading()(Code) | | |
getLeadingMargin | abstract public int getLeadingMargin()(Code) | | |
getNextOffset | abstract public int getNextOffset(int lengthBasis, int charOffset, short dir)(Code) | | |
getTotalAdvance | abstract public int getTotalAdvance()(Code) | | |
getVisibleAdvance | abstract public int getVisibleAdvance()(Code) | | |
isLeftToRight | abstract public boolean isLeftToRight()(Code) | | |
makeRelativeToBeginning | final public void makeRelativeToBeginning(int lengthBasis, int graphicBasis)(Code) | | |
makeRelativeToEnd | final public void makeRelativeToEnd(int lengthBasis, int graphicBasis)(Code) | | |
pixelToOffset | abstract public TextOffset pixelToOffset(int lengthBasis, TextOffset result, int lineBound, int x, int y)(Code) | | Given a point within this line, return the character offset corresponding to that point.
result. This may be null, in which case a new TextOffset will be allocated.This object is modified in place, and also returned as the function result. Parameters: text - Text to inspect. Parameters: lineX - Position on this line relative to top left corner of this line. Parameters: lineY - Position on this line relative to top left corner of this line. |
render | public void render(int lengthBasis, Graphics2D g, int lineBound, int x, int y)(Code) | | Use layout information to render the line at x, y.
|
renderWithHighlight | public void renderWithHighlight(int lengthBasis, Graphics2D g, int lineBound, int x, int y, TextOffset selStart, TextOffset selStop, Color highlightColor)(Code) | | Draws text with highlighting.
|
setCharStart | final public void setCharStart(int beginningRelativeStart)(Code) | | |
setGraphicStart | final public void setGraphicStart(int beginningRelativeStart)(Code) | | |
strongCaretBaselinePosition | abstract public int strongCaretBaselinePosition(int lengthBasis, int lineBound, int charOffset)(Code) | | |
|
|