Package rma.swing.table
Class TableHeaderPrintUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TableHeaderUI
javax.swing.plaf.basic.BasicTableHeaderUI
rma.swing.table.TableHeaderPrintUI
- All Implemented Interfaces:
PrintUI
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
BasicTableHeaderUI.MouseInputHandler
-
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
header, mouseInputListener, rendererPane
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
installUI
(JComponent aJComponent) void
paint
(Graphics g, JComponent c) The paint method was overrided to provide support for printing.void
Methods inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
createMouseInputListener, createUI, getBaseline, getMaximumSize, getMinimumSize, getPreferredSize, getRolloverColumn, installDefaults, installKeyboardActions, installListeners, rolloverColumnUpdated, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior, update
-
Constructor Details
-
TableHeaderPrintUI
public TableHeaderPrintUI()
-
-
Method Details
-
installUI
- Specified by:
installUI
in interfacePrintUI
- Overrides:
installUI
in classBasicTableHeaderUI
-
setProperties
- Specified by:
setProperties
in interfacePrintUI
-
paint
The paint method was overrided to provide support for printing. This print method does not support drawing dragged columns because you can't drag them when printing. It also supports the new way of drawing headers with borders. The bounding rectangles for the header components are setup so the overlapp. This way you don't get a 1 pixel space between each header component.- Specified by:
paint
in interfacePrintUI
- Overrides:
paint
in classBasicTableHeaderUI
-