javax.swing
public interface: Icon [javadoc |
source]
All Known Implementing Classes:
InternalFrameAltMaximizeIcon, InternalFrameCloseIcon, RadioButtonMenuItemIcon, InternalFrameMinimizeIcon, RadioButtonIcon, IcShape, LazyImageIcon, IconUIResource, CheckBoxIcon, CheckBoxIcon, OceanHorizontalSliderThumbIcon, MetalComboBoxIcon, FileChooserDetailViewIcon, FileChooserHomeFolderIcon, FileChooserUpFolderIcon, PaletteCloseIcon, IcCircle, TreeLeafIcon, TreeFloppyDriveIcon, IcEllipse, MenuItemArrowIcon, MetalBumps, MenuItemArrowIcon, InternalFrameMaximizeIcon, TreeControlIcon, InternalFrameDefaultMenuIcon, IcRectangle, FontDisplay, IcRoundRect, IcTriangle, EmptyFrameIcon, ImageIcon, CheckBoxMenuItemIcon, CheckBoxMenuItemIcon, TreeHardDriveIcon, SynthIconWrapper, FontDisplay, MenuItemCheckIcon, TreeFolderIcon, ExpandedIconWrapper, MetalCheckBoxIcon, FileIcon16, MenuArrowIcon, FolderIcon16, TreeComputerIcon, VerticalSliderThumbIcon, COIcon, FileChooserListViewIcon, HorizontalSliderThumbIcon, OceanVerticalSliderThumbIcon, RadioButtonMenuItemIcon, MenuArrowIcon, IcDiamond, RadioButtonIcon, IndentIcon, IFIcon, IcOctagon, FileChooserNewFolderIcon
A small fixed size picture, typically used to decorate components.
| Method from javax.swing.Icon Detail: |
public int getIconHeight()
Returns the icon's height. |
public int getIconWidth()
Returns the icon's width. |
public void paintIcon(Component c,
Graphics g,
int x,
int y)
Draw the icon at the specified location. Icon implementations
may use the Component argument to get properties useful for
painting, e.g. the foreground or background color. |