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 intmenuBarSelectionArcprotected ColormenuBarSelectionBackgroundprotected InsetsmenuBarSelectionEmbeddedInsetsprotected ColormenuBarSelectionForegroundprotected InsetsmenuBarSelectionInsetsprotected ColormenuBarUnderlineSelectionBackgroundprotected ColormenuBarUnderlineSelectionColorprotected intmenuBarUnderlineSelectionHeight-
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 voidpaintBackground(Graphics g)protected 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 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:
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
-
-