- java.lang.Object
-
- javax.swing.text.LayeredHighlighter
-
- All Implemented Interfaces:
-
Highlighter
- 已知直接子类:
-
DefaultHighlighter
public abstract class LayeredHighlighter extends Object implements Highlighter
- 另请参见:
-
Highlighter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 描述 static class
LayeredHighlighter.LayerPainter
分层突出显示渲染器。-
Nested classes/interfaces inherited from interface javax.swing.text.Highlighter
Highlighter.Highlight, Highlighter.HighlightPainter
-
-
构造方法摘要
构造方法 Constructor 描述 LayeredHighlighter()
-
方法摘要
所有方法 接口方法 抽象方法 Modifier and Type 方法 描述 abstract void
paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
当叶视图(如LabelView)呈现时,它们应该调用此方法。-
Methods inherited from interface javax.swing.text.Highlighter
addHighlight, changeHighlight, deinstall, getHighlights, install, paint, removeAllHighlights, removeHighlight
-
-
-
-
方法详细信息
-
paintLayeredHighlights
public abstract void paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
当叶视图(如LabelView)呈现时,它们应该调用此方法。 如果在给定区域中有一个高亮,它将被立即绘制。- 参数
-
g
- 用于绘制的图形 -
p0
- 视图的起始偏移 -
p1
- 结束视图偏移 -
viewBounds
- 界限 -
editor
- JTextComponent -
view
- 正在呈现的视图实例
-
-