|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object
|
+--javax.swing.text.LayeredHighlighter.LayerPainter
|
+--javax.swing.text.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 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.