public class BasicRibbonComponentUI extends RibbonComponentUI
Modifier and Type | Class and Description |
---|---|
protected class |
BasicRibbonComponentUI.ExtComponentLayout |
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JLabel |
captionLabel |
protected ResizableIcon |
disabledIcon |
protected java.beans.PropertyChangeListener |
propertyChangeListener |
protected JRibbonComponent |
ribbonComponent
The associated ribbon component.
|
Constructor and Description |
---|
BasicRibbonComponentUI() |
Modifier and Type | Method and Description |
---|---|
protected ResizableIcon |
createDisabledIcon() |
protected java.awt.LayoutManager |
createLayoutManager() |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
java.awt.Point |
getKeyTipAnchorCenterPoint() |
protected int |
getLayoutGap() |
java.awt.Dimension |
getPreferredSize(RibbonElementPriority priority) |
protected void |
installComponents()
Installs subcomponents on the associated ribbon component.
|
protected void |
installDefaults()
Installs default parameters on the associated ribbon component.
|
protected void |
installListeners()
Installs listeners on the associated ribbon component.
|
void |
installUI(javax.swing.JComponent c) |
protected boolean |
isCaptionVisible(RibbonElementPriority displayPriority) |
protected boolean |
isIconVisible(RibbonElementPriority displayPriority) |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
protected void |
paintIcon(java.awt.Graphics g,
JRibbonComponent ribbonComp,
javax.swing.Icon icon,
int x,
int y) |
protected void |
uninstallComponents()
Uninstalls components from the associated ribbon component.
|
protected void |
uninstallDefaults()
Uninstalls default parameters from the associated ribbon component.
|
protected void |
uninstallListeners()
Uninstalls listeners from the associated ribbon component.
|
void |
uninstallUI(javax.swing.JComponent c) |
protected JRibbonComponent ribbonComponent
protected javax.swing.JLabel captionLabel
protected java.beans.PropertyChangeListener propertyChangeListener
protected ResizableIcon disabledIcon
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 void installListeners()
protected void uninstallDefaults()
protected void uninstallComponents()
protected void uninstallListeners()
public java.awt.Point getKeyTipAnchorCenterPoint()
getKeyTipAnchorCenterPoint
in class RibbonComponentUI
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 paintIcon(java.awt.Graphics g, JRibbonComponent ribbonComp, javax.swing.Icon icon, int x, int y)
protected int getLayoutGap()
protected ResizableIcon createDisabledIcon()
protected boolean isIconVisible(RibbonElementPriority displayPriority)
protected boolean isCaptionVisible(RibbonElementPriority displayPriority)
public java.awt.Dimension getPreferredSize(RibbonElementPriority priority)
getPreferredSize
in class RibbonComponentUI