Package com.formdev.flatlaf.icons
Class FlatWindowAbstractIcon
java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
com.formdev.flatlaf.icons.FlatWindowAbstractIcon
- All Implemented Interfaces:
Icon
,UIResource
- Direct Known Subclasses:
FlatWindowCloseIcon
,FlatWindowIconifyIcon
,FlatWindowMaximizeIcon
,FlatWindowRestoreIcon
Base class for window icons.
-
Field Summary
FieldsFields inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
color, height, width
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FlatWindowAbstractIcon
(Dimension size, int symbolHeight, Color hoverBackground, Color pressedBackground) protected
FlatWindowAbstractIcon
(String windowStyle) -
Method Summary
Modifier and TypeMethodDescriptionprotected Color
protected int
protected void
protected void
paintIcon
(Component c, Graphics2D g) protected abstract void
paintIconAt1x
(Graphics2D g, int x, int y, int width, int height, double scaleFactor) Methods inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
getIconHeight, getIconWidth, paintIcon
-
Field Details
-
symbolHeight
private final int symbolHeight -
hoverBackground
-
pressedBackground
-
-
Constructor Details
-
Method Details
-
paintIcon
- Specified by:
paintIcon
in classFlatAbstractIcon
-
paintIconAt1x
protected abstract void paintIconAt1x(Graphics2D g, int x, int y, int width, int height, double scaleFactor) -
paintBackground
-
getForeground
-
getSymbolHeight
protected int getSymbolHeight()- Since:
- 3.2
-