gui
Class AlgorithmPanel.BackgroundHighlightPainter

java.lang.Object
  extended by javax.swing.text.LayeredHighlighter.LayerPainter
      extended by gui.AlgorithmPanel.BackgroundHighlightPainter
All Implemented Interfaces:
javax.swing.text.Highlighter.HighlightPainter
Enclosing class:
AlgorithmPanel

public static class AlgorithmPanel.BackgroundHighlightPainter
extends javax.swing.text.LayeredHighlighter.LayerPainter

Trida, ktera zajistuje podbarveni zvurazeneho radku.


Constructor Summary
AlgorithmPanel.BackgroundHighlightPainter(java.awt.Color c)
          Vytvori zvyraznovac s definovanou barvou.
 
Method Summary
 void paint(java.awt.Graphics g, int offs0, int offs1, java.awt.Shape bounds, javax.swing.text.JTextComponent c)
          Neni nikdy volano.
 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)
          Vykresli podbarvujici obdelnik.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlgorithmPanel.BackgroundHighlightPainter

public AlgorithmPanel.BackgroundHighlightPainter(java.awt.Color c)
Vytvori zvyraznovac s definovanou barvou.

Parameters:
c - Barva pozadi pro zvyrazneny radek.
Method Detail

paint

public void paint(java.awt.Graphics g,
                  int offs0,
                  int offs1,
                  java.awt.Shape bounds,
                  javax.swing.text.JTextComponent c)
Neni nikdy volano.

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

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)
Vykresli podbarvujici obdelnik.

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