diff options
author | Tom Tromey <tromey@redhat.com> | 2006-03-03 23:22:21 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2006-03-03 23:22:21 +0000 |
commit | 140f76ec61f31eea66bad0ccca135e6ac2ebc11a (patch) | |
tree | 91799412e439b7802b31baabe9a822281e563df6 | |
parent | 8da559ed4c7f73380c52b15b35f00d575632f56a (diff) | |
download | classpath-140f76ec61f31eea66bad0ccca135e6ac2ebc11a.tar.gz |
* java/awt/Insets.java (set): New method.
(equals): Added @since.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/awt/Insets.java | 20 |
2 files changed, 25 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2006-03-03 Tom Tromey <tromey@redhat.com> + + * java/awt/Insets.java (set): New method. + (equals): Added @since. + 2006-03-03 David Daney <ddaney@avtrex.com> * gnu/java/net/protocol/http/HTTPURLConnection.java diff --git a/java/awt/Insets.java b/java/awt/Insets.java index 7238a34e2..6d5bd122e 100644 --- a/java/awt/Insets.java +++ b/java/awt/Insets.java @@ -100,11 +100,31 @@ public class Insets implements Cloneable, Serializable } /** + * Set the contents of this Insets object to the specified values. + * + * @param top the top inset + * @param left the left inset + * @param bottom the bottom inset + * @param right the right inset + * + * @since 1.5 + */ + public void set(int top, int left, int bottom, int right) + { + this.top = top; + this.left = left; + this.bottom = bottom; + this.right = right; + } + + /** * Tests whether this object is equal to the specified object. The other * object must be an instance of Insets with identical field values. * * @param obj the object to test against * @return true if the specified object is equal to this one + * + * @since 1.1 */ public boolean equals(Object obj) { |