|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.text.LayeredHighlighter.LayerPainter
javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
public static class DefaultHighlighter.DefaultHighlightPainter
ハイライト領域をソリッドカラーで塗りつぶす簡単なハイライトペインタです。
| コンストラクタの概要 | |
|---|---|
DefaultHighlighter.DefaultHighlightPainter(Color c)
新しいハイライトペインタを構築します。 |
|
| メソッドの概要 | |
|---|---|
Color |
getColor()
ハイライトに使用する色を返します。 |
void |
paint(Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c)
ハイライトをペイントします。 |
Shape |
paintLayer(Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c,
View view)
ハイライトの一部分をペイントします。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public DefaultHighlighter.DefaultHighlightPainter(Color c)
c が null の場合、JTextComponent に選択部分の色を問い合わせます。
c - ハイライトに使用する色| メソッドの詳細 |
|---|
public Color getColor()
public void paint(Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c)
g - グラフィックスコンテキストoffs0 - モデルの開始位置を示すオフセット値 >= 0offs1 - モデルの終了位置を示すオフセット値 >= offs1bounds - ハイライトのバウンディングボックスc - エディタ
public Shape paintLayer(Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c,
View view)
LayeredHighlighter.LayerPainter 内の paintLayerg - グラフィックスコンテキストoffs0 - モデルの開始位置を示すオフセット値 >= 0offs1 - モデルの終了位置を示すオフセット値 >= offs1bounds - ビューのバウンディングボックス。
ペイントする領域とは限らないc - エディタview - ペイント対象の View
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。