public abstract class AbstractNavBarUI extends java.lang.Object implements NavBarUI
Constructor and Description |
---|
AbstractNavBarUI() |
Modifier and Type | Method and Description |
---|---|
void |
clearItems() |
void |
doPaintNavBarItem(java.awt.Graphics2D g,
NavBarItem item,
NavBarPanel navbar) |
void |
doPaintNavBarPanel(java.awt.Graphics2D g,
java.awt.Rectangle r,
boolean mainToolbarVisible,
boolean undocked) |
java.awt.Color |
getBackground(boolean selected,
boolean focused)
Returns NavBarItem background
|
protected java.awt.Color |
getBackgroundColor() |
java.awt.Font |
getElementFont(NavBarItem navBarItem) |
java.awt.Insets |
getElementIpad(boolean isPopupElement) |
JBInsets |
getElementPadding() |
java.awt.Color |
getForeground(boolean selected,
boolean focused,
boolean inactive)
Returns NavBarItem foreground
|
java.awt.Dimension |
getOffsets(NavBarItem item)
NavBarItem offsets
|
int |
getPopupOffset(NavBarItem item)
Returns offset for NavBarPopup
|
short |
getSelectionAlpha()
NavBarItem uses standard selection color from LaF.
|
java.awt.Insets |
getWrapperPanelInsets(java.awt.Insets insets) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doPaintWrapperPanel
public java.awt.Insets getElementIpad(boolean isPopupElement)
getElementIpad
in interface NavBarUI
public JBInsets getElementPadding()
getElementPadding
in interface NavBarUI
public java.awt.Font getElementFont(NavBarItem navBarItem)
getElementFont
in interface NavBarUI
public java.awt.Color getBackground(boolean selected, boolean focused)
NavBarUI
getBackground
in interface NavBarUI
selected
- is element selectedfocused
- is element focused (can be selected, but has no focus - while NavBarPopup showing)public java.awt.Color getForeground(boolean selected, boolean focused, boolean inactive)
NavBarUI
getForeground
in interface NavBarUI
selected
- is element selectedfocused
- is element focused (can be selected, but has no focus - while NavBarPopup showing)public short getSelectionAlpha()
NavBarUI
getSelectionAlpha
in interface NavBarUI
public void doPaintNavBarItem(java.awt.Graphics2D g, NavBarItem item, NavBarPanel navbar)
doPaintNavBarItem
in interface NavBarUI
public java.awt.Dimension getOffsets(NavBarItem item)
NavBarUI
getOffsets
in interface NavBarUI
item
- NavBar elementpublic java.awt.Insets getWrapperPanelInsets(java.awt.Insets insets)
getWrapperPanelInsets
in interface NavBarUI
protected java.awt.Color getBackgroundColor()
public void doPaintNavBarPanel(java.awt.Graphics2D g, java.awt.Rectangle r, boolean mainToolbarVisible, boolean undocked)
doPaintNavBarPanel
in interface NavBarUI
public void clearItems()
clearItems
in interface NavBarUI
public int getPopupOffset(NavBarItem item)
NavBarUI
getPopupOffset
in interface NavBarUI
item
- nav bar item