public class TextList extends TextLayout
TextList class implements the layout of the
RichText object that represents a text list.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int[] |
colWidths
The column widths.
|
echoChar, layoutWidth, lineHeightConstant, lineWrap, locale, preferredLayoutWidthbaseline, baselines, layoutHeight, lineBegins, lineHeight, lineTops, remainWidths, richText, rtStyle| コンストラクタと説明 |
|---|
TextList(RichText richText,
int[] colWidths)
Constructs a text list with the specified rich text and column widths.
|
TextList(RichText richText,
int[] colWidths,
java.util.Locale locale)
Constructs a text list with the specified rich text, line wrapping
style, column widths, and locale.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.Object |
clone()
Returns a clone of this object.
|
void |
draw(java.awt.Graphics g,
java.awt.Point offset,
TextPositionInfo begin,
TextPositionInfo end,
java.awt.Color fgColor,
java.awt.Color bgColor,
java.awt.Color selFgColor,
java.awt.Color selBgColor,
int width,
int[] selected)
Draws the specified range of this layout to the specified
graphics at the specified location, with the specified colors,
width for drawing and selected indices.
|
void |
draw(java.awt.Graphics g,
java.awt.Point offset,
TextPositionInfo begin,
TextPositionInfo end,
java.awt.Color fgColor,
java.awt.Color bgColor,
java.awt.Color selFgColor,
java.awt.Color selBgColor,
int width,
int[] selected,
boolean redrawBg)
Draws the specified range of this layout to the specified
graphics at the specified location, with the specified colors,
width for drawing, selected indices and redraw flag.
|
int[] |
getColumnWidths()
Returns the column widths.
|
protected TextScanner |
getScanner()
Returns the scanner for this layout.
|
protected TextScanner |
getScanner(java.awt.Graphics g)
Returns the scanner for this layout.
|
protected boolean |
isIndexSelected(int index,
int[] selected)
Returns true if the index is included in the selected.
|
void |
setColumnWidths(int[] colWidths)
Sets the column widths to be the specified widths.
|
charWidthAt, doLayout, draw, draw, draw, draw, draw, echoCharIsSet, getEchoChar, getLineBeginPositionOver, getLineBeginPositionOver, getLineBeginPositionUnder, getLineBeginPositionUnder, getLineWrap, getLocale, getPreferredCharIncrementSize, getPreferredLineIncrementSize, getSize, getTextPositionAt, getTextPositionAt, getTextPositionAt, getTextPositionNearby, getTextPositionNearby, getTextPositionNextTo, getTextPositionPrevTo, invalidate, isCharWrap, isLineHeightConstant, isNoWrap, isResizable, isWordWrap, modifyParagraphStyle, modifyTextStyle, paint, redoLayout, replace, setEchoChar, setLineHeightConstant, setLineWrap, setLineWrapInner, setLocale, setParagraphStyle, setSize, setTextStyle, setWidth, updateLayout, updateLayout, validateappend, append, assert, changeRemainWidths, doLayoutForEmpty, duplicateLastLine, getBaselineAt, getIncompleteTextPositionAt, getIncompleteTextPositionNearby, getIncompleteTextPositionNearby, getLineBeginAt, getLineCount, getLineEndAt, getLineIndexNearby, getLineIndexNearby, getLineIndexNearby, getLineSkipAt, getLineTopAt, getRemainWidthAt, getRichText, getRichTextStyle, getText, getTextLineAt, getTextLineInto, getTextPositionAtLineBegin, invalidateLines, isParagraphMark, isParagraphMarkAt, isValid, markLineAt, markLineBegin, printDebugInfo, reComputeRemainWidths, replace, sublines, unmarkLineAt, unmarkLineBegin, validateLinespublic TextList(RichText richText, int[] colWidths)
richText - the rich text to be laid out.colWidths - the column widths.public TextList(RichText richText, int[] colWidths, java.util.Locale locale)
richText - the rich text to be laid out.locale - the locale.colWidths - the column widths.public int[] getColumnWidths()
public void setColumnWidths(int[] colWidths)
public java.lang.Object clone()
clone インタフェース内 Visualizableclone クラス内 TextLayoutpublic void draw(java.awt.Graphics g,
java.awt.Point offset,
TextPositionInfo begin,
TextPositionInfo end,
java.awt.Color fgColor,
java.awt.Color bgColor,
java.awt.Color selFgColor,
java.awt.Color selBgColor,
int width,
int[] selected)
This method is used for drawing the list items.
g - the graphics.offset - the offset position to drawbegin - the beginning index of this layout to draw,
inclusive.end - the ending index of this layout to draw,
exclusive.fgColor - the foreground color.bgColor - the background color.selFgColor - the selection foreground color.selBgColor - the selection background color.width - the width for drawing.selected - the selected indices of the list items.TextListViewpublic void draw(java.awt.Graphics g,
java.awt.Point offset,
TextPositionInfo begin,
TextPositionInfo end,
java.awt.Color fgColor,
java.awt.Color bgColor,
java.awt.Color selFgColor,
java.awt.Color selBgColor,
int width,
int[] selected,
boolean redrawBg)
This method is used for drawing the list items.
g - the graphics.offset - the offset position to drawbegin - the beginning index of this layout to draw,
inclusive.end - the ending index of this layout to draw,
exclusive.fgColor - the foreground color.bgColor - the background color.selFgColor - the selection foreground color.selBgColor - the selection background color.width - the width for drawing.selected - the selected indices of the list items.redrawBg - if true, fills the background even if the list item
is not selected.TextListViewprotected TextScanner getScanner(java.awt.Graphics g)
getScanner クラス内 TextLayoutprotected TextScanner getScanner()
getScanner クラス内 TextLayoutprotected boolean isIndexSelected(int index,
int[] selected)