AncestorEvent.java, [...]: New versions from classpath.

2003-06-24  Michael Koch  <konqueror@gmx.de>

	* javax/swing/event/AncestorEvent.java,
	javax/swing/event/HyperlinkEvent.java,
	javax/swing/event/InternalFrameEvent.java,
	javax/swing/event/ListDataEvent.java,
	javax/swing/event/TableModelEvent.java,
	javax/swing/event/TreeWillExpandListener.java,
	javax/swing/plaf/ComponentUI.java,
	javax/swing/plaf/DesktopIconUI.java,
	javax/swing/plaf/DesktopPaneUI.java,
	javax/swing/plaf/DimensionUIResource.java,
	javax/swing/plaf/FileChooserUI.java,
	javax/swing/plaf/FontUIResource.java,
	javax/swing/plaf/IconUIResource.java,
	javax/swing/plaf/InputMapUIResource.java,
	javax/swing/plaf/InsetsUIResource.java,
	javax/swing/plaf/InternalFrameUI.java,
	javax/swing/plaf/LabelUI.java,
	javax/swing/plaf/ListUI.java,
	javax/swing/plaf/MenuBarUI.java,
	javax/swing/plaf/MenuItemUI.java,
	javax/swing/plaf/OptionPaneUI.java,
	javax/swing/plaf/PanelUI.java,
	javax/swing/plaf/ProgressBarUI.java,
	javax/swing/plaf/doc-files/ComponentUI-1.dia,
	javax/swing/plaf/doc-files/ComponentUI-1.png:
	New versions from classpath.

From-SVN: r68438
This commit is contained in:
Michael Koch 2003-06-24 20:17:27 +00:00 committed by Michael Koch
parent 7aff2f289b
commit bbe53f03c8
26 changed files with 1206 additions and 840 deletions

View file

@ -1,5 +1,5 @@
/* IconUIResource.java
Copyright (C) 2002 Free Software Foundation, Inc.
Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@ -37,29 +37,86 @@ exception statement from your version. */
package javax.swing.plaf;
import java.awt.Component;
import java.awt.Graphics;
import java.io.Serializable;
import javax.swing.Icon;
/**
* STUBBED
* An icon that is marked as <code>UIResource</code>, which
* indicates that it has been installed by a pluggable
* LookAndFeel. Such icons are replaced when the LookAndFeel
* changes.
*
* @author Andrew Selkirk (aselkirk@sympatico.ca)
* @author Sascha Brawer (brawer@dandelis.ch)
*/
public class IconUIResource implements Icon, UIResource, Serializable
public class IconUIResource
implements Icon, UIResource, Serializable
{
/**
* Verified using the <code>serialver</code> tool of Sun JDK 1.4.1_01
* on GNU/Linux 2.4.18.
*/
static final long serialVersionUID = 3327049506004830542L;
/**
* The icon that is wrapped by this <code>IconUIResource</code>.
*/
private Icon delegate;
/**
* Constructs a <code>IconUIResource</code> that wraps another
* icon. All messages are forwarded to the delegate icon.
*
* @param delegate the icon that is wrapped by this
* <code>IconUIResource</code>.
*/
public IconUIResource(Icon delegate)
{
this.delegate = delegate;
}
/**
* Paints the icon by asking the delegate icon to paint itself.
*
* @param c the Component whose icon is being painted. Some icons
* use this argument to retrieve properties like the
* background color.
*
* @param g the graphics into which the icon will be painted.
*
* @param x the horizontal position of the icon.
*
* @param y the vertical position of the icon.
*/
public void paintIcon(Component c, Graphics g, int x, int y)
{
delegate.paintIcon(c, g, x, y);
}
/**
* Returns the width of the icon in pixels. The implementation
* determines and returns the width of the delegate icon.
*/
public int getIconWidth()
{
return 0;
return delegate.getIconWidth();
}
/**
* Returns the height of the icon in pixels. The implementation
* determines and returns the height of the delegate icon.
*/
public int getIconHeight()
{
return 0;
return delegate.getIconHeight();
}
} // class IconUIResource
}