- java.lang.Object
 -  
      
- javax.swing.text.LayeredHighlighter.LayerPainter
 -  
        
- javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
 
 
 
-  
       
- 实现的所有接口
 -  
         
Highlighter.HighlightPainter 
- Enclosing class:
 - DefaultHighlighter
 
public static class DefaultHighlighter.DefaultHighlightPainter extends LayeredHighlighter.LayerPainter
简单的高光画家,用纯色填充突出显示的区域。 
-  
        
       
-  
             
构造方法摘要
构造方法 构造器 描述 DefaultHighlightPainter(Color c)构建一个新的高亮画家。 
-  
             
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 ColorgetColor()返回突出显示的颜色。voidpaint(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c)画一个亮点。ShapepaintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)绘制亮点的一部分。 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
DefaultHighlightPainter
public DefaultHighlightPainter(Color c)
构建一个新的高亮画家。 如果c为null,则将查询JTextComponent的选择颜色。- 参数
 -  
              
c- 突出显示的颜色 
 
 -  
 
-  
             
方法详细信息
-  
getColor
public Color getColor()
返回突出显示的颜色。- 结果
 - 颜色
 
 
-  
paint
public void paint(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c)
画一个亮点。- 参数
 -  
              
g- 图形上下文 -  
              
offs0- 起始模型偏移> = 0 -  
              
offs1- 结束模型偏移> = offs1 -  
              
bounds- 突出显示的边界框 -  
              
c- 编辑 
 
-  
paintLayer
public Shape paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)
绘制亮点的一部分。- Specified by:
 -  
              
paintLayer在类LayeredHighlighter.LayerPainter - 参数
 -  
              
g- 图形上下文 -  
              
offs0- 起始模型偏移> = 0 -  
              
offs1- 结束模型偏移> = offs1 -  
              
bounds- 视图的边界框,不一定是要绘制的区域。 -  
              
c- 编辑 -  
              
view- 查看绘画 - 结果
 - 区域绘图发生在
 
 
 -  
 
 -