X-Git-Url: https://git.piment-noir.org/?p=TP_POO.git;a=blobdiff_plain;f=TP2%2FImage.java;h=c2b0b84d7f758b70e7bcc0d66675bf954ec9ba64;hp=61dd27014c7c9888cf9418a65a1648fad963623b;hb=78c725c5e287068ee24d4abb950de2ab9520d76a;hpb=600e6ac65a3879827a1f728581a1107ebee040c8 diff --git a/TP2/Image.java b/TP2/Image.java index 61dd270..c2b0b84 100644 --- a/TP2/Image.java +++ b/TP2/Image.java @@ -1,5 +1,9 @@ import java.util.Comparator; +@ClassPreamble ( + author = "Jérôme Benoit", + date = "09/11/2009" +) public class Image extends Forme implements Compactable, Comparable, Comparator { @@ -92,7 +96,7 @@ public class Image extends Forme implements Compactable, } public int compare(Image image1, Image image2) { - return image1.getSize() - image2.getSize(); + return (int)(image1.getpOri().getY() - image2.getpOri().getY()); } }