org.jvnet.flamingo.ribbon.ui
Class BasicRibbonBandUI
java.lang.Object
javax.swing.plaf.ComponentUI
org.jvnet.flamingo.ribbon.ui.RibbonBandUI
org.jvnet.flamingo.ribbon.ui.BasicRibbonBandUI
public class BasicRibbonBandUI
- extends RibbonBandUI
Basic UI for ribbon band JRibbonBand
.
- Author:
- Kirill Grouchnikov, Matt Nathan
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicRibbonBandUI
public BasicRibbonBandUI()
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
update
public void update(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
update
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
isUnderMouse
public boolean isUnderMouse()
- Returns indication whether the mouse is over the associated ribbon band.
- Specified by:
isUnderMouse
in class RibbonBandUI
- Returns:
true
if the mouse is over the associated ribbon
band, false
otherwise.
getBandTitleHeight
public int getBandTitleHeight()
- Returns the height of the ribbon band title area.
- Specified by:
getBandTitleHeight
in class RibbonBandUI
- Returns:
- The height of the ribbon band title area.
getPreferredCollapsedWidth
public int getPreferredCollapsedWidth()
- Specified by:
getPreferredCollapsedWidth
in class RibbonBandUI
trackMouseCrossing
public void trackMouseCrossing(boolean isMouseIn)
- Specified by:
trackMouseCrossing
in class RibbonBandUI