/openjdk7/jdk/src/share/classes/javax/print/attribute/standard/ |
H A D | MediaSizeName.java | 33 * Class MediaSizeName is a subclass of Media. 37 * Class MediaSizeName currently declares a few standard media 40 * <B>IPP Compatibility:</B> MediaSizeName is a representation class for 47 public class MediaSizeName extends Media { class in inherits:Media 54 public static final MediaSizeName ISO_A0 = new MediaSizeName(0); 58 public static final MediaSizeName ISO_A1 = new MediaSizeName(1); 62 public static final MediaSizeName ISO_A2 = new MediaSizeName( 392 protected MediaSizeName(int value) { method in class:MediaSizeName [all...] |
H A D | MediaSize.java | 43 * as a mapping for named media (see {@link MediaSizeName MediaSizeName}). 45 * <code>MediaSize.getMediaSizeForName(MediaSizeName)</code> 46 * to find the physical dimensions of the MediaSizeName instances 57 private MediaSizeName mediaName; 121 public MediaSize(float x, float y,int units, MediaSizeName media) { 147 public MediaSize(int x, int y,int units, MediaSizeName media) { 165 public MediaSizeName getMediaSizeName() { 176 public static MediaSize getMediaSizeForName(MediaSizeName media) { 185 * The MediaSize is in turn used to locate the MediaSizeName objec [all...] |
/openjdk7/jdk/test/javax/print/attribute/ |
H A D | MediaMappingsTest.java | 32 import javax.print.attribute.standard.MediaSizeName; 37 MediaSize sizeA = MediaSize.getMediaSizeForName(MediaSizeName.A); 38 new MediaSize(1.0f, 2.0f, MediaSize.MM, MediaSizeName.A); 39 if (!sizeA.equals(MediaSize.getMediaSizeForName(MediaSizeName.A))) { 42 MediaSize sizeB = MediaSize.getMediaSizeForName(MediaSizeName.B); 43 new MediaSize(1, 2, MediaSize.MM, MediaSizeName.B); 44 if (!sizeB.equals(MediaSize.getMediaSizeForName(MediaSizeName.B))) {
|
/openjdk7/jdk/src/share/classes/sun/print/ |
H A D | CustomMediaSizeName.java | 32 import javax.print.attribute.standard.MediaSizeName; 35 class CustomMediaSizeName extends MediaSizeName { 39 private MediaSizeName mediaName; 86 * Returns matching standard MediaSizeName. 88 public MediaSizeName getStandardMedia() { 95 * Returns closest matching MediaSizeName among given array of Media 97 public static MediaSizeName findMedia(Media[] media, float x, float y, 110 MediaSizeName[] msn = new MediaSizeName[media.length]; 112 if (media[i] instanceof MediaSizeName) { [all...] |
H A D | PrintJob2D.java | 71 import javax.print.attribute.standard.MediaSizeName; 120 private static final MediaSizeName JAVAXSIZES[] = { 121 null, null, MediaSizeName.ISO_A0, 122 MediaSizeName.ISO_A1, MediaSizeName.ISO_A2, MediaSizeName.ISO_A3, 123 MediaSizeName.ISO_A4, MediaSizeName.ISO_A5, MediaSizeName.ISO_A6, 124 MediaSizeName [all...] |
H A D | PSStreamPrintService.java | 56 import javax.print.attribute.standard.MediaSizeName; 81 private static final MediaSizeName mediaSizes[] = { 82 MediaSizeName.NA_LETTER, 83 MediaSizeName.TABLOID, 84 MediaSizeName.LEDGER, 85 MediaSizeName.NA_LEGAL, 86 MediaSizeName.EXECUTIVE, 87 MediaSizeName.ISO_A3, 88 MediaSizeName.ISO_A4, 89 MediaSizeName [all...] |
H A D | ServiceDialog.java | 1568 if (media == null || !(media instanceof MediaSizeName)) { 1571 if (media != null && (media instanceof MediaSizeName)) { 1572 MediaSizeName msn = (MediaSizeName)media; 1620 * MediaSize can be obtained from MediaSizeName. 1651 if (media == null || !(media instanceof MediaSizeName)) { 1654 if (media != null && (media instanceof MediaSizeName)) { 1655 MediaSizeName msn = (MediaSizeName)media; 1925 asCurrent.add((MediaSizeName)size [all...] |
H A D | PSStreamPrintJob.java | 61 import javax.print.attribute.standard.MediaSizeName; 526 if (attr instanceof MediaSizeName && 529 MediaSize.getMediaSizeForName((MediaSizeName)attr);
|
H A D | RasterPrinterJob.java | 86 import javax.print.attribute.standard.MediaSizeName; 722 if (!(media instanceof MediaSizeName)) { 723 media = MediaSizeName.NA_LETTER; 726 MediaSize.getMediaSizeForName((MediaSizeName)media); 1203 if (media instanceof MediaSizeName) { 1204 MediaSizeName msn = (MediaSizeName)media; 1555 if (media instanceof MediaSizeName && 1556 ((size = MediaSize.getMediaSizeForName((MediaSizeName)media)) !=
|
/openjdk7/jdk/test/java/awt/print/PageFormat/ |
H A D | PageFormatFromAttributes.java | 44 test(job, MediaSizeName.ISO_A4, OrientationRequested.PORTRAIT); 45 test(job, MediaSizeName.ISO_A4, OrientationRequested.LANDSCAPE); 46 test(job, MediaSizeName.ISO_A4, 48 test(job, MediaSizeName.ISO_A3, OrientationRequested.PORTRAIT); 49 test(job, MediaSizeName.NA_LETTER, OrientationRequested.PORTRAIT); 50 test(job, MediaSizeName.NA_LETTER, OrientationRequested.LANDSCAPE); 51 test(job, MediaSizeName.NA_LEGAL, OrientationRequested.PORTRAIT); 55 MediaSizeName media, OrientationRequested orient) {
|
/openjdk7/jdk/src/windows/classes/sun/print/ |
H A D | Win32PrintService.java | 56 import javax.print.attribute.standard.MediaSizeName; 128 public static final MediaSizeName[] dmPaperToPrintService = { 129 MediaSizeName.NA_LETTER, MediaSizeName.NA_LETTER, 130 MediaSizeName.TABLOID, MediaSizeName.LEDGER, 131 MediaSizeName.NA_LEGAL, MediaSizeName.INVOICE, 132 MediaSizeName.EXECUTIVE, MediaSizeName [all...] |
H A D | Win32PrintJob.java | 69 import javax.print.attribute.standard.MediaSizeName; 106 private MediaSizeName mediaName = null; 514 if (media instanceof MediaSizeName) { 515 mediaName = (MediaSizeName) media; 716 if (attr instanceof MediaSizeName) { 717 mediaName = (MediaSizeName)attr; 718 // If requested MediaSizeName is not supported,
|
/openjdk7/jdk/test/java/awt/print/Dialog/ |
H A D | PaperSizeError.java | 57 !service.isAttributeValueSupported(MediaSizeName.ISO_A4, 82 aset.add(MediaSizeName.ISO_A4); 99 MediaSizeName msn = MediaSize.findMedia(fwMM, fhMM, Size2DSyntax.MM); 110 if (msn != MediaSizeName.ISO_A4) { 111 throw new RuntimeException("MediaSizeName is not A4: " + msn);
|
/openjdk7/jdk/src/solaris/classes/sun/print/ |
H A D | UnixPrintService.java | 60 import javax.print.attribute.standard.MediaSizeName; 177 private static final MediaSizeName mediaSizes[] = { 178 MediaSizeName.NA_LETTER, 179 MediaSizeName.TABLOID, 180 MediaSizeName.LEDGER, 181 MediaSizeName.NA_LEGAL, 182 MediaSizeName.EXECUTIVE, 183 MediaSizeName.ISO_A3, 184 MediaSizeName.ISO_A4, 185 MediaSizeName [all...] |
H A D | CUPSPrinter.java | 38 import javax.print.attribute.standard.MediaSizeName; 63 private MediaSizeName[] cupsMediaSNames; 124 public MediaSizeName[] getMediaSizeNames() { 171 cupsMediaSNames = new MediaSizeName[nPageSizes]; 204 // add to list of custom MediaSizeName
|
H A D | IPPPrintService.java | 96 private MediaSizeName[] mediaSizeNames; 154 (Media)MediaSizeName.NA_LETTER, 393 mediaSizeNames = new MediaSizeName[0]; 429 if (allMedia[i] instanceof MediaSizeName) { 437 mediaSizeNames = new MediaSizeName[sizeList.size()]; 438 mediaSizeNames = (MediaSizeName[])sizeList.toArray( 623 if (media != null && media instanceof MediaSizeName) { 624 MediaSizeName msn = (MediaSizeName)media; 930 public CustomMediaSizeName findCustomMedia(MediaSizeName medi [all...] |
H A D | UnixPrintJob.java | 77 import javax.print.attribute.standard.MediaSizeName; 113 private MediaSizeName mediaName = MediaSizeName.NA_LETTER; 813 if (attr instanceof MediaSizeName) { 814 mediaName = (MediaSizeName)attr;
|
/openjdk7/jdk/src/share/classes/java/awt/print/ |
H A D | PrinterJob.java | 40 import javax.print.attribute.standard.MediaSizeName; 449 if (media instanceof MediaSizeName) { 450 MediaSizeName msn = (MediaSizeName)media;
|
/openjdk7/jdk/src/windows/classes/sun/awt/windows/ |
H A D | WPrinterJob.java | 92 import javax.print.attribute.standard.MediaSizeName; 698 if (attr instanceof MediaSizeName) { 1720 /** MediaSizeName / dmPaper */ 1725 if (media instanceof MediaSizeName) { 1726 MediaSizeName msn = (MediaSizeName)media; 1738 if (!(attr instanceof MediaSizeName)) { 1741 MediaSizeName msn = (MediaSizeName)attr; 1746 MediaSizeName ms [all...] |