Class FlatRevealIcon
java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
com.formdev.flatlaf.icons.FlatRevealIcon
- All Implemented Interfaces:
Icon, UIResource
"eye" icon for
JPasswordField.- Since:
- 2
- UiDefault:
- PasswordField.revealIconColor Color
-
Field Summary
Fields inherited from class FlatAbstractIcon
color, height, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidpaintIcon(Component c, Graphics2D g) Paints icon.Methods inherited from class FlatAbstractIcon
getIconHeight, getIconWidth, getScale, paintBackground, paintIcon, scale, setScale
-
Constructor Details
-
FlatRevealIcon
public FlatRevealIcon()
-
-
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
-