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, waitaddHighlight, changeHighlight, deinstall, getHighlights, install, paint, removeAllHighlights, removeHighlightpublic abstract void paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
g - 用于绘制的图形
p0 - 视图的起始偏移
p1 - 结束偏移视图
viewBounds - 界限
editor - JTextComponent
view - 正在呈现的视图实例
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.