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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Color
protected int
protected Color
protected Insets
protected Color
protected Insets
protected Color
protected Color
protected int
Fields inherited from class com.formdev.flatlaf.ui.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> T
getStyleFromMenuBarUI
(Function<FlatMenuBarUI, T> f, T defaultValue) private <T> T
getStyleFromMenuBarUI
(Function<FlatMenuBarUI, T> f, T defaultValue, T defaultValue2) private boolean
isHover()
protected void
protected void
paintSelection
(Graphics g, Color selectionBackground, Insets selectionInsets, int selectionArc) protected void
paintText
(Graphics g, Rectangle textRect, String text, Color selectionForeground, Color disabledForeground) protected void
paintUnderlineSelection
(Graphics g, Color underlineSelectionBackground, Color underlineSelectionColor, int underlineSelectionHeight) Methods inherited from class com.formdev.flatlaf.ui.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:
paintBackground
in classFlatMenuItemRenderer
- Since:
- 3
-
paintSelection
protected void paintSelection(Graphics g, Color selectionBackground, Insets selectionInsets, int selectionArc) - Overrides:
paintSelection
in classFlatMenuItemRenderer
- Since:
- 3
-
paintUnderlineSelection
protected void paintUnderlineSelection(Graphics g, Color underlineSelectionBackground, Color underlineSelectionColor, int underlineSelectionHeight) - Overrides:
paintUnderlineSelection
in classFlatMenuItemRenderer
- Since:
- 3
-
paintText
protected void paintText(Graphics g, Rectangle textRect, String text, Color selectionForeground, Color disabledForeground) - Overrides:
paintText
in classFlatMenuItemRenderer
-
isHover
private boolean isHover() -
getStyleFromMenuBarUI
-
getStyleFromMenuBarUI
-