Overview  Package   Class  Tree  Index 

be.lassi.ui.sheet
Class SheetTableUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TableUI
          extended by javax.swing.plaf.basic.BasicTableUI
              extended by be.lassi.ui.sheet.SheetTableUI

public class SheetTableUI
extends javax.swing.plaf.basic.BasicTableUI

Specialized TableUI for Sheet tables for drawing individual gridlines with a different color.

This class tries to override specific parts of the BasicTableUI.paintGrid method. This could not be done directly because this method is private. Therefore, we override the paint method (which is public and calls paintGrid) instead.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableUI
javax.swing.plaf.basic.BasicTableUI.FocusHandler, javax.swing.plaf.basic.BasicTableUI.KeyHandler, javax.swing.plaf.basic.BasicTableUI.MouseInputHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicTableUI
focusListener, keyListener, mouseInputListener, rendererPane, table
 
Constructor Summary
SheetTableUI()
           
 
Method Summary
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Our version of the paint method.
 
Methods inherited from class javax.swing.plaf.basic.BasicTableUI
createFocusListener, createKeyListener, createMouseInputListener, createUI, getMaximumSize, getMinimumSize, getPreferredSize, installDefaults, installKeyboardActions, installListeners, installUI, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SheetTableUI

public SheetTableUI()
Method Detail

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Our version of the paint method.

Overrides:
paint in class javax.swing.plaf.basic.BasicTableUI

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2