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 Color
hoverBackground
protected int
menuBarSelectionArc
protected Color
menuBarSelectionBackground
protected Insets
menuBarSelectionEmbeddedInsets
protected Color
menuBarSelectionForeground
protected Insets
menuBarSelectionInsets
protected Color
menuBarUnderlineSelectionBackground
protected Color
menuBarUnderlineSelectionColor
protected int
menuBarUnderlineSelectionHeight
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
paintBackground(Graphics g)
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, deriveBackground, getMacOSModifiersExText, getPreferredMenuItemSize, getStyleableInfos, getStyleableValue, getTextForAccelerator, isArmedOrSelected, isTopLevelMenu, isUnderlineSelection, paintAccelerator, paintArrowIcon, paintHTMLText, paintIcon, paintIcon, paintMenuItem, paintText
-
-
-
-
Field Detail
-
menuBarSelectionInsets
protected Insets menuBarSelectionInsets
- Since:
- 3
-
menuBarSelectionEmbeddedInsets
protected Insets menuBarSelectionEmbeddedInsets
- Since:
- 3
-
menuBarSelectionArc
protected int menuBarSelectionArc
- Since:
- 3
-
hoverBackground
protected Color hoverBackground
-
menuBarSelectionBackground
protected Color menuBarSelectionBackground
- Since:
- 2.5
-
menuBarSelectionForeground
protected Color menuBarSelectionForeground
- Since:
- 2.5
-
menuBarUnderlineSelectionBackground
protected Color menuBarUnderlineSelectionBackground
-
menuBarUnderlineSelectionColor
protected Color menuBarUnderlineSelectionColor
-
menuBarUnderlineSelectionHeight
protected int menuBarUnderlineSelectionHeight
-
-
Method Detail
-
paintBackground
protected void paintBackground(Graphics g)
- 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
-
-