Package com.jtattoo.plaf
Class BaseTableHeaderUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TableHeaderUI
javax.swing.plaf.basic.BasicTableHeaderUI
com.jtattoo.plaf.BaseTableHeaderUI
- Direct Known Subclasses:
LunaTableHeaderUI
,SmartTableHeaderUI
BaseTableHeaderUI class.
Author Michael Hagen-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
BasicTableHeaderUI.MouseInputHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected MouseAdapter
protected MouseMotionAdapter
protected int
Fields inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
header, mouseInputListener, rendererPane
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
protected boolean
drawAlwaysActive.protected boolean
drawRolloverBar.protected Component
getHeaderRenderer
(int col) Return the preferred size of the header.void
void
void
paint
(Graphics g, JComponent c) protected void
paintBackground
(Graphics g, Rectangle cellRect, int col) paintBackground.protected void
protected void
rolloverColumnUpdated
(int oldColumn, int newColumn) void
void
protected void
updateRolloverColumn
(int oldColumn, int newColumn) updateRolloverColumn.Methods inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
createMouseInputListener, getBaseline, getMaximumSize, getMinimumSize, getRolloverColumn, installDefaults, installKeyboardActions, uninstallDefaults, uninstallKeyboardActions
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior, update
-
Field Details
-
myMouseAdapter
-
myMouseMotionAdapter
-
rolloverCol
protected int rolloverCol
-
-
Constructor Details
-
BaseTableHeaderUI
public BaseTableHeaderUI()
-
-
Method Details
-
createUI
-
drawAlwaysActive
protected boolean drawAlwaysActive()drawAlwaysActive.
- Returns:
- a boolean.
-
drawRolloverBar
protected boolean drawRolloverBar()drawRolloverBar.
- Returns:
- a boolean.
-
getHeaderRenderer
-
getPreferredSize
Return the preferred size of the header. The preferred height is the maximum of the preferred heights of all of the components provided by the header renderers. The preferred width is the sum of the preferred widths of each column (plus inter-cell spacing).- Overrides:
getPreferredSize
in classBasicTableHeaderUI
-
installListeners
public void installListeners()- Overrides:
installListeners
in classBasicTableHeaderUI
-
installUI
- Overrides:
installUI
in classBasicTableHeaderUI
-
paint
- Overrides:
paint
in classBasicTableHeaderUI
-
paintBackground
paintBackground.
-
paintCell
-
rolloverColumnUpdated
protected void rolloverColumnUpdated(int oldColumn, int newColumn) - Overrides:
rolloverColumnUpdated
in classBasicTableHeaderUI
-
uninstallListeners
public void uninstallListeners()- Overrides:
uninstallListeners
in classBasicTableHeaderUI
-
uninstallUI
- Overrides:
uninstallUI
in classBasicTableHeaderUI
-
updateRolloverColumn
protected void updateRolloverColumn(int oldColumn, int newColumn) updateRolloverColumn.
-