Class FlatAbstractIcon
java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
- All Implemented Interfaces:
Icon, UIResource
- Direct Known Subclasses:
FlatAnimatedIcon, FlatAscendingSortIcon, FlatCapsLockIcon, FlatCheckBoxIcon, FlatCheckBoxMenuItemIcon, FlatClearIcon, FlatColorPipette.Magnifier.ColorIcon, FlatColumnControlIcon, FlatFileChooserDetailsViewIcon, FlatFileChooserHomeFolderIcon, FlatFileChooserListViewIcon, FlatFileChooserNewFolderIcon, FlatFileChooserUpFolderIcon, FlatFileViewComputerIcon, FlatFileViewDirectoryIcon, FlatFileViewFileIcon, FlatFileViewFloppyDriveIcon, FlatFileViewHardDriveIcon, FlatHelpButtonIcon, FlatInternalFrameAbstractIcon, FlatMenuArrowIcon, FlatMenuItemArrowIcon, FlatMonthDownIcon, FlatOptionPaneAbstractIcon, FlatRevealIcon, FlatSearchIcon, FlatTabbedPaneCloseIcon, FlatTipOfTheDayIcon, FlatTreeClosedIcon, FlatTreeCollapsedIcon, FlatTreeLeafIcon, FlatTreeOpenIcon, FlatWindowAbstractIcon
Base class for icons that scales width and height, creates and initializes
a scaled graphics context for icon painting.
Subclasses do not need to scale icon painting.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintprotected voidpaintBackground(Component c, Graphics2D g, int x, int y) protected abstract voidpaintIcon(Component c, Graphics2D g) void
-
Field Details
-
width
protected final int width -
height
protected final int height -
color
-
-
Constructor Details
-
FlatAbstractIcon
-
-
Method Details
-
paintIcon
-
paintBackground
- Since:
- 3.5.2
-
paintIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-