Accept an IDimension, rather than a concrete Dimension.

This commit is contained in:
Michael Bayne
2011-06-13 12:44:54 -07:00
parent f3b646a63f
commit 6d8d0daf1d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -91,8 +91,8 @@ public class Rectangle extends AbstractRectangle implements Serializable
/**
* Sets the size of this rectangle to the supplied dimensions.
*/
public void setSize (Dimension d) {
setSize(d.width, d.height);
public void setSize (IDimension d) {
setSize(d.getWidth(), d.getHeight());
}
/**
+2 -2
View File
@@ -91,8 +91,8 @@ public class Rectangle extends AbstractRectangle implements Serializable
/**
* Sets the size of this rectangle to the supplied dimensions.
*/
public void setSize (Dimension d) {
setSize(d.width, d.height);
public void setSize (IDimension d) {
setSize(d.getWidth(), d.getHeight());
}
/**