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
public abstract class FlatWindowAbstractIcon extends FlatAbstractIcon
Base class for window icons.- UiDefault:
- TitlePane.buttonSize Dimension, TitlePane.buttonInsets Insets optional, TitlePane.buttonArc int optional, TitlePane.buttonSymbolHeight int, TitlePane.buttonBackground Color optional, TitlePane.buttonForeground Color optional, TitlePane.buttonInactiveBackground Color optional, TitlePane.buttonInactiveForeground Color optional, TitlePane.buttonHoverBackground Color optional, TitlePane.buttonHoverForeground Color optional, TitlePane.buttonPressedBackground Color optional, TitlePane.buttonPressedForeground Color optional
-
-
Field Summary
Fields Modifier and Type Field Description protected intarcprotected Colorbackgroundprotected Colorforegroundprotected ColorhoverBackgroundprotected ColorhoverForegroundprotected ColorinactiveBackgroundprotected ColorinactiveForegroundprotected Insetsinsetsprotected ColorpressedBackgroundprotected ColorpressedForegroundprotected intsymbolHeight-
Fields inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
color, height, width
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFlatWindowAbstractIcon(Dimension size, Insets insets, int arc, int symbolHeight, Color background, Color foreground, Color inactiveBackground, Color inactiveForeground, Color hoverBackground, Color hoverForeground, Color pressedBackground, Color pressedForeground)protectedFlatWindowAbstractIcon(String windowStyle)protectedFlatWindowAbstractIcon(String windowStyle, Color background, Color foreground, Color inactiveBackground, Color inactiveForeground, Color hoverBackground, Color hoverForeground, Color pressedBackground, Color pressedForeground)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ColorgetForeground(Component c)protected voidpaintBackground(Component c, Graphics2D g, int x, int y)protected voidpaintIcon(Component c, Graphics2D g)protected abstract voidpaintIconAt1x(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 Detail
-
insets
protected final Insets insets
- Since:
- 3.6
-
arc
protected final int arc
- Since:
- 3.6
-
symbolHeight
protected final int symbolHeight
- Since:
- 3.6
-
background
protected final Color background
- Since:
- 3.6
-
foreground
protected final Color foreground
- Since:
- 3.6
-
inactiveBackground
protected final Color inactiveBackground
- Since:
- 3.6
-
inactiveForeground
protected final Color inactiveForeground
- Since:
- 3.6
-
hoverBackground
protected final Color hoverBackground
-
hoverForeground
protected final Color hoverForeground
- Since:
- 3.6
-
pressedBackground
protected final Color pressedBackground
-
pressedForeground
protected final Color pressedForeground
- Since:
- 3.6
-
-
Constructor Detail
-
FlatWindowAbstractIcon
protected FlatWindowAbstractIcon(String windowStyle)
- Since:
- 3.2
-
FlatWindowAbstractIcon
protected FlatWindowAbstractIcon(String windowStyle, Color background, Color foreground, Color inactiveBackground, Color inactiveForeground, Color hoverBackground, Color hoverForeground, Color pressedBackground, Color pressedForeground)
- Since:
- 3.6
-
FlatWindowAbstractIcon
protected FlatWindowAbstractIcon(Dimension size, Insets insets, int arc, int symbolHeight, Color background, Color foreground, Color inactiveBackground, Color inactiveForeground, Color hoverBackground, Color hoverForeground, Color pressedBackground, Color pressedForeground)
- Since:
- 3.6
-
-
Method Detail
-
paintIcon
protected void paintIcon(Component c, Graphics2D g)
- Specified by:
paintIconin classFlatAbstractIcon
-
paintIconAt1x
protected abstract void paintIconAt1x(Graphics2D g, int x, int y, int width, int height, double scaleFactor)
-
paintBackground
protected void paintBackground(Component c, Graphics2D g, int x, int y)
- Overrides:
paintBackgroundin classFlatAbstractIcon- Since:
- 3.5.2
-
-