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 ColormenuBarUnderlineSelectionBackgroundprotected ColormenuBarUnderlineSelectionColorprotected intmenuBarUnderlineSelectionHeight-
Fields inherited from class com.formdev.flatlaf.ui.FlatMenuItemRenderer
acceleratorArrowGap, acceleratorDelimiter, acceleratorFont, arrowIcon, checkBackground, checkIcon, checkMargins, menuItem, minimumIconSize, minimumWidth, selectionBackground, textAcceleratorGap, textNoAcceleratorGap, underlineSelectionBackground, underlineSelectionCheckBackground, underlineSelectionColor, underlineSelectionHeight
-
-
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
deriveBackground, getMacOSModifiersExText, getPreferredMenuItemSize, getTextForAccelerator, isArmedOrSelected, isTopLevelMenu, isUnderlineSelection, paintAccelerator, paintArrowIcon, paintHTMLText, paintIcon, paintIcon, paintMenuItem, paintText, paintText
-
-
-
-
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
-
-