diff options
author | Michael Koch <konqueror@gmx.de> | 2004-09-27 15:11:46 +0000 |
---|---|---|
committer | Michael Koch <konqueror@gmx.de> | 2004-09-27 15:11:46 +0000 |
commit | 76b0e34ade97b97034d44a8d271eee1d60dec40e (patch) | |
tree | b36ab2378f704e40a0e860f800f84297ea6d3ef8 /java | |
parent | f891d944016915f02710b150230e70f6a2107cd5 (diff) | |
download | classpath-76b0e34ade97b97034d44a8d271eee1d60dec40e.tar.gz |
2004-09-27 Michael Koch <konqueror@gmx.de>
* java/awt/AWTKeyStroke.java,
java/awt/Canvas.java,
java/awt/CardLayout.java,
java/awt/CheckboxMenuItem.java,
java/awt/Component.java,
java/awt/Container.java,
java/awt/DefaultKeyboardFocusManager.java,
java/awt/EventDispatchThread.java,
java/awt/FileDialog.java,
java/awt/FlowLayout.java,
java/awt/Font.java,
java/awt/Frame.java,
java/awt/Graphics2D.java,
java/awt/GraphicsEnvironment.java,
java/awt/GridBagConstraints.java,
java/awt/GridBagLayout.java,
java/awt/GridLayout.java,
java/awt/Image.java,
java/awt/KeyboardFocusManager.java,
java/awt/Label.java,
java/awt/List.java,
java/awt/MediaTracker.java,
java/awt/Menu.java,
java/awt/MenuBar.java,
java/awt/MenuComponent.java,
java/awt/Panel.java,
java/awt/PopupMenu.java,
java/awt/ScrollPane.java,
java/awt/Scrollbar.java,
java/awt/SystemColor.java,
java/awt/TextArea.java,
java/awt/TextField.java,
java/awt/Toolkit.java,
java/awt/Window.java,
java/awt/color/ICC_Profile.java,
java/awt/datatransfer/DataFlavor.java,
java/awt/datatransfer/StringSelection.java,
java/awt/datatransfer/SystemFlavorMap.java,
java/awt/dnd/Autoscroll.java,
java/awt/dnd/DropTarget.java,
java/awt/dnd/DropTargetContext.java,
java/awt/dnd/DropTargetDragEvent.java,
java/awt/dnd/peer/DropTargetContextPeer.java,
java/awt/event/AdjustmentEvent.java,
java/awt/event/InputEvent.java,
java/awt/event/InvocationEvent.java,
java/awt/event/KeyEvent.java,
java/awt/event/MouseEvent.java,
java/awt/font/TextLayout.java,
java/awt/geom/GeneralPath.java,
java/awt/geom/Point2D.java,
java/awt/im/InputContext.java,
java/awt/im/spi/InputMethodContext.java,
java/awt/image/AffineTransformOp.java,
java/awt/image/BufferedImage.java,
java/awt/image/ColorModel.java,
java/awt/image/ComponentColorModel.java,
java/awt/image/CropImageFilter.java,
java/awt/image/DirectColorModel.java,
java/awt/image/MemoryImageSource.java,
java/awt/image/PackedColorModel.java,
java/awt/image/PixelGrabber.java,
java/awt/image/RasterOp.java,
java/awt/peer/MenuBarPeer.java:
Some fixes for checkstyle. Import statement and modifier order
redordering.
Diffstat (limited to 'java')
62 files changed, 309 insertions, 279 deletions
diff --git a/java/awt/AWTKeyStroke.java b/java/awt/AWTKeyStroke.java index 23ae92bf0..53e64b7fb 100644 --- a/java/awt/AWTKeyStroke.java +++ b/java/awt/AWTKeyStroke.java @@ -1,5 +1,5 @@ /* AWTKeyStroke.java -- an immutable key stroke - Copyright (C) 2002 Free Software Foundation + Copyright (C) 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -48,9 +48,9 @@ import java.security.AccessController; import java.security.PrivilegedAction; import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; -import java.util.Map; import java.util.HashMap; import java.util.LinkedHashMap; +import java.util.Map; import java.util.StringTokenizer; /** diff --git a/java/awt/Canvas.java b/java/awt/Canvas.java index 01e998ba1..1bb48e4de 100644 --- a/java/awt/Canvas.java +++ b/java/awt/Canvas.java @@ -1,4 +1,5 @@ -/* Copyright (C) 1999, 2000, 2002 Free Software Foundation +/* Canvas.java -- + Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -40,6 +41,7 @@ package java.awt; import java.awt.image.BufferStrategy; import java.awt.peer.ComponentPeer; import java.io.Serializable; + import javax.accessibility.Accessible; import javax.accessibility.AccessibleContext; import javax.accessibility.AccessibleRole; diff --git a/java/awt/CardLayout.java b/java/awt/CardLayout.java index fa4f4ec0f..6e17daab1 100644 --- a/java/awt/CardLayout.java +++ b/java/awt/CardLayout.java @@ -1,6 +1,5 @@ -// CardLayout.java - Card-based layout engine - -/* Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation +/* CardLayout.java -- Card-based layout engine + Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -39,9 +38,9 @@ exception statement from your version. */ package java.awt; +import java.io.Serializable; import java.util.Enumeration; import java.util.Hashtable; -import java.io.Serializable; /** This class implements a card-based layout scheme. Each included * component is treated as a card. Only one card can be shown at a diff --git a/java/awt/CheckboxMenuItem.java b/java/awt/CheckboxMenuItem.java index 75fc7404a..0630c302b 100644 --- a/java/awt/CheckboxMenuItem.java +++ b/java/awt/CheckboxMenuItem.java @@ -1,5 +1,5 @@ /* CheckboxMenuItem.java -- A menu option with a checkbox on it. - Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -41,7 +41,6 @@ package java.awt; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.peer.CheckboxMenuItemPeer; -import java.awt.peer.MenuItemPeer; import java.util.EventListener; /** diff --git a/java/awt/Component.java b/java/awt/Component.java index 2439c09d7..53a5cb5fd 100644 --- a/java/awt/Component.java +++ b/java/awt/Component.java @@ -1,5 +1,5 @@ /* Component.java -- a graphics component - Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation + Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -47,16 +47,16 @@ import java.awt.event.FocusListener; import java.awt.event.HierarchyBoundsListener; import java.awt.event.HierarchyEvent; import java.awt.event.HierarchyListener; -import java.awt.event.KeyEvent; -import java.awt.event.KeyListener; import java.awt.event.InputEvent; import java.awt.event.InputMethodEvent; import java.awt.event.InputMethodListener; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; -import java.awt.event.MouseWheelListener; import java.awt.event.MouseWheelEvent; +import java.awt.event.MouseWheelListener; import java.awt.event.PaintEvent; import java.awt.event.WindowEvent; import java.awt.im.InputContext; @@ -70,8 +70,8 @@ import java.awt.peer.ComponentPeer; import java.awt.peer.LightweightPeer; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; -import java.io.ObjectInputStream; import java.io.IOException; +import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.PrintStream; import java.io.PrintWriter; @@ -84,6 +84,7 @@ import java.util.Iterator; import java.util.Locale; import java.util.Set; import java.util.Vector; + import javax.accessibility.Accessible; import javax.accessibility.AccessibleComponent; import javax.accessibility.AccessibleContext; diff --git a/java/awt/Container.java b/java/awt/Container.java index dc94fe141..88ebe1dde 100644 --- a/java/awt/Container.java +++ b/java/awt/Container.java @@ -35,28 +35,29 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package java.awt; -import java.awt.event.AWTEventListener; import java.awt.event.ContainerEvent; import java.awt.event.ContainerListener; -import java.awt.event.MouseEvent; import java.awt.event.KeyEvent; +import java.awt.event.MouseEvent; import java.awt.peer.ContainerPeer; import java.awt.peer.LightweightPeer; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; -import java.io.ObjectInputStream; import java.io.IOException; +import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.PrintStream; import java.io.PrintWriter; import java.io.Serializable; import java.util.Collections; import java.util.EventListener; -import java.util.Iterator; import java.util.HashSet; +import java.util.Iterator; import java.util.Set; + import javax.accessibility.Accessible; import javax.swing.SwingUtilities; diff --git a/java/awt/DefaultKeyboardFocusManager.java b/java/awt/DefaultKeyboardFocusManager.java index e1e1ed271..3c0c30aa0 100644 --- a/java/awt/DefaultKeyboardFocusManager.java +++ b/java/awt/DefaultKeyboardFocusManager.java @@ -1,5 +1,5 @@ /* DefaultKeyboardFocusManager.java -- - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,8 +38,15 @@ exception statement from your version. */ package java.awt; -import java.util.*; -import java.awt.event.*; +import java.awt.event.ActionEvent; +import java.awt.event.FocusEvent; +import java.awt.event.KeyEvent; +import java.awt.event.WindowEvent; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.Set; +import java.util.SortedSet; +import java.util.TreeSet; // FIXME: finish documentation public class DefaultKeyboardFocusManager extends KeyboardFocusManager diff --git a/java/awt/EventDispatchThread.java b/java/awt/EventDispatchThread.java index 89b609557..097cc001b 100644 --- a/java/awt/EventDispatchThread.java +++ b/java/awt/EventDispatchThread.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2000, 2002 Free Software Foundation +/* EventDispatchThread.java - + Copyright (C) 2000, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -34,12 +35,12 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ -/** @author Bryce McKinlay */ - -/* Status: believed complete, but untested. */ - package java.awt; +/** + * @author Bryce McKinlay + * @status believed complete, but untested. + */ class EventDispatchThread extends Thread { private static int dispatchThreadNum = 1; diff --git a/java/awt/FileDialog.java b/java/awt/FileDialog.java index 854d092f0..1af1de3b7 100644 --- a/java/awt/FileDialog.java +++ b/java/awt/FileDialog.java @@ -1,5 +1,5 @@ /* FileDialog.java -- A filename selection dialog box - Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -39,7 +39,6 @@ exception statement from your version. */ package java.awt; import java.awt.peer.FileDialogPeer; -import java.awt.peer.DialogPeer; import java.io.FilenameFilter; import java.io.Serializable; diff --git a/java/awt/FlowLayout.java b/java/awt/FlowLayout.java index 98d74941e..a06d16611 100644 --- a/java/awt/FlowLayout.java +++ b/java/awt/FlowLayout.java @@ -1,6 +1,5 @@ -// FlowLayout.java - Grid-based layout engine - -/* Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation +/* FlowLayout.java -- Grid-based layout engine + Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -47,7 +46,7 @@ import java.io.Serializable; * supports horizontal and vertical gaps. These are used for spacing * between components. * - * @author Tom Tromey <tromey@redhat.com> + * @author Tom Tromey (tromey@redhat.com) * @author Aaron M. Renn (arenn@urbanophile.com) */ public class FlowLayout implements LayoutManager, Serializable diff --git a/java/awt/Font.java b/java/awt/Font.java index 754e078d7..25a1d925b 100644 --- a/java/awt/Font.java +++ b/java/awt/Font.java @@ -38,35 +38,34 @@ exception statement from your version. */ package java.awt; +import gnu.java.awt.ClasspathToolkit; +import gnu.java.awt.peer.ClasspathFontPeer; + import java.awt.font.FontRenderContext; import java.awt.font.GlyphVector; import java.awt.font.LineMetrics; import java.awt.font.TextAttribute; -import java.awt.font.TransformAttribute; import java.awt.geom.AffineTransform; import java.awt.geom.Rectangle2D; import java.awt.peer.FontPeer; -import java.io.InputStream; import java.io.IOException; +import java.io.InputStream; import java.io.Serializable; +import java.text.AttributedCharacterIterator; +import java.text.CharacterIterator; +import java.text.StringCharacterIterator; +import java.util.HashMap; import java.util.Locale; import java.util.Map; -import java.util.HashMap; import java.util.StringTokenizer; -import java.text.CharacterIterator; -import java.text.AttributedCharacterIterator; -import java.text.StringCharacterIterator; - -import gnu.java.awt.ClasspathToolkit; -import gnu.java.awt.peer.ClasspathFontPeer; /** - * This class represents a windowing system font. - * - * @author Aaron M. Renn (arenn@urbanophile.com) - * @author Warren Levy <warrenl@cygnus.com> - * @author Graydon Hoare <graydon@redhat.com> - */ + * This class represents a windowing system font. + * + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Warren Levy (warrenl@cygnus.com) + * @author Graydon Hoare (graydon@redhat.com) + */ public class Font implements Serializable { diff --git a/java/awt/Frame.java b/java/awt/Frame.java index 358d88fa3..42d85bc79 100644 --- a/java/awt/Frame.java +++ b/java/awt/Frame.java @@ -39,7 +39,6 @@ exception statement from your version. */ package java.awt; import java.awt.peer.FramePeer; -import java.util.Enumeration; import java.util.Vector; /** diff --git a/java/awt/Graphics2D.java b/java/awt/Graphics2D.java index b35f08aa8..e16c2d8fb 100644 --- a/java/awt/Graphics2D.java +++ b/java/awt/Graphics2D.java @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2002 Free Software Foundation +/* Copyright (C) 2000, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -34,6 +34,7 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package java.awt; import java.awt.font.FontRenderContext; @@ -41,12 +42,10 @@ import java.awt.font.GlyphVector; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.awt.image.BufferedImageOp; -import java.awt.image.RenderedImage; import java.awt.image.ImageObserver; +import java.awt.image.RenderedImage; import java.awt.image.renderable.RenderableImage; - import java.text.AttributedCharacterIterator; - import java.util.Map; /** diff --git a/java/awt/GraphicsEnvironment.java b/java/awt/GraphicsEnvironment.java index 2b4ce5128..b963f4bab 100644 --- a/java/awt/GraphicsEnvironment.java +++ b/java/awt/GraphicsEnvironment.java @@ -1,5 +1,5 @@ /* GraphicsEnvironment.java -- information about the graphics environment - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,16 +38,17 @@ exception statement from your version. */ package java.awt; +import gnu.java.awt.ClasspathToolkit; + import java.awt.image.BufferedImage; import java.util.Locale; -import gnu.java.awt.ClasspathToolkit; /** * This descibes the collection of GraphicsDevice and Font objects available * on a given platform. The resources might be local or remote, and specify * the valid configurations for displaying graphics. * - * @author Eric Blake <ebb9@email.byu.edu> + * @author Eric Blake (ebb9@email.byu.edu) * @see GraphicsDevice * @see GraphicsConfiguration * @since 1.4 diff --git a/java/awt/GridBagConstraints.java b/java/awt/GridBagConstraints.java index 651cfdc19..2795b9ed9 100644 --- a/java/awt/GridBagConstraints.java +++ b/java/awt/GridBagConstraints.java @@ -1,6 +1,5 @@ -// GridBagConstraints.java - Constraints for GridBag layout manager - -/* Copyright (C) 2000, 2001, 2002 Free Software Foundation +/* GridBagConstraints.java -- Constraints for GridBag layout manager + Copyright (C) 2000, 2001, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -41,8 +40,10 @@ package java.awt; import java.io.Serializable; -/** This specifies the constraints for a component managed by the - * GridBagLayout layout manager. */ +/** + * This specifies the constraints for a component managed by the + * GridBagLayout layout manager. + */ public class GridBagConstraints implements Cloneable, Serializable { static final long serialVersionUID = -1000070633030801713L; diff --git a/java/awt/GridBagLayout.java b/java/awt/GridBagLayout.java index 1239f2cf7..85fdfb56e 100644 --- a/java/awt/GridBagLayout.java +++ b/java/awt/GridBagLayout.java @@ -1,5 +1,5 @@ /* GridBagLayout - Layout manager for components according to GridBagConstraints - Copyright (C) 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -40,8 +40,8 @@ package java.awt; import java.io.Serializable; import java.util.ArrayList; -import java.util.Hashtable; import java.util.HashMap; +import java.util.Hashtable; /** * @author Michael Koch <konqueror@gmx.de> diff --git a/java/awt/GridLayout.java b/java/awt/GridLayout.java index a8befc4c0..b98102d46 100644 --- a/java/awt/GridLayout.java +++ b/java/awt/GridLayout.java @@ -1,6 +1,5 @@ -// GridLayout.java - Grid-based layout engine - -/* Copyright (C) 1999, 2000, 2002 Free Software Foundation +/* GridLayout.java -- Grid-based layout engine + Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. diff --git a/java/awt/Image.java b/java/awt/Image.java index 451b092e6..37617719b 100644 --- a/java/awt/Image.java +++ b/java/awt/Image.java @@ -1,5 +1,5 @@ /* Image.java -- superclass for images - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,7 +38,6 @@ exception statement from your version. */ package java.awt; -import java.awt.image.AreaAveragingScaleFilter; import java.awt.image.FilteredImageSource; import java.awt.image.ImageObserver; import java.awt.image.ImageProducer; diff --git a/java/awt/KeyboardFocusManager.java b/java/awt/KeyboardFocusManager.java index 8b530d80b..07c571f7d 100644 --- a/java/awt/KeyboardFocusManager.java +++ b/java/awt/KeyboardFocusManager.java @@ -1,5 +1,5 @@ /* KeyboardFocusManager.java -- manage component focusing via the keyboard - Copyright (C) 2002 Free Software Foundation + Copyright (C) 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -38,8 +38,8 @@ exception statement from your version. */ package java.awt; -import java.awt.event.KeyEvent; import java.awt.event.FocusEvent; +import java.awt.event.KeyEvent; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; import java.beans.PropertyVetoException; diff --git a/java/awt/Label.java b/java/awt/Label.java index 05df98a74..a98812ce8 100644 --- a/java/awt/Label.java +++ b/java/awt/Label.java @@ -1,5 +1,5 @@ /* Label.java -- Java label widget - Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -39,6 +39,7 @@ exception statement from your version. */ package java.awt; import java.awt.peer.LabelPeer; + import javax.accessibility.Accessible; import javax.accessibility.AccessibleContext; import javax.accessibility.AccessibleRole; diff --git a/java/awt/List.java b/java/awt/List.java index 47177edc7..d79bcf6fb 100644 --- a/java/awt/List.java +++ b/java/awt/List.java @@ -1,5 +1,5 @@ /* List.java -- A listbox widget - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -45,6 +45,7 @@ import java.awt.event.ItemListener; import java.awt.peer.ListPeer; import java.util.EventListener; import java.util.Vector; + import javax.accessibility.Accessible; /** diff --git a/java/awt/MediaTracker.java b/java/awt/MediaTracker.java index d1df8b383..e69832d11 100644 --- a/java/awt/MediaTracker.java +++ b/java/awt/MediaTracker.java @@ -1,5 +1,5 @@ /* MediaTracker.java -- Class used for keeping track of images - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002i, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,8 +38,8 @@ exception statement from your version. */ package java.awt; -import java.util.ArrayList; import java.awt.image.ImageObserver; +import java.util.ArrayList; /** * This class is used for keeping track of the status of various media diff --git a/java/awt/Menu.java b/java/awt/Menu.java index 2e17c66d5..33391525a 100644 --- a/java/awt/Menu.java +++ b/java/awt/Menu.java @@ -40,8 +40,8 @@ package java.awt; import java.awt.peer.MenuPeer; import java.io.Serializable; -import java.util.Vector; import java.util.Enumeration; +import java.util.Vector; /** * This class represents a pull down or tear off menu in Java's AWT. diff --git a/java/awt/MenuComponent.java b/java/awt/MenuComponent.java index 90fd3bf54..78adfaea6 100644 --- a/java/awt/MenuComponent.java +++ b/java/awt/MenuComponent.java @@ -1,5 +1,5 @@ /* MenuComponent.java -- Superclass of all AWT menu components - Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -43,6 +43,7 @@ import java.awt.event.FocusListener; import java.awt.peer.MenuComponentPeer; import java.io.Serializable; import java.util.Locale; + import javax.accessibility.Accessible; import javax.accessibility.AccessibleComponent; import javax.accessibility.AccessibleContext; diff --git a/java/awt/Panel.java b/java/awt/Panel.java index e66db99fd..1795540ea 100644 --- a/java/awt/Panel.java +++ b/java/awt/Panel.java @@ -1,5 +1,5 @@ /* Panel.java -- Simple container object - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -46,8 +46,8 @@ import javax.accessibility.AccessibleRole; * A panel is a simple container class. It's default layout is the * <code>FlowLayout</code> manager. * - * @author Aaron M. Renn <arenn@urbanophile.com> - * @author Eric Blake <ebb9@email.byu.edu> + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Eric Blake (ebb9@email.byu.edu) * @see FlowLayout * @since 1.0 * @status updated to 1.4 diff --git a/java/awt/PopupMenu.java b/java/awt/PopupMenu.java index 83ffb35a8..fd953c328 100644 --- a/java/awt/PopupMenu.java +++ b/java/awt/PopupMenu.java @@ -1,5 +1,5 @@ /* PopupMenu.java -- An AWT popup menu - Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,7 +38,6 @@ exception statement from your version. */ package java.awt; -import java.awt.peer.MenuPeer; import java.awt.peer.PopupMenuPeer; /** diff --git a/java/awt/ScrollPane.java b/java/awt/ScrollPane.java index 457df0c0e..abd5514d8 100644 --- a/java/awt/ScrollPane.java +++ b/java/awt/ScrollPane.java @@ -1,5 +1,5 @@ /* ScrollPane.java -- Scrolling window - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -41,6 +41,7 @@ package java.awt; import java.awt.event.MouseEvent; import java.awt.peer.ComponentPeer; import java.awt.peer.ScrollPanePeer; + import javax.accessibility.Accessible; /** diff --git a/java/awt/Scrollbar.java b/java/awt/Scrollbar.java index a01dc3ccd..d09a1682a 100644 --- a/java/awt/Scrollbar.java +++ b/java/awt/Scrollbar.java @@ -1,5 +1,6 @@ /* Scrollbar.java -- AWT Scrollbar widget - Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 + Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,10 +39,11 @@ exception statement from your version. */ package java.awt; -import java.awt.event.AdjustmentListener; import java.awt.event.AdjustmentEvent; +import java.awt.event.AdjustmentListener; import java.awt.peer.ScrollbarPeer; import java.util.EventListener; + import javax.accessibility.Accessible; /** diff --git a/java/awt/SystemColor.java b/java/awt/SystemColor.java index d8b928e84..3428fba3c 100644 --- a/java/awt/SystemColor.java +++ b/java/awt/SystemColor.java @@ -1,5 +1,5 @@ /* SystemColor.java -- access dynamic system color values - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,9 +38,9 @@ exception statement from your version. */ package java.awt; -import java.awt.image.ColorModel; import java.awt.geom.AffineTransform; import java.awt.geom.Rectangle2D; +import java.awt.image.ColorModel; import java.io.Serializable; /** diff --git a/java/awt/TextArea.java b/java/awt/TextArea.java index 6355376df..ad246dede 100644 --- a/java/awt/TextArea.java +++ b/java/awt/TextArea.java @@ -1,45 +1,46 @@ /* TextArea.java -- A multi-line text entry component Copyright (C) 1999, 2004 Free Software Foundation, Inc. - This file is part of GNU Classpath. - - GNU Classpath is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - GNU Classpath is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with GNU Classpath; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. - - Linking this library statically or dynamically with other modules is - making a combined work based on this library. Thus, the terms and - conditions of the GNU General Public License cover the whole - combination. - - As a special exception, the copyright holders of this library give you - permission to link this library with independent modules to produce an - executable, regardless of the license terms of these independent - modules, and to copy and distribute the resulting executable under - terms of your choice, provided that you also meet, for each linked - independent module, the terms and conditions of the license of that - module. An independent module is a module which is not derived from - or based on this library. If you modify this library, you may extend - this exception to your version of the library, but you are not - obligated to do so. If you do not wish to do so, delete this - exception statement from your version. */ +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + package java.awt; +import java.awt.event.KeyEvent; import java.awt.peer.ComponentPeer; import java.awt.peer.TextAreaPeer; -import java.awt.event.KeyEvent; import java.util.HashSet; import java.util.Set; diff --git a/java/awt/TextField.java b/java/awt/TextField.java index 1a783e27a..65a4790a9 100644 --- a/java/awt/TextField.java +++ b/java/awt/TextField.java @@ -1,5 +1,5 @@ /* TextField.java -- A one line text entry field - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -40,8 +40,8 @@ package java.awt; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import java.awt.peer.TextFieldPeer; import java.awt.peer.ComponentPeer; +import java.awt.peer.TextFieldPeer; import java.util.EventListener; /** diff --git a/java/awt/Toolkit.java b/java/awt/Toolkit.java index 2ee3f5089..b125263eb 100644 --- a/java/awt/Toolkit.java +++ b/java/awt/Toolkit.java @@ -53,8 +53,8 @@ import java.awt.image.ImageObserver; import java.awt.image.ImageProducer; import java.awt.peer.ButtonPeer; import java.awt.peer.CanvasPeer; -import java.awt.peer.CheckboxPeer; import java.awt.peer.CheckboxMenuItemPeer; +import java.awt.peer.CheckboxPeer; import java.awt.peer.ChoicePeer; import java.awt.peer.DialogPeer; import java.awt.peer.FileDialogPeer; @@ -63,13 +63,13 @@ import java.awt.peer.FramePeer; import java.awt.peer.LabelPeer; import java.awt.peer.LightweightPeer; import java.awt.peer.ListPeer; -import java.awt.peer.MenuPeer; import java.awt.peer.MenuBarPeer; import java.awt.peer.MenuItemPeer; +import java.awt.peer.MenuPeer; import java.awt.peer.PanelPeer; import java.awt.peer.PopupMenuPeer; -import java.awt.peer.ScrollbarPeer; import java.awt.peer.ScrollPanePeer; +import java.awt.peer.ScrollbarPeer; import java.awt.peer.TextAreaPeer; import java.awt.peer.TextFieldPeer; import java.awt.peer.WindowPeer; diff --git a/java/awt/Window.java b/java/awt/Window.java index d19c8406c..b265da25e 100644 --- a/java/awt/Window.java +++ b/java/awt/Window.java @@ -1,5 +1,5 @@ /* Window.java -- - Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation + Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -48,11 +48,12 @@ import java.awt.event.WindowStateListener; import java.awt.peer.WindowPeer; import java.lang.ref.Reference; import java.lang.ref.WeakReference; -import java.util.Iterator; import java.util.EventListener; +import java.util.Iterator; import java.util.Locale; import java.util.ResourceBundle; import java.util.Vector; + import javax.accessibility.Accessible; import javax.accessibility.AccessibleContext; diff --git a/java/awt/color/ICC_Profile.java b/java/awt/color/ICC_Profile.java index eb534ebff..b9ea5ed9f 100644 --- a/java/awt/color/ICC_Profile.java +++ b/java/awt/color/ICC_Profile.java @@ -40,8 +40,8 @@ package java.awt.color; import java.io.FileInputStream; import java.io.FileOutputStream; -import java.io.InputStream; import java.io.IOException; +import java.io.InputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.ObjectStreamException; diff --git a/java/awt/datatransfer/DataFlavor.java b/java/awt/datatransfer/DataFlavor.java index 3ec219119..7a9eb7169 100644 --- a/java/awt/datatransfer/DataFlavor.java +++ b/java/awt/datatransfer/DataFlavor.java @@ -39,11 +39,11 @@ exception statement from your version. */ package java.awt.datatransfer; import java.io.ByteArrayInputStream; +import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; -import java.io.IOException; -import java.io.ObjectOutput; import java.io.ObjectInput; +import java.io.ObjectOutput; import java.io.Reader; import java.io.StringReader; import java.io.UnsupportedEncodingException; diff --git a/java/awt/datatransfer/StringSelection.java b/java/awt/datatransfer/StringSelection.java index 51addb729..7d27db034 100644 --- a/java/awt/datatransfer/StringSelection.java +++ b/java/awt/datatransfer/StringSelection.java @@ -1,5 +1,5 @@ /* StringSelection.java -- Clipboard handler for text. - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,8 +38,8 @@ exception statement from your version. */ package java.awt.datatransfer; -import java.io.StringReader; import java.io.IOException; +import java.io.StringReader; /** * This class transfers a string as plain text using the clipboard. diff --git a/java/awt/datatransfer/SystemFlavorMap.java b/java/awt/datatransfer/SystemFlavorMap.java index 7d914120e..826992b7c 100644 --- a/java/awt/datatransfer/SystemFlavorMap.java +++ b/java/awt/datatransfer/SystemFlavorMap.java @@ -1,5 +1,5 @@ /* SystemFlavorMap.java -- Maps between native flavor names and MIME types. - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -39,8 +39,8 @@ exception statement from your version. */ package java.awt.datatransfer; import java.util.HashMap; -import java.util.Map; import java.util.List; +import java.util.Map; /** * This class maps between native platform type names and DataFlavors. diff --git a/java/awt/dnd/Autoscroll.java b/java/awt/dnd/Autoscroll.java index 5c5233874..ae868c077 100644 --- a/java/awt/dnd/Autoscroll.java +++ b/java/awt/dnd/Autoscroll.java @@ -1,5 +1,5 @@ /* Autoscroll.java -- - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,10 +35,11 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package java.awt.dnd; -import java.awt.Point; import java.awt.Insets; +import java.awt.Point; /** * During DnD operations it is possible that a user may wish to drop the diff --git a/java/awt/dnd/DropTarget.java b/java/awt/dnd/DropTarget.java index 4063e206a..7379ca71c 100644 --- a/java/awt/dnd/DropTarget.java +++ b/java/awt/dnd/DropTarget.java @@ -1,5 +1,5 @@ /* DropTarget.java -- - Copyright (C) 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,12 +35,13 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package java.awt.dnd; -import java.awt.Point; import java.awt.Component; import java.awt.GraphicsEnvironment; import java.awt.HeadlessException; +import java.awt.Point; import java.awt.datatransfer.FlavorMap; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; diff --git a/java/awt/dnd/DropTargetContext.java b/java/awt/dnd/DropTargetContext.java index 4301fbccc..d61785545 100644 --- a/java/awt/dnd/DropTargetContext.java +++ b/java/awt/dnd/DropTargetContext.java @@ -1,5 +1,5 @@ /* DropTargetContext.java -- - Copyright (C) 2002, 2003 Free Software Foundation + Copyright (C) 2002, 2003, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -37,13 +37,12 @@ exception statement from your version. */ package java.awt.dnd; -import java.awt.dnd.peer.DropTargetContextPeer; -import java.io.Serializable; -import java.io.IOException; import java.awt.Component; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.Transferable; import java.awt.datatransfer.UnsupportedFlavorException; +import java.io.IOException; +import java.io.Serializable; import java.util.Arrays; import java.util.List; diff --git a/java/awt/dnd/DropTargetDragEvent.java b/java/awt/dnd/DropTargetDragEvent.java index e95b2d1ae..d4a13ea46 100644 --- a/java/awt/dnd/DropTargetDragEvent.java +++ b/java/awt/dnd/DropTargetDragEvent.java @@ -1,5 +1,5 @@ /* DropTargetDragEvent.java -- - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,11 +35,12 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package java.awt.dnd; -import java.util.List; import java.awt.Point; import java.awt.datatransfer.DataFlavor; +import java.util.List; /** * @since 1.2 diff --git a/java/awt/dnd/peer/DropTargetContextPeer.java b/java/awt/dnd/peer/DropTargetContextPeer.java index 239a43778..a2e3ba218 100644 --- a/java/awt/dnd/peer/DropTargetContextPeer.java +++ b/java/awt/dnd/peer/DropTargetContextPeer.java @@ -1,5 +1,5 @@ /* DropTargetContextPeer.java -- interface for drag-and-drop peers - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,11 +35,12 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package java.awt.dnd.peer; -import java.awt.dnd.DropTarget; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.Transferable; +import java.awt.dnd.DropTarget; import java.awt.dnd.InvalidDnDOperationException; diff --git a/java/awt/event/AdjustmentEvent.java b/java/awt/event/AdjustmentEvent.java index 48b208b5d..623dab5ea 100644 --- a/java/awt/event/AdjustmentEvent.java +++ b/java/awt/event/AdjustmentEvent.java @@ -1,5 +1,5 @@ /* AdjustmentEvent.java -- an adjustable value was changed - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,8 +38,8 @@ exception statement from your version. */ package java.awt.event; -import java.awt.Adjustable; import java.awt.AWTEvent; +import java.awt.Adjustable; /** * This class represents an event that is generated when an adjustable diff --git a/java/awt/event/InputEvent.java b/java/awt/event/InputEvent.java index 1689e5114..169982cd2 100644 --- a/java/awt/event/InputEvent.java +++ b/java/awt/event/InputEvent.java @@ -1,5 +1,5 @@ /* InputEvent.java -- common superclass of component input events - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,9 +38,10 @@ exception statement from your version. */ package java.awt.event; -import java.awt.Component; import gnu.java.awt.EventModifier; +import java.awt.Component; + /** * This is the common superclass for all component input classes. These are * passed to listeners before the component, so that listeners can consume diff --git a/java/awt/event/InvocationEvent.java b/java/awt/event/InvocationEvent.java index 76d4a5582..fb58595c7 100644 --- a/java/awt/event/InvocationEvent.java +++ b/java/awt/event/InvocationEvent.java @@ -1,5 +1,5 @@ /* InvocationEvent.java -- call a runnable when dispatched - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,8 +38,8 @@ exception statement from your version. */ package java.awt.event; -import java.awt.ActiveEvent; import java.awt.AWTEvent; +import java.awt.ActiveEvent; import java.awt.EventQueue; /** diff --git a/java/awt/event/KeyEvent.java b/java/awt/event/KeyEvent.java index 455d7ee52..7212c0c97 100644 --- a/java/awt/event/KeyEvent.java +++ b/java/awt/event/KeyEvent.java @@ -1,5 +1,5 @@ /* KeyEvent.java -- event for key presses - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,10 +38,11 @@ exception statement from your version. */ package java.awt.event; +import gnu.java.awt.EventModifier; + import java.awt.Component; import java.io.IOException; import java.io.ObjectInputStream; -import gnu.java.awt.EventModifier; /** * This event is generated when a key is pressed or released. There are two diff --git a/java/awt/event/MouseEvent.java b/java/awt/event/MouseEvent.java index ac8804c24..7f3e014a2 100644 --- a/java/awt/event/MouseEvent.java +++ b/java/awt/event/MouseEvent.java @@ -1,5 +1,5 @@ /* MouseEvent.java -- a mouse event - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,11 +38,12 @@ exception statement from your version. */ package java.awt.event; +import gnu.java.awt.EventModifier; + import java.awt.Component; import java.awt.Point; import java.io.IOException; import java.io.ObjectInputStream; -import gnu.java.awt.EventModifier; /** * This event is generated for a mouse event. There are three main categories diff --git a/java/awt/font/TextLayout.java b/java/awt/font/TextLayout.java index b58b5a583..aecbbe085 100644 --- a/java/awt/font/TextLayout.java +++ b/java/awt/font/TextLayout.java @@ -1,5 +1,5 @@ /* TextLayout.java - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -43,12 +43,10 @@ import java.awt.Graphics2D; import java.awt.Shape; import java.awt.geom.AffineTransform; import java.awt.geom.Rectangle2D; -import java.text.CharacterIterator; import java.text.AttributedCharacterIterator; import java.text.AttributedString; +import java.text.CharacterIterator; import java.util.Map; -import java.awt.font.TextAttribute; - /** * @author Michael Koch diff --git a/java/awt/geom/GeneralPath.java b/java/awt/geom/GeneralPath.java index 2131c2443..dfedb65bb 100644 --- a/java/awt/geom/GeneralPath.java +++ b/java/awt/geom/GeneralPath.java @@ -1,39 +1,40 @@ /* GeneralPath.java -- represents a shape built from subpaths Copyright (C) 2002, 2003, 2004 Free Software Foundation - This file is part of GNU Classpath. - - GNU Classpath is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - GNU Classpath is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with GNU Classpath; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. - - Linking this library statically or dynamically with other modules is - making a combined work based on this library. Thus, the terms and - conditions of the GNU General Public License cover the whole - combination. - - As a special exception, the copyright holders of this library give you - permission to link this library with independent modules to produce an - executable, regardless of the license terms of these independent - modules, and to copy and distribute the resulting executable under - terms of your choice, provided that you also meet, for each linked - independent module, the terms and conditions of the license of that - module. An independent module is a module which is not derived from - or based on this library. If you modify this library, you may extend - this exception to your version of the library, but you are not - obligated to do so. If you do not wish to do so, delete this - exception statement from your version. */ +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + package java.awt.geom; diff --git a/java/awt/geom/Point2D.java b/java/awt/geom/Point2D.java index 32c2e3d18..d27505fa4 100644 --- a/java/awt/geom/Point2D.java +++ b/java/awt/geom/Point2D.java @@ -1,5 +1,5 @@ /* Point2D.java -- generic point in 2-D space - Copyright (C) 1999, 2000, 2002 Free Software Foundation + Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -35,6 +35,7 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package java.awt.geom; /** @@ -42,8 +43,8 @@ package java.awt.geom; * representation is left up to the subclass. Point includes two useful * nested classes, for float and double storage respectively. * - * @author Per Bothner <bothner@cygnus.com> - * @author Eric Blake <ebb9@email.byu.edu> + * @author Per Bothner (bothner@cygnus.com) + * @author Eric Blake (ebb9@email.byu.edu) * @since 1.2 * @status updated to 1.4 */ @@ -120,7 +121,7 @@ public abstract class Point2D implements Cloneable * @param y2 the y coordinate of point 2 * @return the distance from (x1,y1) to (x2,y2) */ - static public double distance(double x1, double y1, double x2, double y2) + public static double distance(double x1, double y1, double x2, double y2) { return Math.sqrt(distanceSq(x1, y1, x2, y2)); } diff --git a/java/awt/im/InputContext.java b/java/awt/im/InputContext.java index c8e7cf35a..fc068c241 100644 --- a/java/awt/im/InputContext.java +++ b/java/awt/im/InputContext.java @@ -1,5 +1,5 @@ /* InputContext.java -- provides the context for text input - Copyright (C) 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,22 +35,24 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package java.awt.im; +import gnu.java.util.EmptyEnumeration; + import java.awt.AWTEvent; import java.awt.AWTException; import java.awt.Component; import java.awt.im.spi.InputMethod; import java.awt.im.spi.InputMethodDescriptor; import java.io.BufferedReader; -import java.io.InputStreamReader; import java.io.IOException; +import java.io.InputStreamReader; import java.net.URL; import java.util.ArrayList; import java.util.Enumeration; import java.util.HashMap; import java.util.Locale; -import gnu.java.util.EmptyEnumeration; /** * Provides a context for controlling input methods and keyboard layouts. diff --git a/java/awt/im/spi/InputMethodContext.java b/java/awt/im/spi/InputMethodContext.java index 6243ffa34..a2ea4759c 100644 --- a/java/awt/im/spi/InputMethodContext.java +++ b/java/awt/im/spi/InputMethodContext.java @@ -1,5 +1,5 @@ /* InputMethodContext.java -- communication between an input method and client - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,13 +35,14 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package java.awt.im.spi; -import java.awt.HeadlessException; import java.awt.Window; import java.awt.font.TextHitInfo; import java.awt.im.InputMethodRequests; import java.text.AttributedCharacterIterator; + import javax.swing.JFrame; /** @@ -49,7 +50,7 @@ import javax.swing.JFrame; * and the client component. This should be passed to * {@link InputMethod#setInputMethodContext(InputMethodContext)}. * - * @author Eric Blake <ebb9@email.byu.edu> + * @author Eric Blake (ebb9@email.byu.edu) * @since 1.3 * @status updated to 1.4 */ diff --git a/java/awt/image/AffineTransformOp.java b/java/awt/image/AffineTransformOp.java index 6219635fa..45a896b31 100644 --- a/java/awt/image/AffineTransformOp.java +++ b/java/awt/image/AffineTransformOp.java @@ -1,6 +1,6 @@ /* AffineTransformOp.java -- This class performs affine - * transformation between two images or rasters in 2 - * dimensions. Copyright (C) 2004 Free Software Foundation + transformation between two images or rasters in 2 dimensions. + Copyright (C) 2004 Free Software Foundation This file is part of GNU Classpath. @@ -38,11 +38,12 @@ exception statement from your version. */ package java.awt.image; -import java.awt.*; -import java.awt.Graphics; import java.awt.Graphics2D; -import java.awt.geom.*; - +import java.awt.Rectangle; +import java.awt.RenderingHints; +import java.awt.geom.AffineTransform; +import java.awt.geom.Point2D; +import java.awt.geom.Rectangle2D; /** * This class performs affine transformation between two images or diff --git a/java/awt/image/BufferedImage.java b/java/awt/image/BufferedImage.java index b18779af1..723eeeb77 100644 --- a/java/awt/image/BufferedImage.java +++ b/java/awt/image/BufferedImage.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2000, 2002, 2003 Free Software Foundation +/* BufferedImage.java -- + Copyright (C) 2000, 2002, 2003, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -37,6 +38,8 @@ exception statement from your version. */ package java.awt.image; +import gnu.java.awt.ComponentDataBlitOp; + import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.GraphicsEnvironment; @@ -45,11 +48,10 @@ import java.awt.Point; import java.awt.Rectangle; import java.awt.Transparency; import java.awt.color.ColorSpace; -import java.util.Hashtable; -import java.util.Vector; import java.util.HashSet; +import java.util.Hashtable; import java.util.Iterator; -import gnu.java.awt.ComponentDataBlitOp; +import java.util.Vector; /** * A buffered image always starts at coordinates (0, 0). @@ -59,7 +61,7 @@ import gnu.java.awt.ComponentDataBlitOp; * height of the image. This tile is always considered to be checked * out. * - * @author Rolf W. Rasmussen <rolfwr@ii.uib.no> + * @author Rolf W. Rasmussen (rolfwr@ii.uib.no) */ public class BufferedImage extends Image implements WritableRenderedImage @@ -79,20 +81,20 @@ public class BufferedImage extends Image TYPE_BYTE_BINARY = 12, TYPE_BYTE_INDEXED = 13; - final static int[] bits3 = { 8, 8, 8 }; - final static int[] bits4 = { 8, 8, 8 }; - final static int[] bits1byte = { 8 }; - final static int[] bits1ushort = { 16 }; + static final int[] bits3 = { 8, 8, 8 }; + static final int[] bits4 = { 8, 8, 8 }; + static final int[] bits1byte = { 8 }; + static final int[] bits1ushort = { 16 }; - final static int[] masks_int = { 0x00ff0000, + static final int[] masks_int = { 0x00ff0000, 0x0000ff00, 0x000000ff, DataBuffer.TYPE_INT }; - final static int[] masks_565 = { 0xf800, + static final int[] masks_565 = { 0xf800, 0x07e0, 0x001f, DataBuffer.TYPE_USHORT}; - final static int[] masks_555 = { 0x7c00, + static final int[] masks_555 = { 0x7c00, 0x03e0, 0x001f, DataBuffer.TYPE_USHORT}; diff --git a/java/awt/image/ColorModel.java b/java/awt/image/ColorModel.java index 231da633f..238bec1de 100644 --- a/java/awt/image/ColorModel.java +++ b/java/awt/image/ColorModel.java @@ -1,4 +1,5 @@ -/* Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation +/* ColorModel.java -- + Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -37,11 +38,12 @@ exception statement from your version. */ package java.awt.image; -import java.util.Arrays; +import gnu.java.awt.Buffers; + import java.awt.Point; import java.awt.Transparency; import java.awt.color.ColorSpace; -import gnu.java.awt.Buffers; +import java.util.Arrays; /** * A color model operates with colors in several formats: @@ -76,8 +78,8 @@ import gnu.java.awt.Buffers; * * </ul> * - * @author Rolf W. Rasmussen <rolfwr@ii.uib.no> - * @author C. Brian Jones <cbj@gnu.org> + * @author Rolf W. Rasmussen (rolfwr@ii.uib.no) + * @author C. Brian Jones (cbj@gnu.org) */ public abstract class ColorModel implements Transparency { diff --git a/java/awt/image/ComponentColorModel.java b/java/awt/image/ComponentColorModel.java index 805942331..3b3447953 100644 --- a/java/awt/image/ComponentColorModel.java +++ b/java/awt/image/ComponentColorModel.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2000, 2002, 2004 Free Software Foundation +/* ComponentColorModel.java -- + Copyright (C) 2000, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -37,9 +38,10 @@ exception statement from your version. */ package java.awt.image; +import gnu.java.awt.Buffers; + import java.awt.Point; import java.awt.color.ColorSpace; -import gnu.java.awt.Buffers; public class ComponentColorModel extends ColorModel { diff --git a/java/awt/image/CropImageFilter.java b/java/awt/image/CropImageFilter.java index c9a170b9b..a006d26d8 100644 --- a/java/awt/image/CropImageFilter.java +++ b/java/awt/image/CropImageFilter.java @@ -1,5 +1,5 @@ /* CropImageFilter.java -- Java class for cropping image filter - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,11 +38,10 @@ exception statement from your version. */ package java.awt.image; -import java.util.Hashtable; import java.awt.Rectangle; +import java.util.Hashtable; /** - * <br> * Currently this filter does almost nothing and needs to be implemented. * * @author C. Brian Jones (cbj@gnu.org) diff --git a/java/awt/image/DirectColorModel.java b/java/awt/image/DirectColorModel.java index 3ac43cf25..7fa6e8974 100644 --- a/java/awt/image/DirectColorModel.java +++ b/java/awt/image/DirectColorModel.java @@ -1,4 +1,5 @@ -/* Copyright (C) 1999, 2000, 2002 Free Software Foundation +/* DirectColorModel.java -- + Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -37,13 +38,14 @@ exception statement from your version. */ package java.awt.image; +import gnu.java.awt.Buffers; + import java.awt.Point; import java.awt.Transparency; import java.awt.color.ColorSpace; -import gnu.java.awt.Buffers; /** - * @author Rolf W. Rasmussen <rolfwr@ii.uib.no> + * @author Rolf W. Rasmussen (rolfwr@ii.uib.no) * @author C. Brian Jones (cbj@gnu.org) * @author Mark Benvenuto (mcb54@columbia.edu) */ @@ -162,7 +164,7 @@ public class DirectColorModel extends PackedColorModel return extractAndScaleSample(pixel, 3); } - private final int extractAndNormalizeSample(int pixel, int component) + private int extractAndNormalizeSample(int pixel, int component) { int value = extractAndScaleSample(pixel, component); if (hasAlpha() && isAlphaPremultiplied()) @@ -170,7 +172,7 @@ public class DirectColorModel extends PackedColorModel return value; } - private final int extractAndScaleSample(int pixel, int component) + private int extractAndScaleSample(int pixel, int component) { int field = pixel & getMask(component); int to8BitShift = @@ -303,7 +305,7 @@ public class DirectColorModel extends PackedColorModel * @param highBit the position of the most significant bit in the * val parameter. */ - private final int valueToField(int val, int component, int highBit) + private int valueToField(int val, int component, int highBit) { int toFieldShift = getComponentSize(component) + shifts[component] - highBit; @@ -317,7 +319,7 @@ public class DirectColorModel extends PackedColorModel * Converts a 16 bit value to the correct field bits based on the * information derived from the field masks. */ - private final int value16ToField(int val, int component) + private int value16ToField(int val, int component) { int toFieldShift = getComponentSize(component) + shifts[component] - 16; return (toFieldShift>0) ? diff --git a/java/awt/image/MemoryImageSource.java b/java/awt/image/MemoryImageSource.java index 1228ed78f..8de4b842a 100644 --- a/java/awt/image/MemoryImageSource.java +++ b/java/awt/image/MemoryImageSource.java @@ -1,5 +1,5 @@ /* MemoryImageSource.java -- Java class for providing image data - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,8 +38,6 @@ exception statement from your version. */ package java.awt.image; -import java.awt.Image; -import java.util.Enumeration; import java.util.Hashtable; import java.util.Vector; diff --git a/java/awt/image/PackedColorModel.java b/java/awt/image/PackedColorModel.java index 2d8b0e1ab..1f18cf68e 100644 --- a/java/awt/image/PackedColorModel.java +++ b/java/awt/image/PackedColorModel.java @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2002 Free Software Foundation +/* Copyright (C) 2000, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -34,11 +34,13 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package java.awt.image; +import gnu.java.awt.BitMaskExtent; + import java.awt.Point; import java.awt.color.ColorSpace; -import gnu.java.awt.BitMaskExtent; /** * @author Rolf W. Rasmussen <rolfwr@ii.uib.no> diff --git a/java/awt/image/PixelGrabber.java b/java/awt/image/PixelGrabber.java index fd5c24a86..da50d1f70 100644 --- a/java/awt/image/PixelGrabber.java +++ b/java/awt/image/PixelGrabber.java @@ -1,39 +1,39 @@ /* PixelGrabber.java -- retrieve a subset of an image's data - Copyright (C) 1999, 2003 Free Software Foundation, Inc. - - This file is part of GNU Classpath. - - GNU Classpath is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - GNU Classpath is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with GNU Classpath; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. - - Linking this library statically or dynamically with other modules is - making a combined work based on this library. Thus, the terms and - conditions of the GNU General Public License cover the whole - combination. - - As a special exception, the copyright holders of this library give you - permission to link this library with independent modules to produce an - executable, regardless of the license terms of these independent - modules, and to copy and distribute the resulting executable under - terms of your choice, provided that you also meet, for each linked - independent module, the terms and conditions of the license of that - module. An independent module is a module which is not derived from - or based on this library. If you modify this library, you may extend - this exception to your version of the library, but you are not - obligated to do so. If you do not wish to do so, delete this - exception statement from your version. */ + Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ package java.awt.image; diff --git a/java/awt/image/RasterOp.java b/java/awt/image/RasterOp.java index 57961808e..84d47c119 100644 --- a/java/awt/image/RasterOp.java +++ b/java/awt/image/RasterOp.java @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2002 Free Software Foundation +/* Copyright (C) 2000, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -34,11 +34,12 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package java.awt.image; +import java.awt.RenderingHints; import java.awt.geom.Point2D; import java.awt.geom.Rectangle2D; -import java.awt.RenderingHints; public interface RasterOp { |