java.lang.Object | ||||
↳ | javax.swing.plaf.ComponentUI | |||
↳ | javax.swing.plaf.TabbedPaneUI | |||
↳ | javax.swing.plaf.basic.BasicTabbedPaneUI | |||
↳ | javax.swing.plaf.metal.MetalTabbedPaneUI |
The Metal subclass of BasicTabbedPaneUI.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MetalTabbedPaneUI.TabbedPaneLayout | This inner class is marked "public" due to a compiler bug. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
javax.swing.SwingConstants
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
minTabWidth | |||||||||||
selectColor | |||||||||||
selectHighlight | |||||||||||
tabAreaBackground |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.swing.plaf.basic.BasicTabbedPaneUI
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Paints the specified component appropriate for the look and feel.
| |||||||||||
Notifies this UI delegate that it's time to paint the specified
component.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by
installUI to create
a layout manager object to manage
the JTabbedPane . | |||||||||||
Returns the amount the baseline is offset by.
| |||||||||||
Overridden to do nothing for the Java L&F.
| |||||||||||
Overridden to do nothing for the Java L&F.
| |||||||||||
this function draws the border around each tab
note that this function does now draw the background of the tab.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.swing.plaf.basic.BasicTabbedPaneUI
| |||||||||||
From class
javax.swing.plaf.TabbedPaneUI
| |||||||||||
From class
javax.swing.plaf.ComponentUI
| |||||||||||
From class
java.lang.Object
|
Paints the specified component appropriate for the look and feel.
This method is invoked from the ComponentUI.update
method when
the specified component is being painted. Subclasses should override
this method and use the specified Graphics
object to
render the content of the component.
g | the Graphics context in which to paint |
---|---|
c | the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
Notifies this UI delegate that it's time to paint the specified
component. This method is invoked by JComponent
when the specified component is being painted.
By default this method will fill the specified component with
its background color (if its opaque
property is
true
) and then immediately call paint
.
In general this method need not be overridden by subclasses;
all look-and-feel rendering code should reside in the paint
method.
g | the Graphics context in which to paint |
---|---|
c | the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
Invoked by installUI
to create
a layout manager object to manage
the JTabbedPane
.
Returns the amount the baseline is offset by. This is typically
the same as getTabLabelShiftY
.
Overridden to do nothing for the Java L&F.
Overridden to do nothing for the Java L&F.
this function draws the border around each tab note that this function does now draw the background of the tab. that is done elsewhere