gui.utils
Class BoxHighlightPainter

java.lang.Object
  extended by javax.swing.text.LayeredHighlighter.LayerPainter
      extended by gui.utils.BoxHighlightPainter
All Implemented Interfaces:
javax.swing.text.Highlighter.HighlightPainter

public class BoxHighlightPainter
extends javax.swing.text.LayeredHighlighter.LayerPainter

Podbarvovac pozadi, pouzivany ke zvyrazneni.


Constructor Summary
BoxHighlightPainter(java.awt.Color c, java.awt.Shape bounds)
          Vytvori podbarvovac pozadi s danou barvaou a tvarem.
 
Method Summary
 void paint(java.awt.Graphics g, int offs0, int offs1, java.awt.Shape bounds, javax.swing.text.JTextComponent c)
          This method is never called.
 java.awt.Shape paintLayer(java.awt.Graphics g, int offs0, int offs1, java.awt.Shape bounds2, javax.swing.text.JTextComponent c, javax.swing.text.View view)
          Vykresli podbarvovaci tvar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxHighlightPainter

public BoxHighlightPainter(java.awt.Color c,
                           java.awt.Shape bounds)
Vytvori podbarvovac pozadi s danou barvaou a tvarem.

Parameters:
bounds - ohranicujici tvar
c - barva zvyrazneneho mista
Method Detail

paint

public void paint(java.awt.Graphics g,
                  int offs0,
                  int offs1,
                  java.awt.Shape bounds,
                  javax.swing.text.JTextComponent c)
This method is never called.

Parameters:
g - .
offs0 - .
offs1 - .
bounds - .
c - .

paintLayer

public java.awt.Shape paintLayer(java.awt.Graphics g,
                                 int offs0,
                                 int offs1,
                                 java.awt.Shape bounds2,
                                 javax.swing.text.JTextComponent c,
                                 javax.swing.text.View view)
Vykresli podbarvovaci tvar.

Specified by:
paintLayer in class javax.swing.text.LayeredHighlighter.LayerPainter
Parameters:
g - graficky objekt
offs0 - .
offs1 - .
bounds2 - .
c - .
view - .
Returns:
.