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 ColormenuBarSelectionBackgroundprotected ColormenuBarSelectionForegroundprotected 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 voidpaintText(Graphics g, Rectangle textRect, String text, Color selectionForeground, Color disabledForeground)protected voidpaintUnderlineSelection(Graphics g, Color underlineSelectionColor, int underlineSelectionHeight)-
Methods inherited from class com.formdev.flatlaf.ui.FlatMenuItemRenderer
applyStyleProperty, deriveBackground, getMacOSModifiersExText, getPreferredMenuItemSize, getStyleableInfos, getStyleableValue, getTextForAccelerator, isArmedOrSelected, isTopLevelMenu, isUnderlineSelection, paintAccelerator, paintArrowIcon, paintHTMLText, paintIcon, paintIcon, paintMenuItem, paintText
-
-
-
-
Field Detail
-
hoverBackground
protected Color hoverBackground
-
menuBarSelectionBackground
protected Color menuBarSelectionBackground
-
menuBarSelectionForeground
protected Color menuBarSelectionForeground
-
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
-
paintText
protected void paintText(Graphics g, Rectangle textRect, String text, Color selectionForeground, Color disabledForeground)
- Overrides:
paintTextin classFlatMenuItemRenderer
-
paintUnderlineSelection
protected void paintUnderlineSelection(Graphics g, Color underlineSelectionColor, int underlineSelectionHeight)
- Overrides:
paintUnderlineSelectionin classFlatMenuItemRenderer
-
-