private static class J2DPrinter.PrintResolutionComparator extends java.lang.Object implements java.util.Comparator<PrintResolution>
Modifier and Type | Field and Description |
---|---|
(package private) static J2DPrinter.PrintResolutionComparator |
theComparator |
Modifier | Constructor and Description |
---|---|
private |
PrintResolutionComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(PrintResolution r1,
PrintResolution r2)
Is used to approximate a sort of resolutions from
lowest to highest overall resolution.
|
static final J2DPrinter.PrintResolutionComparator theComparator
public int compare(PrintResolution r1, PrintResolution r2)
compare
in interface java.util.Comparator<PrintResolution>
other
- resolution to compare.