be.lassi.ui.sheet
Class SheetTableUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TableUI
javax.swing.plaf.basic.BasicTableUI
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 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 |
Fields inherited from class javax.swing.plaf.basic.BasicTableUI |
focusListener, keyListener, mouseInputListener, rendererPane, table |
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 |
SheetTableUI
public SheetTableUI()
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