Class FlatMenuArrowIcon
java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
com.formdev.flatlaf.icons.FlatMenuArrowIcon
- All Implemented Interfaces:
FlatStylingSupport.StyleableObject, Icon, UIResource
public class FlatMenuArrowIcon
extends FlatAbstractIcon
implements FlatStylingSupport.StyleableObject
"arrow" icon for
JMenu.- UiDefault:
- Component.arrowType String chevron (default) or triangle, Menu.icon.arrowColor Color, Menu.icon.disabledArrowColor Color, Menu.selectionForeground Color, MenuItem.selectionType String
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Colorprotected Stringprotected Colorprotected ColorFields inherited from class FlatAbstractIcon
color, height, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Colorprotected booleanprotected voidpaintIcon(Component c, Graphics2D g) Paints icon.Methods inherited from class FlatAbstractIcon
getIconHeight, getIconWidth, getScale, paintBackground, paintIcon, scale, setScaleMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FlatStylingSupport.StyleableObject
applyStyleProperty, getStyleableInfos, getStyleableValue
-
Field Details
-
arrowType
-
arrowColor
-
disabledArrowColor
-
selectionForeground
-
-
Constructor Details
-
FlatMenuArrowIcon
public FlatMenuArrowIcon()
-
-
Method Details
-
paintIcon
Description copied from class:FlatAbstractIconPaints icon.The graphics context is translated and scaled. This means that icon x,y coordinates are
0,0and it is not necessary to scale coordinates within this method.The bounds to be used for icon painting are: 0, 0,
FlatAbstractIcon.width,FlatAbstractIcon.height.- Specified by:
paintIconin classFlatAbstractIcon
-
getArrowColor
-
isUnderlineSelection
protected boolean isUnderlineSelection()
-