|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.text.LayeredHighlighter.LayerPainter
javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
public static class DefaultHighlighter.DefaultHighlightPainter
只高亮顯示用純色填充高亮顯示區域的 painter。
| 建構子摘要 | |
|---|---|
DefaultHighlighter.DefaultHighlightPainter(Color c)
建構新的高亮顯示 painter。 |
|
| 方法摘要 | |
|---|---|
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 - 要繪製的視圖
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。