public abstract class LayeredHighlighter extends Object implements Highlighter
Highlighter
Modifier and Type | Class and Description |
---|---|
static class |
LayeredHighlighter.LayerPainter
分层突出显示渲染器。
|
Highlighter.Highlight, Highlighter.HighlightPainter
Constructor and Description |
---|
LayeredHighlighter() |
Modifier and Type | Method and Description |
---|---|
abstract void |
paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
当叶视图(如LabelView)呈现时,它们应该调用此方法。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHighlight, changeHighlight, deinstall, getHighlights, install, paint, removeAllHighlights, removeHighlight
public abstract void paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
g
- 用于绘制的图形
p0
- 视图的起始偏移
p1
- 结束偏移视图
viewBounds
- 界限
editor
- JTextComponent
view
- 正在呈现的视图实例