javax.swing.plaf.metal
public class MetalInternalFrameTitlePane extends BasicInternalFrameTitlePane
Field Summary | |
---|---|
protected boolean | isPalette A flag indicating whether the title pane uses the palette style. |
protected Icon | paletteCloseIcon
The icon used for the close button - this is fetched from the look and
feel defaults using the key InternalFrame.paletteCloseIcon . |
protected int | paletteTitleHeight
The height of the title pane when isPalette is
true . |
Constructor Summary | |
---|---|
MetalInternalFrameTitlePane(JInternalFrame f)
Creates a new title pane for the specified frame.
|
Method Summary | |
---|---|
protected void | addSubComponents()
Adds the sub components of the title pane. |
protected void | addSystemMenuItems(JMenu systemMenu)
Overridden to do nothing. |
protected void | createButtons()
Calls the super class to create the buttons, then calls
setBorderPainted(false) and
setContentAreaFilled(false) for each button. |
protected LayoutManager | createLayout()
Creates a new instance of MetalTitlePaneLayout (not part of
the public API).
|
protected PropertyChangeListener | createPropertyChangeListener()
Creates and returns a property change handler for the title pane.
|
protected void | installDefaults()
Fetches the colors used in the title pane. |
void | paintComponent(Graphics g)
Paints a representation of the current state of the internal frame.
|
void | paintPalette(Graphics g)
Draws the title pane in the palette style.
|
void | setPalette(boolean b)
Sets the flag that controls whether the title pane is drawn in the
palette style or the regular style.
|
protected void | showSystemMenu()
Overridden to do nothing. |
protected void | uninstallDefaults()
Clears the colors used for the title pane. |
InternalFrame.paletteCloseIcon
.isPalette
is
true
. This value is fetched from the look and feel defaults
using the key InternalFrame.paletteTitleHeight
.Parameters: f the internal frame.
setBorderPainted(false)
and
setContentAreaFilled(false)
for each button.MetalTitlePaneLayout
(not part of
the public API).
Returns: A new instance of MetalTitlePaneLayout
.
Returns: The property change handler.
Parameters: g the graphics device.
Parameters: g the graphics device.
See Also: paintComponent
Parameters: b the new value of the flag.