All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicTableHeaderUI

java.lang.Object
   |
   +----com.sun.java.swing.plaf.ComponentUI
           |
           +----com.sun.java.swing.plaf.TableHeaderUI
                   |
                   +----com.sun.java.swing.basic.BasicTableHeaderUI

public class BasicTableHeaderUI
extends TableHeaderUI
implements MouseListener, MouseMotionListener, FocusListener, Serializable
BasicTableHeaderUI implementation


Variable Index

 o fireAction
 o hasPress
 o header
The JTableHeader this UI is hooked up to
 o hitColumn
 o hitColumnIndex
 o isReordering
 o isResizing
 o lastMouseX
 o okToReorder
 o originalWidth
 o realDraggedDistance
 o rendererPane
 o widthDelta

Constructor Index

 o BasicTableHeaderUI()

Method Index

 o createUI(JComponent)
 o focusGained(FocusEvent)
 o focusLost(FocusEvent)
 o getHeaderRect(int)
Returns the rectangle containing the header tile at columnIndex.
 o getHeaderRect(Object)
Returns the rectangle containing the header tile at column with an identifier that is equals() to columnIdentifier.
 o getMaximumSize(JComponent)
 o getMinimumSize(JComponent)
 o getPreferredSize(JComponent)
 o installUI(JComponent)
 o mouseClicked(MouseEvent)
 o mouseDragged(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mouseMoved(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics, JComponent)
 o uninstallUI(JComponent)

Variables

 o header
 protected JTableHeader header
The JTableHeader this UI is hooked up to

 o rendererPane
 protected transient CellRendererPane rendererPane
 o hitColumnIndex
 protected transient int hitColumnIndex
 o hitColumn
 protected transient TableColumn hitColumn
 o isResizing
 protected transient boolean isResizing
 o originalWidth
 protected transient int originalWidth
 o widthDelta
 protected transient int widthDelta
 o lastMouseX
 protected transient int lastMouseX
 o realDraggedDistance
 protected transient int realDraggedDistance
 o isReordering
 protected transient boolean isReordering
 o okToReorder
 protected transient boolean okToReorder
 o fireAction
 protected transient boolean fireAction
 o hasPress
 protected transient boolean hasPress

Constructors

 o BasicTableHeaderUI
 public BasicTableHeaderUI()

Methods

 o createUI
 public static ComponentUI createUI(JComponent h)
 o installUI
 public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI
 o uninstallUI
 public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI
 o focusGained
 public void focusGained(FocusEvent e)
 o focusLost
 public void focusLost(FocusEvent e)
 o mouseMoved
 public void mouseMoved(MouseEvent e)
 o mouseDragged
 public void mouseDragged(MouseEvent e)
 o mouseClicked
 public void mouseClicked(MouseEvent e)
 o mousePressed
 public void mousePressed(MouseEvent e)
 o mouseReleased
 public void mouseReleased(MouseEvent e)
 o mouseEntered
 public void mouseEntered(MouseEvent e)
 o mouseExited
 public void mouseExited(MouseEvent e)
 o paint
 public void paint(Graphics g,
                   JComponent c)
Overrides:
paint in class ComponentUI
 o getMinimumSize
 public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class ComponentUI
 o getPreferredSize
 public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class ComponentUI
 o getMaximumSize
 public Dimension getMaximumSize(JComponent c)
Overrides:
getMaximumSize in class ComponentUI
 o getHeaderRect
 public Rectangle getHeaderRect(int columnIndex)
Returns the rectangle containing the header tile at columnIndex.

Returns:
the rectangle containing the header tile at columnIndex
Throws: IllegalArgumentException
If columnIndex is out of range
 o getHeaderRect
 public Rectangle getHeaderRect(Object columnIdentifier)
Returns the rectangle containing the header tile at column with an identifier that is equals() to columnIdentifier. If no matching column is found, this method returns an empty rect.

Returns:
the rectangle containing the header tile at column

All Packages  Class Hierarchy  This Package  Previous  Next  Index