Commit f7aa343f by Tom Tromey Committed by Tom Tromey

Applet.java, [...]: New versions from Classpath.

	* java/applet/Applet.java, java/applet/AppletContext.java,
	java/applet/AppletStub.java, java/applet/AudioClip.java,
	java/awt/CardLayout.java,
	java/awt/ContainerOrderFocusTraversalPolicy.java,
	java/awt/Cursor.java, java/awt/Event.java, java/awt/Frame.java,
	java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
	java/awt/GridLayout.java, java/awt/color/ColorSpace.java,
	java/awt/color/ICC_ColorSpace.java,
	java/awt/color/ICC_Profile.java,
	java/awt/color/ICC_ProfileGray.java,
	java/awt/color/ICC_ProfileRGB.java,
	java/awt/datatransfer/DataFlavor.java,
	java/awt/dnd/DragSourceContext.java, java/awt/dnd/DropTarget.java,
	java/awt/dnd/DropTargetContext.java, java/awt/event/KeyEvent.java:
	New versions from Classpath.
	* Makefile.in: Rebuilt.
	* Makefile.am (awt_java_source_files): Added ICC_ProfileGray and
	ICC_ProfileRGB.

From-SVN: r58964
parent adf94cac
2002-11-09 Tom Tromey <tromey@redhat.com>
* java/applet/Applet.java, java/applet/AppletContext.java,
java/applet/AppletStub.java, java/applet/AudioClip.java,
java/awt/CardLayout.java,
java/awt/ContainerOrderFocusTraversalPolicy.java,
java/awt/Cursor.java, java/awt/Event.java, java/awt/Frame.java,
java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
java/awt/GridLayout.java, java/awt/color/ColorSpace.java,
java/awt/color/ICC_ColorSpace.java,
java/awt/color/ICC_Profile.java,
java/awt/color/ICC_ProfileGray.java,
java/awt/color/ICC_ProfileRGB.java,
java/awt/datatransfer/DataFlavor.java,
java/awt/dnd/DragSourceContext.java, java/awt/dnd/DropTarget.java,
java/awt/dnd/DropTargetContext.java, java/awt/event/KeyEvent.java:
New versions from Classpath.
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added ICC_ProfileGray and
ICC_ProfileRGB.
* java/awt/ScrollPane.java (ScrollPane): Fixed test for valid
display policy.
......
......@@ -678,6 +678,8 @@ java/awt/Window.java \
java/awt/color/ColorSpace.java \
java/awt/color/ICC_ColorSpace.java \
java/awt/color/ICC_Profile.java \
java/awt/color/ICC_ProfileGray.java \
java/awt/color/ICC_ProfileRGB.java \
java/awt/color/CMMException.java \
java/awt/color/ProfileDataException.java \
java/awt/datatransfer/Clipboard.java \
......
......@@ -435,6 +435,8 @@ java/awt/Window.java \
java/awt/color/ColorSpace.java \
java/awt/color/ICC_ColorSpace.java \
java/awt/color/ICC_Profile.java \
java/awt/color/ICC_ProfileGray.java \
java/awt/color/ICC_ProfileRGB.java \
java/awt/color/CMMException.java \
java/awt/color/ProfileDataException.java \
java/awt/datatransfer/Clipboard.java \
......@@ -2614,6 +2616,8 @@ DEP_FILES = .deps/$(srcdir)/$(CONVERT_DIR)/gen-from-JIS.P \
.deps/java/awt/Window.P .deps/java/awt/color/CMMException.P \
.deps/java/awt/color/ColorSpace.P .deps/java/awt/color/ICC_ColorSpace.P \
.deps/java/awt/color/ICC_Profile.P \
.deps/java/awt/color/ICC_ProfileGray.P \
.deps/java/awt/color/ICC_ProfileRGB.P \
.deps/java/awt/color/ProfileDataException.P \
.deps/java/awt/datatransfer/Clipboard.P \
.deps/java/awt/datatransfer/ClipboardOwner.P \
......
/* AppletContext.java -- Access the applet's runtime environment.
Copyright (C) 1999 Free Software Foundation, Inc.
/* AppletContext.java -- access the applet's runtime environment
Copyright (C) 1999, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath.
......@@ -39,8 +39,11 @@ exception statement from your version. */
package java.applet;
import java.awt.Image;
import java.io.InputStream;
import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;
import java.util.Iterator;
/**
* This interface allows an applet access to the browser to retrieve
......@@ -48,15 +51,17 @@ import java.util.Enumeration;
* applet to find out other applets in the same document.
*
* @author Aaron M. Renn (arenn@urbanophile.com)
* @since 1.0
* @status updated to 1.4
*/
public interface AppletContext
{
/**
* Returns an audio clip from the specified URL.
*
* @param url The URL of the audio clip.
*
* @return The retrieved audio clip // FIXME: What happens on error?
* @param url the URL of the audio clip
* @return the retrieved audio clip
* @throws NullPointerException if url is null
*/
AudioClip getAudioClip(URL url);
......@@ -65,9 +70,9 @@ public interface AppletContext
* actually retrieved until the applet attempts to display it, so this
* method returns immediately.
*
* @param url The URL of the image.
*
* @return The retrieved image. // FIXME: What happens on eror?
* @param url the absolute URL of the image
* @return the retrieved image
* @throws NullPointerException if url is null
*/
Image getImage(URL url);
......@@ -75,17 +80,15 @@ public interface AppletContext
* Returns the applet in the document for this object that has the
* specified name.
*
* @param name The applet name.
*
* @return The requested applet, or <code>null</code> if an applet with
* the requested name cannot be found.
* @param name the applet name
* @return the requested applet, or <code>null</code> if not found
*/
Applet getApplet(String name);
/**
* Returns a list of all the applets in the document for this object.
*
* @return A list of all the applets in the document for this object.
* @return a list of all the applets
*/
Enumeration getApplets();
......@@ -94,17 +97,18 @@ public interface AppletContext
* for this object. This page replaces the document that is currently
* there.
*
* @param url The URL of the web page to load.
* @param url the URL of the web page to load; unspecified on an error
*/
void showDocument(URL url);
/**
* Displays the web page pointed to be the sepcified URL in the window
* with the specified name. The standard names "_top", "_blank",
* "_parent", and "_self" are allowed.
* "_parent", and "_self" are allowed. An applet viewer may disregard
* this request.
*
* @param url The URL of the web page to load.
* @param target The target window.
* @param url the URL of the web page to load
* @param target the target window
*/
void showDocument(URL url, String target);
......@@ -112,8 +116,39 @@ public interface AppletContext
* Displays the specified message in the status window if that window
* exists.
*
* @param message The status message.
* @param message the status message, may be null
*/
void showStatus(String message);
/**
* Associate a stream to a key for this applet context, possibly replacing
* the old value. Stream associations are local to the applet context, for
* security purposes.
*
* @param key the key to associate with
* @param stream the stream value to tie to the key, or null to remove
* @throws IOException if the stream is too large
* @since 1.4
*/
public void setStream(String key, InputStream stream) throws IOException;
/**
* Return the stream associated with a given key in this applet context, or
* null if nothing is associated. Stream associations are local to the
* applet context, for security purposes.
*
* @param key the key to look up
* @return the associated stream, or null
* @since 1.4
*/
public InputStream getStream(String key);
/**
* Iterate over all keys that have associated streams. Sttream associated
* are local to the applet context, for security purposes.
*
* @return an iterator over the association keys
* @since 1.4
*/
public Iterator getStreamKeys();
} // interface AppletContext
/* AppletStub.java -- Low level interface to the browser.
Copyright (C) 1999 Free Software Foundation, Inc.
/* AppletStub.java -- low level interface to the browser
Copyright (C) 1999, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath.
......@@ -44,56 +44,59 @@ import java.net.URL;
* browser.
*
* @author Aaron M. Renn (arenn@urbanophile.com)
* @see Applet#setStub(AppletStub)
* @since 1.0
* @status updated to 1.4
*/
public interface AppletStub
{
/**
* Returns the URL of the document this applet is embedded in.
* Tests whether or not this applet is currently active. An applet is active
* just before the browser invokes start(), and becomes inactive just
* before the browser invokes stop().
*
* @return The URL of the document this applet is embedded in.
* @return <code>true</code> if this applet is active
*/
boolean isActive();
/**
* Returns the basename URL of the document this applet is embedded in. This
* is everything up to the final '/'.
*
* @return the URL of the document this applet is embedded in
* @see #getCodeBase()
*/
URL getDocumentBase();
/**
* Returns the URL of the code base for this applet.
*
* @return The URL of the code base for this applet.
* @return the URL of the code base for this applet
*/
URL getCodeBase();
/**
* Returns the value of the specified parameter that was specified in
* the &lt;APPLET&gt; tag for this applet.
*
* @param name The parameter name.
* the <code>&lt;APPLET&gt;</code> tag for this applet.
*
* @param value The parameter value, or <code>null</code> if the parameter
* does not exist.
* @param name the parameter name
* @return the parameter value, or null if the parameter does not exist
* @throws NullPointerException if name is null
*/
String getParameter(String name);
/**
* Returns the applet context for this applet.
*
* @return The applet context for this applet.
* @return the applet context for this applet
*/
AppletContext getAppletContext();
/**
* Tests whether or not this applet is currently active.
*
* @return <code>true</code> if this applet is active, <code>false</code>
* otherwise.
*/
boolean isActive();
/**
* Requests that the applet window for this applet be resized.
*
* @param width The new width in pixels.
* @param height The new height in pixels.
* @param width the new width in pixels
* @param height the new height in pixels
*/
void appletResize(int width, int height);
} // interface AppletStub
/* AudioClip.java -- Play an audio clip.
Copyright (C) 1999 Free Software Foundation, Inc.
/* AudioClip.java -- play an audio clip in an applet
Copyright (C) 1999, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath.
......@@ -40,8 +40,12 @@ package java.applet;
/**
* This interface provides a simple mechanism for playing audio clips.
* If multiple clips are played at once, the browser combines them into a
* composite clip.
*
* @author Aaron M. Renn (arenn@urbanophile.com)
* @since 1.0
* @status updated to 1.4
*/
public interface AudioClip
{
......@@ -60,5 +64,4 @@ public interface AudioClip
* Plays this audio clip in a continuous loop.
*/
void loop();
} // interface AudioClip
......@@ -53,6 +53,8 @@ import java.io.Serializable;
*/
public class CardLayout implements LayoutManager2, Serializable
{
static final long serialVersionUID = -4328196481005934313L;
/**
* Initializes a new instance of <code>CardLayout</code> with horizontal
* and vertical gaps of 0.
......
......@@ -46,6 +46,8 @@ import java.io.Serializable;
public class ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy
implements Serializable
{
static final long serialVersionUID = 486933713763926351L;
private boolean downCycle = true;
public ContainerOrderFocusTraversalPolicy()
......
......@@ -44,6 +44,8 @@ package java.awt;
*/
public class Cursor implements java.io.Serializable
{
static final long serialVersionUID = 8028237497568985504L;
/**
* Constant for the system default cursor type
*/
......
......@@ -45,71 +45,73 @@ package java.awt;
public class Event implements java.io.Serializable
{
public static final int SHIFT_MASK = 1,
CTRL_MASK = 2,
META_MASK = 4,
ALT_MASK = 8;
public static final int ACTION_EVENT = 1001,
BACK_SPACE = 8,
CAPS_LOCK = 1022,
DELETE = 127,
DOWN = 1005,
END = 1001,
ENTER = 10,
ESCAPE = 27,
F1 = 1008,
F10 = 1017,
F11 = 1018,
F12 = 1019,
F2 = 1009,
F3 = 1010,
F4 = 1011,
F5 = 1012,
F6 = 1013,
F7 = 1014,
F8 = 1015,
F9 = 1016,
GOT_FOCUS = 1004,
HOME = 1000,
INSERT = 1025,
KEY_ACTION = 403,
KEY_ACTION_RELEASE = 404,
KEY_PRESS = 401,
KEY_RELEASE = 402,
LEFT = 1006,
LIST_DESELECT = 702,
LIST_SELECT = 701,
LOAD_FILE = 1002,
LOST_FOCUS = 1005,
MOUSE_DOWN = 501,
MOUSE_DRAG = 506,
MOUSE_ENTER = 504,
MOUSE_EXIT = 505,
MOUSE_MOVE = 503,
MOUSE_UP = 502,
NUM_LOCK = 1023,
PAUSE = 1024,
PGDN = 1003,
PGUP = 1002,
PRINT_SCREEN = 1020,
RIGHT = 1007,
SAVE_FILE = 1003,
SCROLL_ABSOLUTE = 605,
SCROLL_BEGIN = 606,
SCROLL_END = 607,
SCROLL_LINE_DOWN = 602,
SCROLL_LINE_UP = 601,
SCROLL_LOCK = 1021,
SCROLL_PAGE_DOWN = 604,
SCROLL_PAGE_UP = 603,
TAB = 9,
UP = 1004,
WINDOW_DEICONIFY = 204,
WINDOW_DESTROY = 201,
WINDOW_EXPOSE = 202,
WINDOW_ICONIFY = 203,
WINDOW_MOVED = 205;
static final long serialVersionUID = 5488922509400504703L;
public static final int SHIFT_MASK = 1;
public static final int CTRL_MASK = 2;
public static final int META_MASK = 4;
public static final int ALT_MASK = 8;
public static final int ACTION_EVENT = 1001;
public static final int BACK_SPACE = 8;
public static final int CAPS_LOCK = 1022;
public static final int DELETE = 127;
public static final int DOWN = 1005;
public static final int END = 1001;
public static final int ENTER = 10;
public static final int ESCAPE = 27;
public static final int F1 = 1008;
public static final int F10 = 1017;
public static final int F11 = 1018;
public static final int F12 = 1019;
public static final int F2 = 1009;
public static final int F3 = 1010;
public static final int F4 = 1011;
public static final int F5 = 1012;
public static final int F6 = 1013;
public static final int F7 = 1014;
public static final int F8 = 1015;
public static final int F9 = 1016;
public static final int GOT_FOCUS = 1004;
public static final int HOME = 1000;
public static final int INSERT = 1025;
public static final int KEY_ACTION = 403;
public static final int KEY_ACTION_RELEASE = 404;
public static final int KEY_PRESS = 401;
public static final int KEY_RELEASE = 402;
public static final int LEFT = 1006;
public static final int LIST_DESELECT = 702;
public static final int LIST_SELECT = 701;
public static final int LOAD_FILE = 1002;
public static final int LOST_FOCUS = 1005;
public static final int MOUSE_DOWN = 501;
public static final int MOUSE_DRAG = 506;
public static final int MOUSE_ENTER = 504;
public static final int MOUSE_EXIT = 505;
public static final int MOUSE_MOVE = 503;
public static final int MOUSE_UP = 502;
public static final int NUM_LOCK = 1023;
public static final int PAUSE = 1024;
public static final int PGDN = 1003;
public static final int PGUP = 1002;
public static final int PRINT_SCREEN = 1020;
public static final int RIGHT = 1007;
public static final int SAVE_FILE = 1003;
public static final int SCROLL_ABSOLUTE = 605;
public static final int SCROLL_BEGIN = 606;
public static final int SCROLL_END = 607;
public static final int SCROLL_LINE_DOWN = 602;
public static final int SCROLL_LINE_UP = 601;
public static final int SCROLL_LOCK = 1021;
public static final int SCROLL_PAGE_DOWN = 604;
public static final int SCROLL_PAGE_UP = 603;
public static final int TAB = 9;
public static final int UP = 1004;
public static final int WINDOW_DEICONIFY = 204;
public static final int WINDOW_DESTROY = 201;
public static final int WINDOW_EXPOSE = 202;
public static final int WINDOW_ICONIFY = 203;
public static final int WINDOW_MOVED = 205;
public Object arg;
public int clickCount;
......
......@@ -60,6 +60,12 @@ public class Frame extends Window implements MenuContainer, Serializable
*/
/**
* Constant for the default cursor.
* Deprecated. replaced by <code>Cursor.DEFAULT_CURSOR</code> instead.
*/
public static final int DEFAULT_CURSOR = Cursor.DEFAULT_CURSOR;
/**
* Constant for a cross-hair cursor.
* @deprecated Use <code>Cursor.CROSSHAIR_CURSOR</code> instead.
*/
......@@ -137,6 +143,12 @@ public static final int HAND_CURSOR = Cursor.HAND_CURSOR;
*/
public static final int MOVE_CURSOR = Cursor.MOVE_CURSOR;
public static final int ICONIFIED = 1;
public static final int MAXIMIZED_BOTH = 6;
public static final int MAXIMIZED_HORIZ = 2;
public static final int MAXIMIZED_VERT = 4;
public static final int NORMAL = 0;
// Serialization version constant
private static final long serialVersionUID = 2673458971256075116L;
......
......@@ -45,6 +45,8 @@ import java.io.Serializable;
* GridBagLayout layout manager. */
public class GridBagConstraints implements Cloneable, Serializable
{
static final long serialVersionUID = -1000070633030801713L;
/** Fill in both directions. */
public static final int BOTH = 1;
/** Don't fill. */
......
......@@ -45,6 +45,8 @@ import java.io.Serializable;
public class GridBagLayout
implements Serializable, LayoutManager2
{
static final long serialVersionUID = 8838754796412211005L;
public void addLayoutComponent(String name, Component component)
{
}
......
......@@ -58,6 +58,8 @@ import java.io.Serializable;
*/
public class GridLayout implements LayoutManager, Serializable
{
static final long serialVersionUID = -7411804673224730901L;
/** Add a new component to the layout. This particular implementation
* does nothing.
* @param name The name of the component to add.
......
/* Copyright (C) 2000, 2002 Free Software Foundation
/* ColorSpace.java -- transforms between color spaces
Copyright (C) 2000, 2002 Free Software Foundation
This file is part of GNU Classpath.
......@@ -34,13 +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.color;
import java.io.Serializable;
/**
* NEEDS DOCUMENTATION
*
* @author Rolf W. Rasmussen <rolfwr@ii.uib.no>
* @since 1.2
*/
public abstract class ColorSpace
{
/**
* Compatible with JDK 1.2+.
*/
private static final long serialVersionUID = -409452704308689724L;
public static final int TYPE_XYZ = 0;
public static final int TYPE_Lab = 1;
public static final int TYPE_Luv = 2;
......@@ -69,24 +81,34 @@ public abstract class ColorSpace
public static final int TYPE_FCLR = 25;
public static final int CS_sRGB = 1000;
public static final int CS_LINEAR_RGB = 1004;
public static final int CS_CIEXYZ = 1001;
public static final int CS_PYCC = 1002;
public static final int CS_GRAY = 1003;
public static final int CS_LINEAR_RGB = 1004;
private static final int CS_BASE = CS_sRGB;
private static final int CS_END = CS_LINEAR_RGB+1;
private static final int CS_END = CS_LINEAR_RGB + 1;
private static final int CS_COUNT = CS_END - CS_BASE;
// Instances are lazily instantiated
private static final ColorSpace[] INSTANCES = new ColorSpace[CS_COUNT];
private int type;
private int numcomponents;
/**
* @serial
*/
// Visible in subclass.
final int type;
/**
* @serial
*/
// Visible in subclass.
final int numComponents;
protected ColorSpace(int type, int numcomponents)
{
this.type = type;
this.numcomponents = numcomponents;
numComponents = numcomponents;
}
public static ColorSpace getInstance(int colorspace)
......@@ -124,7 +146,7 @@ public abstract class ColorSpace
public int getNumComponents()
{
return numcomponents;
return numComponents;
}
public String getName(int idx)
......@@ -132,8 +154,23 @@ public abstract class ColorSpace
return "type " + type;
}
public String toString()
/**
* @since 1.4
*/
public float getMinValue(int idx)
{
if (idx < 0 || idx >= numComponents)
throw new IllegalArgumentException();
return 0;
}
/**
* @since 1.4
*/
public float getMaxValue(int idx)
{
return getClass().getName() + "[type=" + type + "]";
if (idx < 0 || idx >= numComponents)
throw new IllegalArgumentException();
return 1;
}
}
} // class ColorSpace
/* Copyright (C) 2000, 2002 Free Software Foundation
/* ICC_ColorSpace.java -- the canonical color space implementation
Copyright (C) 2000, 2002 Free Software Foundation
This file is part of GNU Classpath.
......@@ -34,25 +35,61 @@ 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.color;
/**
* NEEDS DOCUMENTATION
*
* @author Rolf W. Rasmussen <rolfwr@ii.uib.no>
* @since 1.2
*/
public class ICC_ColorSpace extends ColorSpace
{
private ICC_Profile profile;
/**
* Compatible with JDK 1.2+.
*/
private static final long serialVersionUID = 3455889114070431483L;
/**
* @serial
*/
private ICC_Profile thisProfile;
/**
* @serial
*/
private float[] minVal;
/**
* @serial
*/
private float[] maxVal;
/**
* @serial
*/
private float[] diffMinMax;
/**
* @serial
*/
private float[] invDiffMinMax;
/**
* @serial
*/
private boolean needScaleInit;
public ICC_ColorSpace(ICC_Profile profile)
{
super(CS_sRGB, profile.getNumComponents());
this.profile = profile;
thisProfile = profile;
}
public ICC_Profile getProfile()
{
return profile;
return thisProfile;
}
public float[] toRGB(float[] colorvalue)
......@@ -80,26 +117,33 @@ public class ICC_ColorSpace extends ColorSpace
}
/**
* @param component The index of the color component
*
* @exception IllegalArgumentException If <code>component<code> is less
* then 0 or greater then <code>numComponents - 1</code>
* @since 1.4
*/
public float getMinValue (int component)
public float getMinValue(int idx)
{
// FIXME: Not implemented
throw new UnsupportedOperationException();
if (type == TYPE_Lab && (idx == 1 || idx == 2))
return -128;
if (idx < 0 || idx >= numComponents)
throw new IllegalArgumentException();
return 0;
}
/**
* @param component The index of the color component
*
* @exception IllegalArgumentException If <code>component<code> is less
* then 0 or greater then <code>numComponents - 1</code>
* @since 1.4
*/
public float getMaxValue (int component)
public float getMaxValue(int idx)
{
// FIXME: Not implemented
throw new UnsupportedOperationException();
if (type == TYPE_XYZ && idx >= 0 && idx <= 2)
return 1 + 32767 / 32768f;
else if (type == TYPE_Lab)
{
if (idx == 0)
return 100;
if (idx == 1 || idx == 2)
return 127;
}
if (idx < 0 || idx >= numComponents)
throw new IllegalArgumentException();
return 1;
}
}
} // class ICC_ColorSpace
/* ICC_ProfileGray.java -- the ICC profile for a Gray colorspace
Copyright (C) 2002 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.color;
/**
* STUBBED
* @since 1.2
*/
public class ICC_ProfileGray extends ICC_Profile
{
/**
* Compatible with JDK 1.2+.
*/
private static final long serialVersionUID = -1124721290732002649L;
ICC_ProfileGray()
{
super(ColorSpace.CS_GRAY);
}
public float[] getMediaWhitePoint()
{
return null;
}
public float getGamma()
{
return 0;
}
public short[] getTRC()
{
return null;
}
} // class ICC_ProfileGray
/* ICC_ProfileRGB.java -- the ICC profile for a RGB colorspace
Copyright (C) 2002 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.color;
/**
* STUBBED
* @since 1.2
*/
public class ICC_ProfileRGB extends ICC_Profile
{
/**
* Compatible with JDK 1.2+.
*/
private static final long serialVersionUID = 8505067385152579334L;
public static final int REDCOMPONENT = 0;
public static final int GREENCOMPONENT = 1;
public static final int BLUECOMPONENT = 2;
ICC_ProfileRGB()
{
super(ColorSpace.CS_sRGB);
}
public float[] getMediaWhitePoint()
{
return null;
}
public float[][] getMatrix()
{
return null;
}
public float getGamma(int component)
{
return 0;
}
public short[] getTRC(int component)
{
return null;
}
} // class ICC_ProfileRGB
......@@ -56,6 +56,7 @@ import java.io.UnsupportedEncodingException;
*/
public class DataFlavor implements java.io.Externalizable, Cloneable
{
static final long serialVersionUID = 8367026044764648243L;
// FIXME: Serialization: Need to write methods for.
......
......@@ -50,6 +50,8 @@ import java.util.TooManyListenersException;
public class DragSourceContext
implements DragSourceListener, DragSourceMotionListener, Serializable
{
static final long serialVersionUID = -115407898692194719L;
protected static final int DEFAULT = 0;
protected static final int ENTER = 1;
protected static final int OVER = 2;
......
......@@ -44,6 +44,7 @@ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.TooManyListenersException;
/** STUB CLASS ONLY */
public class DropTarget
{
protected static class DropTargetAutoScroller
......
......@@ -48,6 +48,8 @@ import java.util.List;
public class DropTargetContext implements Serializable
{
static final long serialVersionUID = -634158968993743371L;
protected class TransferableProxy implements Transferable
{
protected boolean isLocal;
......
......@@ -754,18 +754,18 @@ public class KeyEvent extends InputEvent
public static final int VK_EURO_SIGN = 516;
/**
* The virtual key VK_EXCLAMATION_POINT.
* The virtual key VK_EXCLAMATION_MARK.
*
* @since 1.2
*/
public static final int VK_EXCLAMATION_POINT = 517;
public static final int VK_EXCLAMATION_MARK = 517;
/**
* The virtual key VK_INVERTED_EXCLAMATION_POINT.
* The virtual key VK_INVERTED_EXCLAMATION_MARK.
*
* @since 1.2
*/
public static final int VK_INVERTED_EXCLAMATION_POINT = 518;
public static final int VK_INVERTED_EXCLAMATION_MARK = 518;
/**
* The virtual key VK_LEFT_PARENTHESIS.
......@@ -1410,9 +1410,9 @@ public class KeyEvent extends InputEvent
return "Dollar";
case VK_EURO_SIGN:
return "Euro";
case VK_EXCLAMATION_POINT:
case VK_EXCLAMATION_MARK:
return "Exclamation Mark";
case VK_INVERTED_EXCLAMATION_POINT:
case VK_INVERTED_EXCLAMATION_MARK:
return "Inverted Exclamation Mark";
case VK_LEFT_PARENTHESIS:
return "Left Parenthesis";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment