Class FlatMenuUI.FlatMenuRenderer
java.lang.Object
com.formdev.flatlaf.ui.FlatMenuItemRenderer
com.formdev.flatlaf.ui.FlatMenuUI.FlatMenuRenderer
- Enclosing class:
FlatMenuUI
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Colorprotected intprotected Colorprotected Insetsprotected Colorprotected Insetsprotected Colorprotected Colorprotected intFields inherited from class FlatMenuItemRenderer
acceleratorArrowGap, acceleratorDelimiter, acceleratorFont, arrowIcon, checkBackground, checkIcon, checkMargins, menuItem, minimumIconSize, minimumWidth, selectionArc, selectionInsets, textAcceleratorGap, textNoAcceleratorGap, underlineSelectionBackground, underlineSelectionCheckBackground, underlineSelectionColor, underlineSelectionHeight, verticallyAlignText -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> TgetStyleFromMenuBarUI(Function<FlatMenuBarUI, T> f, T defaultValue) private <T> TgetStyleFromMenuBarUI(Function<FlatMenuBarUI, T> f, T defaultValue, T defaultValue2) private booleanisHover()protected voidprotected voidpaintSelection(Graphics g, Color selectionBackground, Insets selectionInsets, int selectionArc) protected voidpaintText(Graphics g, Rectangle textRect, String text, Color selectionForeground, Color disabledForeground) protected voidpaintUnderlineSelection(Graphics g, Color underlineSelectionBackground, Color underlineSelectionColor, int underlineSelectionHeight) Methods inherited from class FlatMenuItemRenderer
applyStyleProperty, clearClientProperties, deriveBackground, getMacOSModifiersExText, getPreferredMenuItemSize, getStyleableInfos, getStyleableValue, getTextForAccelerator, isArmedOrSelected, isInVerticalMenuBar, isTopLevelMenu, isUnderlineSelection, paintAccelerator, paintArrowIcon, paintHTMLText, paintIcon, paintIcon, paintMenuItem, paintText
-
Field Details
-
hoverBackground
-
Constructor Details
-
FlatMenuRenderer
-
-
Method Details
-
paintBackground
- Overrides:
paintBackgroundin classFlatMenuItemRenderer- Since:
- 3
-
paintSelection
protected void paintSelection(Graphics g, Color selectionBackground, Insets selectionInsets, int selectionArc) - Overrides:
paintSelectionin classFlatMenuItemRenderer- Since:
- 3
-
paintUnderlineSelection
protected void paintUnderlineSelection(Graphics g, Color underlineSelectionBackground, Color underlineSelectionColor, int underlineSelectionHeight) - Overrides:
paintUnderlineSelectionin classFlatMenuItemRenderer- Since:
- 3
-
paintText
-
isHover
private boolean isHover() -
getStyleFromMenuBarUI
-
getStyleFromMenuBarUI
-