java.lang.Object
javax.swing.text.LayeredHighlighter
-
所有已实现的接口:
-
Highlighter
-
直接已知子类:
-
DefaultHighlighter
-
public abstract class LayeredHighlighter
-
extends
Object
-
implements
Highlighter
-
另请参见:
-
Highlighter
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayeredHighlighter
public LayeredHighlighter()
paintLayeredHighlights
public abstract void paintLayeredHighlights(Graphics g,
int p0,
int p1,
Shape viewBounds,
JTextComponent editor,
View view)
-
当叶 View(如 LabelView)呈现时,它们应调用此方法。如果高亮显示处在给定的区域,则它将立即被绘制。
-
-
-
参数:
-
g
- 用于绘制的图形
-
p0
- 视图的起始偏移量
-
p1
- 视图的结束偏移量
-
viewBounds
- 视图的边界
-
editor
- JTextComponent
-
view
- 正在呈现的视图实例