net.sf.jeppers.grid
Class BasicGridUI
java.lang.Object
|
+--javax.swing.plaf.ComponentUI
|
+--net.sf.jeppers.grid.GridUI
|
+--net.sf.jeppers.grid.BasicGridUI
- Direct Known Subclasses:
- BasicGridHeaderUI
- public class BasicGridUI
- extends GridUI
- Author:
- Cameron Zemek
Method Summary |
protected MouseInputListener |
createMouseInputListener()
Creates the mouse listener for the JTable. |
static ComponentUI |
createUI(JComponent c)
|
Dimension |
getMaximumSize(JComponent c)
|
Dimension |
getMinimumSize(JComponent c)
|
Dimension |
getPreferredSize(JComponent c)
|
protected void |
installDefaults()
|
protected void |
installKeyboardActions()
|
protected void |
installListeners()
Attaches listeners to the JGrid |
void |
installUI(JComponent c)
|
void |
paint(Graphics g,
JComponent c)
|
protected void |
paintCell(Graphics g,
Rectangle cellBounds,
int row,
int column)
Paint cell at (row, column) |
protected void |
paintCells(Graphics g,
int rowMin,
int rowMax,
int colMin,
int colMax)
|
protected void |
paintEditor(Graphics g)
|
protected void |
paintGrid(Graphics g,
int rowMin,
int rowMax,
int colMin,
int colMax)
|
protected void |
paintSpans(Graphics g,
int rowMin,
int rowMax,
int colMin,
int colMax)
special paint handler for merged cell regions |
void |
uninstallUI(JComponent c)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
grid
protected JGrid grid
rendererPane
protected CellRendererPane rendererPane
focusListener
protected FocusListener focusListener
mouseInputListener
protected MouseInputListener mouseInputListener
BasicGridUI
public BasicGridUI()
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
paint
in class ComponentUI
paintEditor
protected void paintEditor(Graphics g)
paintSpans
protected void paintSpans(Graphics g,
int rowMin,
int rowMax,
int colMin,
int colMax)
- special paint handler for merged cell regions
paintGrid
protected void paintGrid(Graphics g,
int rowMin,
int rowMax,
int colMin,
int colMax)
paintCells
protected void paintCells(Graphics g,
int rowMin,
int rowMax,
int colMin,
int colMax)
paintCell
protected void paintCell(Graphics g,
Rectangle cellBounds,
int row,
int column)
- Paint cell at (row, column)
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in class ComponentUI
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
getMinimumSize
in class ComponentUI
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
getMaximumSize
in class ComponentUI
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in class ComponentUI
installDefaults
protected void installDefaults()
installListeners
protected void installListeners()
- Attaches listeners to the JGrid
installKeyboardActions
protected void installKeyboardActions()
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUI
in class ComponentUI
createUI
public static ComponentUI createUI(JComponent c)
createMouseInputListener
protected MouseInputListener createMouseInputListener()
- Creates the mouse listener for the JTable.