Accept an IDimension, rather than a concrete Dimension.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user