org.jvnet.flamingo.ribbon.ui
Class BasicRibbonGalleryUI
java.lang.Object
javax.swing.plaf.ComponentUI
org.jvnet.flamingo.ribbon.ui.RibbonGalleryUI
org.jvnet.flamingo.ribbon.ui.BasicRibbonGalleryUI
public class BasicRibbonGalleryUI
- extends RibbonGalleryUI
Basic UI for ribbon gallery JRibbonGallery
.
- Author:
- Kirill Grouchnikov
Method Summary |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
int |
getPreferredWidth(int buttonCount,
int availableHeight)
Returns the preferred width of the ribbon gallery for the specified
parameters. |
void |
installUI(javax.swing.JComponent c)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
void |
uninstallUI(javax.swing.JComponent c)
|
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicRibbonGalleryUI
public BasicRibbonGalleryUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in class javax.swing.plaf.ComponentUI
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUI
in class javax.swing.plaf.ComponentUI
paint
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
paint
in class javax.swing.plaf.ComponentUI
getPreferredWidth
public int getPreferredWidth(int buttonCount,
int availableHeight)
- Returns the preferred width of the ribbon gallery for the specified
parameters.
- Parameters:
buttonCount
- Button count.availableHeight
- Available height in pixels.
- Returns:
- The preferred width of the ribbon gallery for the specified
parameters.