JavaTM 2 Platform
Standard Ed. 6

javax.swing.text
类 LayeredHighlighter

java.lang.Object
  继承者 javax.swing.text.LayeredHighlighter
所有已实现的接口:
Highlighter
直接已知子类:
DefaultHighlighter

public abstract class LayeredHighlighter
extends Object
implements Highlighter

另请参见:
Highlighter

嵌套类摘要
static class LayeredHighlighter.LayerPainter
          分层的高亮显示渲染器。
 
从接口 javax.swing.text.Highlighter 继承的嵌套类/接口
Highlighter.Highlight, Highlighter.HighlightPainter
 
构造方法摘要
LayeredHighlighter()
           
 
方法摘要
abstract  void paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
          当叶 View(如 LabelView)呈现时,它们应调用此方法。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 javax.swing.text.Highlighter 继承的方法
addHighlight, changeHighlight, deinstall, getHighlights, install, paint, removeAllHighlights, removeHighlight
 

构造方法详细信息

LayeredHighlighter

public LayeredHighlighter()
方法详细信息

paintLayeredHighlights

public abstract void paintLayeredHighlights(Graphics g,
                                            int p0,
                                            int p1,
                                            Shape viewBounds,
                                            JTextComponent editor,
                                            View view)
当叶 View(如 LabelView)呈现时,它们应调用此方法。如果高亮显示处在给定的区域,则它将立即被绘制。

参数:
g - 用于绘制的图形
p0 - 视图的起始偏移量
p1 - 视图的结束偏移量
viewBounds - 视图的边界
editor - JTextComponent
view - 正在呈现的视图实例

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only