Package com.formdev.flatlaf.ui
Class FlatMenuUI.FlatMenuRenderer
- java.lang.Object
-
- com.formdev.flatlaf.ui.FlatMenuItemRenderer
-
- com.formdev.flatlaf.ui.FlatMenuUI.FlatMenuRenderer
-
- Enclosing class:
- FlatMenuUI
protected class FlatMenuUI.FlatMenuRenderer extends FlatMenuItemRenderer
-
-
Field Summary
Fields Modifier and Type Field Description protected ColorhoverBackgroundprotected ColormenuBarUnderlineSelectionBackgroundprotected ColormenuBarUnderlineSelectionColorprotected intmenuBarUnderlineSelectionHeight-
Fields inherited from class com.formdev.flatlaf.ui.FlatMenuItemRenderer
acceleratorArrowGap, acceleratorDelimiter, acceleratorFont, arrowIcon, checkBackground, checkIcon, checkMargins, menuItem, minimumIconSize, minimumWidth, textAcceleratorGap, textNoAcceleratorGap, underlineSelectionBackground, underlineSelectionCheckBackground, underlineSelectionColor, underlineSelectionHeight, verticallyAlignText
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidpaintBackground(Graphics g, Color selectionBackground)protected voidpaintUnderlineSelection(Graphics g, Color underlineSelectionColor, int underlineSelectionHeight)-
Methods inherited from class com.formdev.flatlaf.ui.FlatMenuItemRenderer
applyStyleProperty, deriveBackground, getMacOSModifiersExText, getPreferredMenuItemSize, getStyleableInfos, getTextForAccelerator, isArmedOrSelected, isTopLevelMenu, isUnderlineSelection, paintAccelerator, paintArrowIcon, paintHTMLText, paintIcon, paintIcon, paintMenuItem, paintText, paintText
-
-
-
-
Field Detail
-
hoverBackground
protected Color hoverBackground
-
menuBarUnderlineSelectionBackground
protected Color menuBarUnderlineSelectionBackground
-
menuBarUnderlineSelectionColor
protected Color menuBarUnderlineSelectionColor
-
menuBarUnderlineSelectionHeight
protected int menuBarUnderlineSelectionHeight
-
-
Method Detail
-
paintBackground
protected void paintBackground(Graphics g, Color selectionBackground)
- Overrides:
paintBackgroundin classFlatMenuItemRenderer
-
paintUnderlineSelection
protected void paintUnderlineSelection(Graphics g, Color underlineSelectionColor, int underlineSelectionHeight)
- Overrides:
paintUnderlineSelectionin classFlatMenuItemRenderer
-
-