Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gui4j.core.swing
Class MultiLineBasicTableUI  view MultiLineBasicTableUI download MultiLineBasicTableUI.java

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.TableUI
          extended byjavax.swing.plaf.basic.BasicTableUI
              extended byorg.gui4j.core.swing.MultiLineBasicTableUI

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


Nested Class Summary
 
Nested classes 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
MultiLineBasicTableUI()
           
 
Method Summary
private  java.awt.Dimension createTableSize(long width)
           
 java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
          Return the maximum size of the table.
 java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
          Return the minimum size of the table.
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
          Return the preferred size of the table.
private  int lastVisibleRow(java.awt.Rectangle clip)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paints the component according to the design guidelines of the look and feel.
private  void paintCell(java.awt.Graphics g, java.awt.Rectangle cellRect, int row, int column)
           
private  void paintGrid(java.awt.Graphics g)
           
private  void paintHorizontalLines(java.awt.Graphics g)
           
private  void paintRow(java.awt.Graphics g, int row)
           
private  void paintVerticalLines(java.awt.Graphics g)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicTableUI
createFocusListener, createKeyListener, createMouseInputListener, createUI, 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

MultiLineBasicTableUI

public MultiLineBasicTableUI()
Method Detail

createTableSize

private java.awt.Dimension createTableSize(long width)

getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicTableUI
Return the minimum size of the table. The minimum height is the row height times the number of rows. The minimum width is the sum of the minimum widths of each column.


getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Return the preferred size of the table. The preferred height is the row height (plus inter-cell spacing) times the number of rows. The preferred width is the sum of the preferred widths of each column (plus inter-cell spacing).


getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
Return the maximum size of the table. The maximum height is the row height (plus inter-cell spacing) times the number of rows. The maximum width is the sum of the maximum widths of each column (plus inter-cell spacing).


paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.ComponentUI
Paints the component according to the design guidelines of the look and feel. Most subclasses will want to override this method.


paintGrid

private void paintGrid(java.awt.Graphics g)

paintHorizontalLines

private void paintHorizontalLines(java.awt.Graphics g)

paintVerticalLines

private void paintVerticalLines(java.awt.Graphics g)

paintRow

private void paintRow(java.awt.Graphics g,
                      int row)

paintCell

private void paintCell(java.awt.Graphics g,
                       java.awt.Rectangle cellRect,
                       int row,
                       int column)

lastVisibleRow

private int lastVisibleRow(java.awt.Rectangle clip)