java.lang.Object
javax.swing.text.LayeredHighlighter.LayerPainter
- 所有已实现的接口:
-
Highlighter.HighlightPainter
- 封装类:
-
LayeredHighlighter
public abstract static class LayeredHighlighter.LayerPainter extends Object implements Highlighter.HighlightPainter
分层高亮渲染器。
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Shape
paintLayer
(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) 绘制高亮的一部分。Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface javax.swing.text.Highlighter.HighlightPainter
paint
-
Constructor Details
-
LayerPainter
protected LayerPainter()子类调用的构造函数。
-
-
Method Details
-
paintLayer
public abstract Shape paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) 绘制高亮的一部分。- 参数:
-
g
- 用于绘制的图形 -
p0
- 视图的起始偏移量 -
p1
- 视图的结束偏移量 -
viewBounds
- 视图的边界 -
editor
- JTextComponent -
view
- 正在渲染的View实例 - 返回值:
- 一个形状
-