This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.swing
interface Icon
- All Known Implementing Classes:
- IconUIResource, ImageIcon, MetalCheckBoxIcon, MetalComboBoxIcon, MetalIconFactory.FileIcon16, MetalIconFactory.TreeLeafIcon, MetalIconFactory.FolderIcon16, MetalIconFactory.TreeFolderIcon, MetalIconFactory.PaletteCloseIcon, MetalIconFactory.TreeControlIcon
public interface Icon
A small fixed size picture, typically used to decorate components.
Method Summary |
int |
Returns the icon's height.
|
int |
Returns the icon's width.
|
void |
Draw the icon at the specified location.
|
getIconHeight
public int getIconHeight()
-
Returns the icon's height.
- Returns:
- an int specifying the fixed height of the icon.
getIconWidth
public int getIconWidth()
-
Returns the icon's width.
- Returns:
- an int specifying the fixed width of the icon.
paintIcon
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.
- Parameters:
c
g
x
y
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.