[kaffe] [PATCH] Make java.awt.Dimension extend java.awt.geom.Dimension2D

Benja Fallenstein b.fallenstein@gmx.de
Fri May 16 07:07:01 2003


This is a multi-part message in MIME format.
--------------060508070703000202050301
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


Hi,

The attached patch makes java.awt.Dimension extend and implement 
java.awt.geom.Dimension2D, as in Sun's Java.

- Benja

--------------060508070703000202050301
Content-Type: text/plain;
 name="dimension.patch"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="dimension.patch"

SW5kZXg6IGxpYnJhcmllcy9qYXZhbGliL2phdmEvYXd0L0RpbWVuc2lvbi5qYXZhCj09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT0KUkNTIGZpbGU6IC9jdnMva2FmZmUva2FmZmUvbGlicmFyaWVzL2phdmFsaWIv
amF2YS9hd3QvRGltZW5zaW9uLmphdmEsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNgpkaWZm
IC11IC1yMS42IERpbWVuc2lvbi5qYXZhCi0tLSBsaWJyYXJpZXMvamF2YWxpYi9qYXZhL2F3
dC9EaW1lbnNpb24uamF2YQkxNiBNYXIgMjAwMiAxODozNjo1OSAtMDAwMAkxLjYKKysrIGxp
YnJhcmllcy9qYXZhbGliL2phdmEvYXd0L0RpbWVuc2lvbi5qYXZhCTE2IE1heSAyMDAzIDE0
OjAzOjQ3IC0wMDAwCkBAIC0xLDQgKzEsNSBAQAogcGFja2FnZSBqYXZhLmF3dDsKK2ltcG9y
dCBqYXZhLmF3dC5nZW9tLkRpbWVuc2lvbjJEOwogCiAKIC8qKgpAQCAtMTIsNyArMTMsNyBA
QAogICoKICAqIEBhdXRob3IgUC5DLk1laGxpdHoKICAqLwotcHVibGljIGNsYXNzIERpbWVu
c2lvbiBpbXBsZW1lbnRzIGphdmEuaW8uU2VyaWFsaXphYmxlCitwdWJsaWMgY2xhc3MgRGlt
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