Package com.formdev.flatlaf.icons
Class FlatAbstractIcon
- java.lang.Object
-
- com.formdev.flatlaf.icons.FlatAbstractIcon
-
- All Implemented Interfaces:
javax.swing.Icon,javax.swing.plaf.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
public abstract class FlatAbstractIcon extends java.lang.Object implements javax.swing.Icon, javax.swing.plaf.UIResourceBase 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.
-
-
Constructor Summary
Constructors Constructor Description FlatAbstractIcon(int width, int height, java.awt.Color color)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetIconHeight()intgetIconWidth()protected voidpaintBackground(java.awt.Component c, java.awt.Graphics2D g, int x, int y)protected abstract voidpaintIcon(java.awt.Component c, java.awt.Graphics2D g)voidpaintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
-
-
-
Method Detail
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)- Specified by:
paintIconin interfacejavax.swing.Icon
-
paintBackground
protected void paintBackground(java.awt.Component c, java.awt.Graphics2D g, int x, int y)- Since:
- 3.5.2
-
paintIcon
protected abstract void paintIcon(java.awt.Component c, java.awt.Graphics2D g)
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfacejavax.swing.Icon
-
-