public interface NavBarUI
AbstractNavBarUI
.
If NavBar is visible on IdeFrame it's structure is the following:
WrapperPanel____________________________________________________ | __NavBarPanel_____________________| | | | NavBarItem \ NavBarItem\ | Toolbar (optional) | | |____________/_____________/_______| | |_____________________________________|________________________|
NavBarUIManager
,
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 bounds,
boolean mainToolbarVisible,
boolean undocked) |
void |
doPaintWrapperPanel(java.awt.Graphics2D g,
java.awt.Rectangle bounds,
boolean mainToolbarVisible) |
java.awt.Color |
getBackground(boolean selected,
boolean focused)
Returns NavBarItem background
|
java.awt.Font |
getElementFont(NavBarItem navBarItem) |
java.awt.Insets |
getElementIpad(boolean isPopupElement) |
java.awt.Insets |
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) |
int getPopupOffset(NavBarItem item)
item
- nav bar itemjava.awt.Insets getElementIpad(boolean isPopupElement)
java.awt.Insets getElementPadding()
java.awt.Font getElementFont(NavBarItem navBarItem)
java.awt.Insets getWrapperPanelInsets(java.awt.Insets insets)
short getSelectionAlpha()
java.awt.Dimension getOffsets(NavBarItem item)
item
- NavBar elementjava.awt.Color getBackground(boolean selected, boolean focused)
selected
- is element selectedfocused
- is element focused (can be selected, but has no focus - while NavBarPopup showing)java.awt.Color getForeground(boolean selected, boolean focused, boolean inactive)
selected
- is element selectedfocused
- is element focused (can be selected, but has no focus - while NavBarPopup showing)void doPaintWrapperPanel(java.awt.Graphics2D g, java.awt.Rectangle bounds, boolean mainToolbarVisible)
void doPaintNavBarItem(java.awt.Graphics2D g, NavBarItem item, NavBarPanel navbar)
void doPaintNavBarPanel(java.awt.Graphics2D g, java.awt.Rectangle bounds, boolean mainToolbarVisible, boolean undocked)
void clearItems()