public class BasicCommandButtonPanelUI extends CommandButtonPanelUI
JCommandButtonPanel
.Modifier and Type | Class | Description |
---|---|---|
protected class |
BasicCommandButtonPanelUI.ColumnFillLayout |
Column-fill layout for the button panel.
|
protected class |
BasicCommandButtonPanelUI.RowFillLayout |
Row-fill layout for the button panel.
|
Modifier and Type | Field | Description |
---|---|---|
protected JCommandButtonPanel |
buttonPanel |
The associated command button panel.
|
protected javax.swing.event.ChangeListener |
changeListener |
Change listener on
buttonPanel . |
protected static java.awt.Insets |
GROUP_INSETS |
Default insets of button panel groups.
|
protected javax.swing.JLabel[] |
groupLabels |
Labels of the button panel groups.
|
protected java.awt.Rectangle[] |
groupRects |
Bounds of button panel groups.
|
protected java.beans.PropertyChangeListener |
propertyChangeListener |
Property change listener on
buttonPanel . |
Constructor | Description |
---|---|
BasicCommandButtonPanelUI() |
Modifier and Type | Method | Description |
---|---|---|
protected java.awt.LayoutManager |
createLayoutManager() |
Returns the layout manager for the associated button panel.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
|
protected java.awt.Insets |
getGroupInsets() |
Returns the insets of button panel groups.
|
protected int |
getGroupTitleHeight(int groupIndex) |
Returns the height of the group title strip.
|
protected int |
getLayoutGap() |
Returns the layout gap for button panel components.
|
int |
getPreferredHeight(int buttonVisibleRows,
int titleVisibleRows) |
Returns the preferred size of the associated button panel for the
specified parameters.
|
protected void |
installComponents() |
Installs sub-components on the associated button panel.
|
protected void |
installDefaults() |
Installs defaults on the associated button panel.
|
protected void |
installListeners() |
Installs listeners on the associated button panel.
|
void |
installUI(javax.swing.JComponent c) |
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
|
protected void |
paintGroupBackground(java.awt.Graphics g,
int groupIndex,
int x,
int y,
int width,
int height) |
Paints the background of the specified button panel group.
|
protected void |
paintGroupTitleBackground(java.awt.Graphics g,
int groupIndex,
int x,
int y,
int width,
int height) |
Paints the background of the title of specified button panel group.
|
protected void |
recomputeGroupHeaders() |
Recomputes the components for button group headers.
|
protected void |
uninstallComponents() |
Uninstalls sub-components from the associated button panel.
|
protected void |
uninstallDefaults() |
Uninstalls defaults from the associated button panel.
|
protected void |
uninstallListeners() |
Uninstalls listeners from the associated button panel.
|
void |
uninstallUI(javax.swing.JComponent c) |
protected JCommandButtonPanel buttonPanel
protected javax.swing.JLabel[] groupLabels
protected java.awt.Rectangle[] groupRects
protected java.beans.PropertyChangeListener propertyChangeListener
buttonPanel
.protected javax.swing.event.ChangeListener changeListener
buttonPanel
.protected static final java.awt.Insets GROUP_INSETS
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
protected void installDefaults()
protected void installComponents()
protected void installListeners()
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
protected void uninstallDefaults()
protected void uninstallComponents()
protected void uninstallListeners()
protected java.awt.LayoutManager createLayoutManager()
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
protected void paintGroupBackground(java.awt.Graphics g, int groupIndex, int x, int y, int width, int height)
g
- Graphics context.groupIndex
- Group index.x
- X coordinate of the button group bounds.y
- Y coordinate of the button group bounds.width
- Width of the button group bounds.height
- Height of the button group bounds.protected void paintGroupTitleBackground(java.awt.Graphics g, int groupIndex, int x, int y, int width, int height)
g
- Graphics context.groupIndex
- Group index.x
- X coordinate of the button group title bounds.y
- Y coordinate of the button group title bounds.width
- Width of the button group title bounds.height
- Height of the button group title bounds.protected int getGroupTitleHeight(int groupIndex)
groupIndex
- Group index.protected java.awt.Insets getGroupInsets()
protected int getLayoutGap()
protected void recomputeGroupHeaders()
public int getPreferredHeight(int buttonVisibleRows, int titleVisibleRows)
buttonVisibleRows
- Target number of visible button rows.titleVisibleRows
- Target number of visible group title rows.