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 java.awt.ColormenuBarUnderlineSelectionBackgroundprotected java.awt.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFlatMenuRenderer(javax.swing.JMenuItem menuItem, javax.swing.Icon checkIcon, javax.swing.Icon arrowIcon, java.awt.Font acceleratorFont, java.lang.String acceleratorDelimiter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidpaintBackground(java.awt.Graphics g, java.awt.Color selectionBackground)protected voidpaintUnderlineSelection(java.awt.Graphics g, java.awt.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(java.awt.Graphics g, java.awt.Color selectionBackground)- Overrides:
paintBackgroundin classFlatMenuItemRenderer
-
paintUnderlineSelection
protected void paintUnderlineSelection(java.awt.Graphics g, java.awt.Color underlineSelectionColor, int underlineSelectionHeight)- Overrides:
paintUnderlineSelectionin classFlatMenuItemRenderer
-
-