public interface Highlighter
Modifier and Type | Interface and Description |
---|---|
static interface |
Highlighter.Highlight |
static interface |
Highlighter.HighlightPainter
突出渲染。
|
Modifier and Type | Method and Description |
---|---|
Object |
addHighlight(int p0, int p1, Highlighter.HighlightPainter p)
在视图中添加一个高亮。
|
void |
changeHighlight(Object tag, int p0, int p1)
更改给定的突出部分,以跨越文档的另一部分。
|
void |
deinstall(JTextComponent c)
打电话的时候,用户界面是从一个jtextcomponent界面删除。
|
Highlighter.Highlight[] |
getHighlights()
取突出当前列表。
|
void |
install(JTextComponent c)
当UI被安装到一个jtextcomponent接口。
|
void |
paint(Graphics g)
呈现亮点。
|
void |
removeAllHighlights()
移除所有的亮点这笔负责。
|
void |
removeHighlight(Object tag)
从视图中移除一个亮点。
|
void install(JTextComponent c)
c
- jtextcomponent编辑
void deinstall(JTextComponent c)
c
- jtextcomponent编辑
void paint(Graphics g)
g
-图形上下文。
Object addHighlight(int p0, int p1, Highlighter.HighlightPainter p) throws BadLocationException
p0
-范围> = 0的开始
p1
-结束的范围> = P0
p
-画家使用的实际突出
BadLocationException
-无效的范围规范
void removeHighlight(Object tag)
tag
-突出去除
void removeAllHighlights()
void changeHighlight(Object tag, int p0, int p1) throws BadLocationException
tag
-突出的变化
p0
-范围> = 0的开始
p1
-结束的范围> = P0
BadLocationException
-无效的范围规范
Highlighter.Highlight[] getHighlights()
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.