Commit 37f3981f by Michael Koch Committed by Michael Koch

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

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

	* java/awt/Frame.java,
	java/awt/Graphics.java,
	java/awt/Menu.java,
	java/awt/Robot.java,
	java/awt/image/ColorModel.java:
	New versions from classpath.

From-SVN: r67754
parent 0310c414
2003-06-11 Michael Koch <konqueror@gmx.de>
* java/awt/Frame.java,
java/awt/Graphics.java,
java/awt/Menu.java,
java/awt/Robot.java,
java/awt/image/ColorModel.java:
New versions from classpath.
2003-06-10 Michael Koch <konqueror@gmx.de> 2003-06-10 Michael Koch <konqueror@gmx.de>
* java/io/PrintStream.java: * java/io/PrintStream.java:
......
...@@ -515,7 +515,7 @@ getFrames() ...@@ -515,7 +515,7 @@ getFrames()
*/ */
public void setMaximizedBounds (Rectangle maximizedBounds) public void setMaximizedBounds (Rectangle maximizedBounds)
{ {
throw new Error ("not implemented"); this.maximizedBounds = maximizedBounds;
} }
/** /**
......
...@@ -441,24 +441,6 @@ fill3DRect(int x, int y, int width, int height, boolean raised) ...@@ -441,24 +441,6 @@ fill3DRect(int x, int y, int width, int height, boolean raised)
/*************************************************************************/ /*************************************************************************/
/** /**
* Draws the outline of the specified rectangle with a 3D effect
*
* @param x The X coordinate of the upper left corner of the draw rect.
* @param y The Y coordinate of the upper left corner of the draw rect.
* @param width The width of the draw rect.
* @param height The height of the draw rect.
* @param raised <code>true</code> if the rectangle appears raised,
* <code>false</code> if it should appear etched.
*/
public void
drawRoundRect(int x, int y, int width, int height, boolean raised)
{
// FIXME: ???
}
/*************************************************************************/
/**
* Draws an oval that just fits within the specified rectangle. * Draws an oval that just fits within the specified rectangle.
* *
* @param x The X coordinate of the upper left corner of the rect. * @param x The X coordinate of the upper left corner of the rect.
...@@ -615,28 +597,6 @@ drawChars(char data[], int offset, int length, int x, int y) ...@@ -615,28 +597,6 @@ drawChars(char data[], int offset, int length, int x, int y)
drawString(new String(data, offset, length), x, y); drawString(new String(data, offset, length), x, y);
} }
/*************************************************************************/
/**
* Draws the specified bytes as text starting at the specified point.
*
* @param data The array of bytes to draw.
* @param offset The offset into the array to start drawing bytes from.
* @param length The number of bytes to draw.
* @param x The X coordinate of the point to draw at.
* @param y The Y coordinate of the point to draw at.
*/
public void
drawChars(byte data[], int offset, int length, int x, int y)
{
drawString(new String(data, offset, length), x, y);
}
/*
public abstract void drawString(AttributedCharacterIterator iterator,
int x, int y)
*/
public void public void
drawBytes(byte[] data, int offset, int length, int x, int y) drawBytes(byte[] data, int offset, int length, int x, int y)
{ {
......
...@@ -188,21 +188,6 @@ public int countItems () ...@@ -188,21 +188,6 @@ public int countItems ()
/*************************************************************************/ /*************************************************************************/
/** /**
* Returns the number of items in this menu.
*
* @return The number of items in this menu.
*
* @deprecated This method is deprecated in favor of <code>getItemCount()</code>.
*/
public int
count()
{
return(items.size());
}
/*************************************************************************/
/**
* Returns the item at the specified index. * Returns the item at the specified index.
* *
* @return The item at the specified index. * @return The item at the specified index.
......
...@@ -40,9 +40,13 @@ package java.awt; ...@@ -40,9 +40,13 @@ package java.awt;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
/**
* @since 1.3
*/
/** STUB CLASS ONLY */ /** STUB CLASS ONLY */
public class Robot public class Robot
{ {
private GraphicsDevice screen;
private boolean waitForIdle; private boolean waitForIdle;
private int autoDelay; private int autoDelay;
...@@ -68,6 +72,7 @@ public class Robot ...@@ -68,6 +72,7 @@ public class Robot
public Robot(GraphicsDevice screen) throws AWTException public Robot(GraphicsDevice screen) throws AWTException
{ {
this(); this();
this.screen = screen;
} }
public void mouseMove(int x, int y) public void mouseMove(int x, int y)
......
/* Copyright (C) 1999, 2000, 2002 Free Software Foundation /* Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -113,7 +113,7 @@ public abstract class ColorModel implements Transparency ...@@ -113,7 +113,7 @@ public abstract class ColorModel implements Transparency
{ {
this(bits * 4, // total bits, sRGB, four channels this(bits * 4, // total bits, sRGB, four channels
nArray(bits, 4), // bits for each channel nArray(bits, 4), // bits for each channel
null, // FIXME: should be sRGB ColorSpace.getInstance(ColorSpace.CS_sRGB), // sRGB
true, // has alpha true, // has alpha
false, // not premultiplied false, // not premultiplied
TRANSLUCENT, TRANSLUCENT,
......
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