org.jvnet.flamingo.ribbon.ui
Class BasicRibbonBandUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by org.jvnet.flamingo.ribbon.ui.RibbonBandUI
          extended by org.jvnet.flamingo.ribbon.ui.BasicRibbonBandUI

public class BasicRibbonBandUI
extends RibbonBandUI

Basic UI for ribbon band JRibbonBand.

Author:
Kirill Grouchnikov, Matt Nathan

Constructor Summary
BasicRibbonBandUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 int getBandTitleHeight()
          Returns the height of the ribbon band title area.
 int getPreferredCollapsedWidth()
           
 void installUI(javax.swing.JComponent c)
           
 boolean isUnderMouse()
          Returns indication whether the mouse is over the associated ribbon band.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
 void trackMouseCrossing(boolean isMouseIn)
           
 void uninstallUI(javax.swing.JComponent c)
           
 void update(java.awt.Graphics g, javax.swing.JComponent c)
           
 
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
 

Constructor Detail

BasicRibbonBandUI

public BasicRibbonBandUI()
Method Detail

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