de.sciss.packing2d.demo.NonIncreasingHeightRectangleComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of packing2d-demo Show documentation
Show all versions of packing2d-demo Show documentation
Demo applications for the 2D packing algorithms
The newest version!
package de.sciss.packing2d.demo;
import java.awt.Rectangle;
import java.util.Comparator;
class NonIncreasingHeightRectangleComparator implements Comparator {
@Override
public int compare(Rectangle arg0, Rectangle arg1) {
return Integer.compare(arg1.height, arg0.height);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy