org.pushingpixels.flamingo.internal.ui.ribbon
public class BasicRibbonComponentUI extends RibbonComponentUI
Modifier and Type | Class and Description |
---|---|
protected class |
BasicRibbonComponentUI.ExtComponentLayout |
Modifier and Type | Field and Description |
---|---|
protected JLabel |
captionLabel |
protected ResizableIcon |
disabledIcon |
protected PropertyChangeListener |
propertyChangeListener |
protected JRibbonComponent |
ribbonComponent
The associated ribbon component.
|
Constructor and Description |
---|
BasicRibbonComponentUI() |
Modifier and Type | Method and Description |
---|---|
protected ResizableIcon |
createDisabledIcon() |
protected LayoutManager |
createLayoutManager() |
static ComponentUI |
createUI(JComponent c) |
Point |
getKeyTipAnchorCenterPoint() |
protected int |
getLayoutGap() |
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(JComponent c) |
protected boolean |
isCaptionVisible(RibbonElementPriority displayPriority) |
protected boolean |
isIconVisible(RibbonElementPriority displayPriority) |
void |
paint(Graphics g,
JComponent c) |
protected void |
paintIcon(Graphics g,
JRibbonComponent ribbonComp,
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(JComponent c) |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update
protected JRibbonComponent ribbonComponent
protected JLabel captionLabel
protected PropertyChangeListener propertyChangeListener
protected ResizableIcon disabledIcon
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
installUI
in class ComponentUI
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
protected void installDefaults()
protected void installComponents()
protected void installListeners()
protected void uninstallDefaults()
protected void uninstallComponents()
protected void uninstallListeners()
public Point getKeyTipAnchorCenterPoint()
getKeyTipAnchorCenterPoint
in class RibbonComponentUI
protected LayoutManager createLayoutManager()
public void paint(Graphics g, JComponent c)
paint
in class ComponentUI
protected void paintIcon(Graphics g, JRibbonComponent ribbonComp, Icon icon, int x, int y)
protected int getLayoutGap()
protected ResizableIcon createDisabledIcon()
protected boolean isIconVisible(RibbonElementPriority displayPriority)
protected boolean isCaptionVisible(RibbonElementPriority displayPriority)
public Dimension getPreferredSize(RibbonElementPriority priority)
getPreferredSize
in class RibbonComponentUI