Package com.formdev.flatlaf.icons
Class FlatMenuArrowIcon
- java.lang.Object
-
- com.formdev.flatlaf.icons.FlatAbstractIcon
-
- com.formdev.flatlaf.icons.FlatMenuArrowIcon
-
- All Implemented Interfaces:
javax.swing.Icon
,javax.swing.plaf.UIResource
- Direct Known Subclasses:
FlatMenuItemArrowIcon
public class FlatMenuArrowIcon extends FlatAbstractIcon
"arrow" icon forJMenu
.- UiDefault:
- Component.arrowType String triangle (default) or chevron, Menu.icon.arrowColor Color, Menu.icon.disabledArrowColor Color, Menu.selectionForeground Color, MenuItem.selectionType String
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.Color
arrowColor
protected boolean
chevron
protected java.awt.Color
disabledArrowColor
protected java.awt.Color
selectionForeground
-
Fields inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
color, height, width
-
-
Constructor Summary
Constructors Constructor Description FlatMenuArrowIcon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.Color
getArrowColor(java.awt.Component c)
protected boolean
isUnderlineSelection()
protected void
paintIcon(java.awt.Component c, java.awt.Graphics2D g)
-
Methods inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
getIconHeight, getIconWidth, paintIcon
-
-
-
-
Method Detail
-
paintIcon
protected void paintIcon(java.awt.Component c, java.awt.Graphics2D g)
- Specified by:
paintIcon
in classFlatAbstractIcon
-
getArrowColor
protected java.awt.Color getArrowColor(java.awt.Component c)
-
isUnderlineSelection
protected boolean isUnderlineSelection()
-
-