sims.ihm
Class Editeur.LinePainter

java.lang.Object
  extended by javax.swing.text.LayeredHighlighter.LayerPainter
      extended by javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
          extended by sims.ihm.Editeur.LinePainter
All Implemented Interfaces:
javax.swing.text.Highlighter.HighlightPainter
Enclosing class:
Editeur

public class Editeur.LinePainter
extends javax.swing.text.DefaultHighlighter.DefaultHighlightPainter


Constructor Summary
Editeur.LinePainter(javax.swing.text.JTextComponent component, java.awt.Color color)
           
 
Method Summary
 java.awt.Shape paintLayer(java.awt.Graphics g, int offs0, int offs1, java.awt.Shape bounds, javax.swing.text.JTextComponent c, javax.swing.text.View view)
          This method is overridden to get desired behaviour.
 
Methods inherited from class javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
getColor, paint
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Editeur.LinePainter

public Editeur.LinePainter(javax.swing.text.JTextComponent component,
                           java.awt.Color color)
Method Detail

paintLayer

public java.awt.Shape paintLayer(java.awt.Graphics g,
                                 int offs0,
                                 int offs1,
                                 java.awt.Shape bounds,
                                 javax.swing.text.JTextComponent c,
                                 javax.swing.text.View view)
This method is overridden to get desired behaviour. Paints a portion of a highlight.

Overrides:
paintLayer in class javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
Parameters:
g - the graphics context
offs0 - the starting model offset >= 0
offs1 - the ending model offset >= offs1
bounds - the bounding box of the view, which is not necessarily the region to paint.
c - the editor
view - View painting for
Returns:
region drawing occured in