API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.print.attribute.standard. MediaSizeName View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547

/*
 * @(#)MediaSizeName.java	1.12 05/11/17
 *
 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package javax.print.attribute.standard;

import java.util.Locale;

import javax.print.attribute.EnumSyntax;
import javax.print.attribute.Attribute;

/**
 * Class MediaSizeName is a subclass of Media.
 * <P>
 * This attribute can be used instead of specifying MediaName or MediaTray.
 * <p>
 * Class MediaSizeName currently declares a few standard media
 * name values. 
 * <P>
 * <B>IPP Compatibility:</B> MediaSizeName is a representation class for
 * values of the IPP "media" attribute which names media sizes.
 * The names of the media sizes correspond to those in the IPP 1.1 RFC
 * <a HREF="http://www.ietf.org/rfc/rfc2911.txt">RFC 2911</a>
 * <P>
 *
 */
public class MediaSizeName extends Media {

    private static final long serialVersionUID = 2778798329756942747L;

    /**
     * A0 size.
     */
    public static final MediaSizeName ISO_A0 = new MediaSizeName(0);
    /**
     * A1 size.
     */
    public static final MediaSizeName ISO_A1 = new MediaSizeName(1);
    /**
     * A2 size.
     */
    public static final MediaSizeName ISO_A2 = new MediaSizeName(2);
    /**
     * A3 size.
     */
    public static final MediaSizeName ISO_A3 = new MediaSizeName(3);
    /**
     * A4 size.
     */
    public static final MediaSizeName ISO_A4 = new MediaSizeName(4);
    /**
     * A5 size.
     */
    public static final MediaSizeName ISO_A5 = new MediaSizeName(5);
    /**
     * A6 size.
     */
    public static final MediaSizeName ISO_A6 = new MediaSizeName(6);
    /**
     * A7 size.
     */
    public static final MediaSizeName ISO_A7 = new MediaSizeName(7);
    /**
     * A8 size.
     */
    public static final MediaSizeName ISO_A8 = new MediaSizeName(8);
    /**
     * A9 size.
     */
    public static final MediaSizeName ISO_A9 = new MediaSizeName(9);
    /**
     * A10 size.
     */
    public static final MediaSizeName ISO_A10 = new MediaSizeName(10);  

   /**
     * ISO B0 size.
     */
    public static final MediaSizeName ISO_B0 = new MediaSizeName(11);
    /**
     * ISO B1 size.
     */
    public static final MediaSizeName ISO_B1 = new MediaSizeName(12);
    /**
     * ISO B2 size.
     */
    public static final MediaSizeName ISO_B2 = new MediaSizeName(13);
    /**
     * ISO B3 size.
     */
    public static final MediaSizeName ISO_B3 = new MediaSizeName(14);
    /**
     * ISO B4 size.
     */
    public static final MediaSizeName ISO_B4 = new MediaSizeName(15);
    /**
     * ISO B5 size.
     */
    public static final MediaSizeName ISO_B5 = new MediaSizeName(16);
    /**
     * ISO B6 size.
     */
    public static final MediaSizeName ISO_B6 = new MediaSizeName(17);
    /**
     * ISO B7 size.
     */
    public static final MediaSizeName ISO_B7 = new MediaSizeName(18);
    /**
     * ISO B8 size.
     */
    public static final MediaSizeName ISO_B8 = new MediaSizeName(19);
    /**
     * ISO B9 size.
     */
    public static final MediaSizeName ISO_B9 = new MediaSizeName(20);
    /**
     * ISO B10 size.
     */
    public static final MediaSizeName ISO_B10 = new MediaSizeName(21);  

   /**
     * JIS B0 size.
     */
    public static final MediaSizeName JIS_B0 = new MediaSizeName(22);
    /**
     * JIS B1 size.
     */
    public static final MediaSizeName JIS_B1 = new MediaSizeName(23);
    /**
     * JIS B2 size.
     */
    public static final MediaSizeName JIS_B2 = new MediaSizeName(24);
    /**
     * JIS B3 size.
     */
    public static final MediaSizeName JIS_B3 = new MediaSizeName(25);
    /**
     * JIS B4 size.
     */
    public static final MediaSizeName JIS_B4 = new MediaSizeName(26);
    /**
     * JIS B5 size.
     */
    public static final MediaSizeName JIS_B5 = new MediaSizeName(27);
    /**
     * JIS B6 size.
     */
    public static final MediaSizeName JIS_B6 = new MediaSizeName(28);
    /**
     * JIS B7 size.
     */
    public static final MediaSizeName JIS_B7 = new MediaSizeName(29);
    /**
     * JIS B8 size.
     */
    public static final MediaSizeName JIS_B8 = new MediaSizeName(30);
    /**
     * JIS B9 size.
     */
    public static final MediaSizeName JIS_B9 = new MediaSizeName(31);
    /**
     * JIS B10 size.
     */
    public static final MediaSizeName JIS_B10 = new MediaSizeName(32);

    /**
     * ISO C0 size.
     */
    public static final MediaSizeName ISO_C0 = new MediaSizeName(33);
    /**
     * ISO C1 size.
     */
    public static final MediaSizeName ISO_C1 = new MediaSizeName(34);
    /**
     * ISO C2 size.
     */
    public static final MediaSizeName ISO_C2 = new MediaSizeName(35);
    /**
     * ISO C3 size.
     */
    public static final MediaSizeName ISO_C3 = new MediaSizeName(36);
    /**
     * ISO C4 size.
     */
    public static final MediaSizeName ISO_C4 = new MediaSizeName(37);
    /**
     * ISO C5 size.
     */
    public static final MediaSizeName ISO_C5 = new MediaSizeName(38);
    /**
     *   letter size.
     */
    public static final MediaSizeName ISO_C6 = new MediaSizeName(39);
    /**
     *   letter size.
     */
    public static final MediaSizeName NA_LETTER = new MediaSizeName(40);

    /**
     *  legal size .
     */
    public static final MediaSizeName NA_LEGAL = new MediaSizeName(41);

    /**
     *  executive size .
     */
    public static final MediaSizeName EXECUTIVE = new MediaSizeName(42);

    /**
     *  ledger size .
     */
    public static final MediaSizeName LEDGER = new MediaSizeName(43);

    /**
     *  tabloid size .
     */
    public static final MediaSizeName TABLOID = new MediaSizeName(44);

    /**
     *  invoice size .
     */
    public static final MediaSizeName INVOICE = new MediaSizeName(45);

    /**
     *  folio size .
     */
    public static final MediaSizeName FOLIO = new MediaSizeName(46);

    /**
     *  quarto size .
     */
    public static final MediaSizeName QUARTO = new MediaSizeName(47);

    /**
     *  Japanese Postcard size.
     */
    public static final MediaSizeName
	JAPANESE_POSTCARD = new MediaSizeName(48);
   /**
     *  Japanese Double Postcard size.
     */
    public static final MediaSizeName
	JAPANESE_DOUBLE_POSTCARD = new MediaSizeName(49);

    /**
     *  A size .
     */
    public static final MediaSizeName A = new MediaSizeName(50);

    /**
     *  B size .
     */
    public static final MediaSizeName B = new MediaSizeName(51);

    /**
     *  C size .
     */
    public static final MediaSizeName C = new MediaSizeName(52);

    /**
     *  D size .
     */
    public static final MediaSizeName D = new MediaSizeName(53);

    /**
     *  E size .
     */
    public static final MediaSizeName E = new MediaSizeName(54);

    /**
     *  ISO designated long size .
     */
    public static final MediaSizeName
	ISO_DESIGNATED_LONG = new MediaSizeName(55);

    /**
     *  Italy envelope size . 
     */
    public static final MediaSizeName
	ITALY_ENVELOPE = new MediaSizeName(56);  // DESIGNATED_LONG?

    /**
     *  monarch envelope size .
     */
    public static final MediaSizeName
	MONARCH_ENVELOPE = new MediaSizeName(57);
    /**
     * personal envelope size .
     */
    public static final MediaSizeName
	PERSONAL_ENVELOPE = new MediaSizeName(58);
    /**
     *  number 9 envelope size .
     */
    public static final MediaSizeName
	NA_NUMBER_9_ENVELOPE = new MediaSizeName(59);
    /**
     *  number 10 envelope size .
     */
    public static final MediaSizeName
	NA_NUMBER_10_ENVELOPE = new MediaSizeName(60);
    /**
     *  number 11 envelope size .
     */
    public static final MediaSizeName
	NA_NUMBER_11_ENVELOPE = new MediaSizeName(61);
    /**
     *  number 12 envelope size .
     */
    public static final MediaSizeName
	NA_NUMBER_12_ENVELOPE = new MediaSizeName(62);
    /**
     *  number 14 envelope size .
     */
    public static final MediaSizeName
	NA_NUMBER_14_ENVELOPE = new MediaSizeName(63);
   /**
     *  6x9 North American envelope size.
     */
    public static final MediaSizeName
	NA_6X9_ENVELOPE = new MediaSizeName(64);
   /**
     *  7x9 North American envelope size.
     */
    public static final MediaSizeName
	NA_7X9_ENVELOPE = new MediaSizeName(65);
   /**
     *  9x11 North American envelope size.
     */
    public static final MediaSizeName
	NA_9X11_ENVELOPE = new MediaSizeName(66);
    /**
     *  9x12 North American envelope size.
     */
    public static final MediaSizeName
	NA_9X12_ENVELOPE = new MediaSizeName(67);

    /**
     *  10x13 North American envelope size .
     */
    public static final MediaSizeName
	NA_10X13_ENVELOPE = new MediaSizeName(68);
    /**
     *  10x14North American  envelope size .
     */
    public static final MediaSizeName
	NA_10X14_ENVELOPE = new MediaSizeName(69);
    /**
     *  10x15 North American envelope size.
     */
    public static final MediaSizeName
	NA_10X15_ENVELOPE = new MediaSizeName(70);

    /**
     *  5x7 North American paper.
     */
    public static final MediaSizeName
	NA_5X7 = new MediaSizeName(71);

    /**
     *  8x10 North American paper.
     */
    public static final MediaSizeName
	NA_8X10 = new MediaSizeName(72);

    /** 
     * Construct a new media size enumeration value with the given integer 
     * value. 
     *
     * @param  value  Integer value.
     */
    protected MediaSizeName(int value) {
	super (value);
    }

    private static final String[] myStringTable = {
		"iso-a0",
		"iso-a1",
		"iso-a2",
		"iso-a3",
		"iso-a4",
		"iso-a5",
		"iso-a6",
		"iso-a7",
		"iso-a8",
		"iso-a9",
		"iso-a10",
		"iso-b0",
		"iso-b1",
		"iso-b2",
		"iso-b3",
		"iso-b4",
		"iso-b5",
		"iso-b6",
		"iso-b7",
		"iso-b8",
		"iso-b9",
		"iso-b10",
		"jis-b0",
		"jis-b1",
		"jis-b2",
		"jis-b3",
		"jis-b4",
		"jis-b5",
		"jis-b6",
		"jis-b7",
		"jis-b8",
		"jis-b9",
		"jis-b10",
		"iso-c0",
		"iso-c1",
		"iso-c2",
		"iso-c3",
		"iso-c4",
		"iso-c5",
		"iso-c6",
		"na-letter",
		"na-legal",
		"executive",
		"ledger",
		"tabloid",
		"invoice",
		"folio",
		"quarto",
		"japanese-postcard",
		"oufuko-postcard",
		"a",
		"b",
		"c",
		"d",
		"e",
		"iso-designated-long",
		"italian-envelope",
		"monarch-envelope",
		"personal-envelope",
		"na-number-9-envelope",
		"na-number-10-envelope",
		"na-number-11-envelope",
		"na-number-12-envelope",
		"na-number-14-envelope",
		"na-6x9-envelope",
		"na-7x9-envelope",
		"na-9x11-envelope",
		"na-9x12-envelope",
		"na-10x13-envelope",
		"na-10x14-envelope",
		"na-10x15-envelope",
		"na-5x7",
		"na-8x10",
	}; 

    private static final MediaSizeName[] myEnumValueTable = {
		ISO_A0,
		ISO_A1,
		ISO_A2,
		ISO_A3,
		ISO_A4,
		ISO_A5,
		ISO_A6,
		ISO_A7,
		ISO_A8,
		ISO_A9,
		ISO_A10,
		ISO_B0,
		ISO_B1,
		ISO_B2,
		ISO_B3,
		ISO_B4,
		ISO_B5,
		ISO_B6,
		ISO_B7,
		ISO_B8,
		ISO_B9,
		ISO_B10,
		JIS_B0,
		JIS_B1,
		JIS_B2,
		JIS_B3,
		JIS_B4,
		JIS_B5,
		JIS_B6,
		JIS_B7,
		JIS_B8,
		JIS_B9,
		JIS_B10,
		ISO_C0,
		ISO_C1,
		ISO_C2,
		ISO_C3,
		ISO_C4,
		ISO_C5,	
		ISO_C6,	
		NA_LETTER,
		NA_LEGAL,
		EXECUTIVE,
		LEDGER,
		TABLOID,
		INVOICE,
		FOLIO,
		QUARTO,
		JAPANESE_POSTCARD,
		JAPANESE_DOUBLE_POSTCARD,
		A,
		B,
		C,
		D,
		E,
		ISO_DESIGNATED_LONG,
		ITALY_ENVELOPE,
		MONARCH_ENVELOPE,
		PERSONAL_ENVELOPE,
		NA_NUMBER_9_ENVELOPE,
		NA_NUMBER_10_ENVELOPE,
		NA_NUMBER_11_ENVELOPE,
		NA_NUMBER_12_ENVELOPE,
		NA_NUMBER_14_ENVELOPE,
		NA_6X9_ENVELOPE,
		NA_7X9_ENVELOPE,
		NA_9X11_ENVELOPE,
		NA_9X12_ENVELOPE,
		NA_10X13_ENVELOPE,
		NA_10X14_ENVELOPE,
		NA_10X15_ENVELOPE,
		NA_5X7,
		NA_8X10,
	};


    /**
     * Returns the string table for class MediaSizeName.
     */
    protected String[] getStringTable()
    {
	return (String[])myStringTable.clone();
    }

    /**
     * Returns the enumeration value table for class MediaSizeName.
     */
    protected EnumSyntax[] getEnumValueTable() {
	return (EnumSyntax[])myEnumValueTable.clone();
    }


}

Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar