javax.swing.plaf.metal
Class MetalIconFactory.FileIcon16
- MetalIconFactory
- Icon, Serializable
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
TM
has been added to the
java.beans package.
Please see
XMLEncoder.
clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait |
getIconWidth
public int getIconWidth()
Returns the icon's width.
- getIconWidth in interface Icon
- 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.
- paintIcon in interface Icon