public class BasicRibbonBandUI extends RibbonBandUI
JRibbonBand
.Modifier and Type | Class | Description |
---|---|---|
protected static class |
BasicRibbonBandUI.CollapsedButtonPopupPanel |
Popup panel that shows the contents of the ribbon band when it is in a
collapsed state.
|
protected static class |
BasicRibbonBandUI.RoundBorder |
Round border for the ribbon bands.
|
Modifier and Type | Field | Description |
---|---|---|
protected JCommandButton |
collapsedButton |
The button for collapsed state.
|
protected AbstractCommandButton |
expandButton |
The band expand button.
|
protected java.awt.event.ActionListener |
expandButtonActionListener |
Action listener on the expand button.
|
protected java.awt.event.MouseListener |
mouseListener |
Mouse listener on the associated ribbon band.
|
protected java.beans.PropertyChangeListener |
propertyChangeListener |
Listens to property changes on the associated ribbon band.
|
protected AbstractRibbonBand<AbstractBandControlPanel> |
ribbonBand |
The associated ribbon band.
|
protected float |
rolloverAmount |
|
protected org.pushingpixels.trident.Timeline |
rolloverTimeline |
Constructor | Description |
---|---|
BasicRibbonBandUI() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
configureExpandButton() |
|
protected JCommandButton |
createExpandButton() |
Creates the expand button for the associated ribbon band.
|
protected java.awt.LayoutManager |
createLayoutManager() |
Invoked by
installUI to create a layout manager object to
manage the JCommandButtonStrip . |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
|
int |
getBandTitleHeight() |
Returns the height of the ribbon band title area.
|
AbstractCommandButton |
getCollapsedButton() |
Deprecated.
|
AbstractCommandButton |
getExpandButton() |
Deprecated.
|
int |
getPreferredCollapsedWidth() |
|
float |
getRolloverAmount() |
|
protected void |
installComponents() |
Installs subcomponents on the associated ribbon band.
|
protected void |
installDefaults() |
Installs default parameters on the associated ribbon band.
|
protected void |
installListeners() |
Installs listeners on the associated ribbon band.
|
void |
installUI(javax.swing.JComponent c) |
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
|
protected void |
paintBandBackground(java.awt.Graphics graphics,
java.awt.Rectangle toFill) |
Paints band background.
|
protected void |
paintBandTitle(java.awt.Graphics g,
java.awt.Rectangle titleRectangle,
java.lang.String title) |
Paints band title pane.
|
protected void |
paintBandTitleBackground(java.awt.Graphics g,
java.awt.Rectangle titleRectangle,
java.lang.String title) |
Paints band title pane.
|
void |
setRolloverAmount(float rolloverAmount) |
|
protected void |
syncExpandButtonIcon() |
|
void |
trackMouseCrossing(boolean isMouseIn) |
|
protected void |
unconfigureExpandButton() |
|
protected void |
uninstallComponents() |
Uninstalls components from the associated ribbon band.
|
protected void |
uninstallDefaults() |
Uninstalls default parameters from the associated ribbon band.
|
protected void |
uninstallListeners() |
Uninstalls listeners from the associated ribbon band.
|
void |
uninstallUI(javax.swing.JComponent c) |
|
void |
update(java.awt.Graphics g,
javax.swing.JComponent c) |
protected AbstractRibbonBand<AbstractBandControlPanel> ribbonBand
protected JCommandButton collapsedButton
protected AbstractCommandButton expandButton
AbstractRibbonBand.getExpandActionListener()
of the associated ribbon
band is not null
.protected float rolloverAmount
protected org.pushingpixels.trident.Timeline rolloverTimeline
protected java.awt.event.MouseListener mouseListener
protected java.beans.PropertyChangeListener propertyChangeListener
protected java.awt.event.ActionListener expandButtonActionListener
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
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
protected void installDefaults()
protected void installComponents()
protected JCommandButton createExpandButton()
protected void syncExpandButtonIcon()
protected void installListeners()
protected void configureExpandButton()
protected void uninstallDefaults()
protected void uninstallComponents()
protected void uninstallListeners()
protected void unconfigureExpandButton()
protected java.awt.LayoutManager createLayoutManager()
installUI
to create a layout manager object to
manage the JCommandButtonStrip
.public void update(java.awt.Graphics g, javax.swing.JComponent c)
update
in class javax.swing.plaf.ComponentUI
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
protected void paintBandTitle(java.awt.Graphics g, java.awt.Rectangle titleRectangle, java.lang.String title)
g
- Graphics context.titleRectangle
- Rectangle for the title pane.title
- Title string.protected void paintBandTitleBackground(java.awt.Graphics g, java.awt.Rectangle titleRectangle, java.lang.String title)
g
- Graphics context.titleRectangle
- Rectangle for the title pane.title
- Title string.public void setRolloverAmount(float rolloverAmount)
protected void paintBandBackground(java.awt.Graphics graphics, java.awt.Rectangle toFill)
graphics
- Graphics context.toFill
- Rectangle for the background.public float getRolloverAmount()
getRolloverAmount
in class RibbonBandUI
public int getBandTitleHeight()
getBandTitleHeight
in class RibbonBandUI
public int getPreferredCollapsedWidth()
getPreferredCollapsedWidth
in class RibbonBandUI
public void trackMouseCrossing(boolean isMouseIn)
trackMouseCrossing
in class RibbonBandUI
@Deprecated public AbstractCommandButton getExpandButton()
@Deprecated public AbstractCommandButton getCollapsedButton()