1 7 package javax.print.attribute.standard; 8 9 import java.util.Locale ; 10 11 import javax.print.attribute.EnumSyntax ; 12 import javax.print.attribute.Attribute ; 13 14 29 public class MediaSizeName extends Media { 30 31 private static final long serialVersionUID = 2778798329756942747L; 32 33 36 public static final MediaSizeName ISO_A0 = new MediaSizeName (0); 37 40 public static final MediaSizeName ISO_A1 = new MediaSizeName (1); 41 44 public static final MediaSizeName ISO_A2 = new MediaSizeName (2); 45 48 public static final MediaSizeName ISO_A3 = new MediaSizeName (3); 49 52 public static final MediaSizeName ISO_A4 = new MediaSizeName (4); 53 56 public static final MediaSizeName ISO_A5 = new MediaSizeName (5); 57 60 public static final MediaSizeName ISO_A6 = new MediaSizeName (6); 61 64 public static final MediaSizeName ISO_A7 = new MediaSizeName (7); 65 68 public static final MediaSizeName ISO_A8 = new MediaSizeName (8); 69 72 public static final MediaSizeName ISO_A9 = new MediaSizeName (9); 73 76 public static final MediaSizeName ISO_A10 = new MediaSizeName (10); 77 78 81 public static final MediaSizeName ISO_B0 = new MediaSizeName (11); 82 85 public static final MediaSizeName ISO_B1 = new MediaSizeName (12); 86 89 public static final MediaSizeName ISO_B2 = new MediaSizeName (13); 90 93 public static final MediaSizeName ISO_B3 = new MediaSizeName (14); 94 97 public static final MediaSizeName ISO_B4 = new MediaSizeName (15); 98 101 public static final MediaSizeName ISO_B5 = new MediaSizeName (16); 102 105 public static final MediaSizeName ISO_B6 = new MediaSizeName (17); 106 109 public static final MediaSizeName ISO_B7 = new MediaSizeName (18); 110 113 public static final MediaSizeName ISO_B8 = new MediaSizeName (19); 114 117 public static final MediaSizeName ISO_B9 = new MediaSizeName (20); 118 121 public static final MediaSizeName ISO_B10 = new MediaSizeName (21); 122 123 126 public static final MediaSizeName JIS_B0 = new MediaSizeName (22); 127 130 public static final MediaSizeName JIS_B1 = new MediaSizeName (23); 131 134 public static final MediaSizeName JIS_B2 = new MediaSizeName (24); 135 138 public static final MediaSizeName JIS_B3 = new MediaSizeName (25); 139 142 public static final MediaSizeName JIS_B4 = new MediaSizeName (26); 143 146 public static final MediaSizeName JIS_B5 = new MediaSizeName (27); 147 150 public static final MediaSizeName JIS_B6 = new MediaSizeName (28); 151 154 public static final MediaSizeName JIS_B7 = new MediaSizeName (29); 155 158 public static final MediaSizeName JIS_B8 = new MediaSizeName (30); 159 162 public static final MediaSizeName JIS_B9 = new MediaSizeName (31); 163 166 public static final MediaSizeName JIS_B10 = new MediaSizeName (32); 167 168 171 public static final MediaSizeName ISO_C0 = new MediaSizeName (33); 172 175 public static final MediaSizeName ISO_C1 = new MediaSizeName (34); 176 179 public static final MediaSizeName ISO_C2 = new MediaSizeName (35); 180 183 public static final MediaSizeName ISO_C3 = new MediaSizeName (36); 184 187 public static final MediaSizeName ISO_C4 = new MediaSizeName (37); 188 191 public static final MediaSizeName ISO_C5 = new MediaSizeName (38); 192 195 public static final MediaSizeName ISO_C6 = new MediaSizeName (39); 196 199 public static final MediaSizeName NA_LETTER = new MediaSizeName (40); 200 201 204 public static final MediaSizeName NA_LEGAL = new MediaSizeName (41); 205 206 209 public static final MediaSizeName EXECUTIVE = new MediaSizeName (42); 210 211 214 public static final MediaSizeName LEDGER = new MediaSizeName (43); 215 216 219 public static final MediaSizeName TABLOID = new MediaSizeName (44); 220 221 224 public static final MediaSizeName INVOICE = new MediaSizeName (45); 225 226 229 public static final MediaSizeName FOLIO = new MediaSizeName (46); 230 231 234 public static final MediaSizeName QUARTO = new MediaSizeName (47); 235 236 239 public static final MediaSizeName 240 JAPANESE_POSTCARD = new MediaSizeName (48); 241 244 public static final MediaSizeName 245 JAPANESE_DOUBLE_POSTCARD = new MediaSizeName (49); 246 247 250 public static final MediaSizeName A = new MediaSizeName (50); 251 252 255 public static final MediaSizeName B = new MediaSizeName (51); 256 257 260 public static final MediaSizeName C = new MediaSizeName (52); 261 262 265 public static final MediaSizeName D = new MediaSizeName (53); 266 267 270 public static final MediaSizeName E = new MediaSizeName (54); 271 272 275 public static final MediaSizeName 276 ISO_DESIGNATED_LONG = new MediaSizeName (55); 277 278 281 public static final MediaSizeName 282 ITALY_ENVELOPE = new MediaSizeName (56); 284 287 public static final MediaSizeName 288 MONARCH_ENVELOPE = new MediaSizeName (57); 289 292 public static final MediaSizeName 293 PERSONAL_ENVELOPE = new MediaSizeName (58); 294 297 public static final MediaSizeName 298 NA_NUMBER_9_ENVELOPE = new MediaSizeName (59); 299 302 public static final MediaSizeName 303 NA_NUMBER_10_ENVELOPE = new MediaSizeName (60); 304 307 public static final MediaSizeName 308 NA_NUMBER_11_ENVELOPE = new MediaSizeName (61); 309 312 public static final MediaSizeName 313 NA_NUMBER_12_ENVELOPE = new MediaSizeName (62); 314 317 public static final MediaSizeName 318 NA_NUMBER_14_ENVELOPE = new MediaSizeName (63); 319 322 public static final MediaSizeName 323 NA_6X9_ENVELOPE = new MediaSizeName (64); 324 327 public static final MediaSizeName 328 NA_7X9_ENVELOPE = new MediaSizeName (65); 329 332 public static final MediaSizeName 333 NA_9X11_ENVELOPE = new MediaSizeName (66); 334 337 public static final MediaSizeName 338 NA_9X12_ENVELOPE = new MediaSizeName (67); 339 340 343 public static final MediaSizeName 344 NA_10X13_ENVELOPE = new MediaSizeName (68); 345 348 public static final MediaSizeName 349 NA_10X14_ENVELOPE = new MediaSizeName (69); 350 353 public static final MediaSizeName 354 NA_10X15_ENVELOPE = new MediaSizeName (70); 355 356 359 public static final MediaSizeName 360 NA_5X7 = new MediaSizeName (71); 361 362 365 public static final MediaSizeName 366 NA_8X10 = new MediaSizeName (72); 367 368 374 protected MediaSizeName(int value) { 375 super (value); 376 } 377 378 private static final String [] myStringTable = { 379 "iso-a0", 380 "iso-a1", 381 "iso-a2", 382 "iso-a3", 383 "iso-a4", 384 "iso-a5", 385 "iso-a6", 386 "iso-a7", 387 "iso-a8", 388 "iso-a9", 389 "iso-a10", 390 "iso-b0", 391 "iso-b1", 392 "iso-b2", 393 "iso-b3", 394 "iso-b4", 395 "iso-b5", 396 "iso-b6", 397 "iso-b7", 398 "iso-b8", 399 "iso-b9", 400 "iso-b10", 401 "jis-b0", 402 "jis-b1", 403 "jis-b2", 404 "jis-b3", 405 "jis-b4", 406 "jis-b5", 407 "jis-b6", 408 "jis-b7", 409 "jis-b8", 410 "jis-b9", 411 "jis-b10", 412 "iso-c0", 413 "iso-c1", 414 "iso-c2", 415 "iso-c3", 416 "iso-c4", 417 "iso-c5", 418 "iso-c6", 419 "na-letter", 420 "na-legal", 421 "executive", 422 "ledger", 423 "tabloid", 424 "invoice", 425 "folio", 426 "quarto", 427 "japanese-postcard", 428 "oufuko-postcard", 429 "a", 430 "b", 431 "c", 432 "d", 433 "e", 434 "iso-designated-long", 435 "italian-envelope", 436 "monarch-envelope", 437 "personal-envelope", 438 "na-number-9-envelope", 439 "na-number-10-envelope", 440 "na-number-11-envelope", 441 "na-number-12-envelope", 442 "na-number-14-envelope", 443 "na-6x9-envelope", 444 "na-7x9-envelope", 445 "na-9x11-envelope", 446 "na-9x12-envelope", 447 "na-10x13-envelope", 448 "na-10x14-envelope", 449 "na-10x15-envelope", 450 "na-5x7", 451 "na-8x10", 452 }; 453 454 private static final MediaSizeName [] myEnumValueTable = { 455 ISO_A0, 456 ISO_A1, 457 ISO_A2, 458 ISO_A3, 459 ISO_A4, 460 ISO_A5, 461 ISO_A6, 462 ISO_A7, 463 ISO_A8, 464 ISO_A9, 465 ISO_A10, 466 ISO_B0, 467 ISO_B1, 468 ISO_B2, 469 ISO_B3, 470 ISO_B4, 471 ISO_B5, 472 ISO_B6, 473 ISO_B7, 474 ISO_B8, 475 ISO_B9, 476 ISO_B10, 477 JIS_B0, 478 JIS_B1, 479 JIS_B2, 480 JIS_B3, 481 JIS_B4, 482 JIS_B5, 483 JIS_B6, 484 JIS_B7, 485 JIS_B8, 486 JIS_B9, 487 JIS_B10, 488 ISO_C0, 489 ISO_C1, 490 ISO_C2, 491 ISO_C3, 492 ISO_C4, 493 ISO_C5, 494 ISO_C6, 495 NA_LETTER, 496 NA_LEGAL, 497 EXECUTIVE, 498 LEDGER, 499 TABLOID, 500 INVOICE, 501 FOLIO, 502 QUARTO, 503 JAPANESE_POSTCARD, 504 JAPANESE_DOUBLE_POSTCARD, 505 A, 506 B, 507 C, 508 D, 509 E, 510 ISO_DESIGNATED_LONG, 511 ITALY_ENVELOPE, 512 MONARCH_ENVELOPE, 513 PERSONAL_ENVELOPE, 514 NA_NUMBER_9_ENVELOPE, 515 NA_NUMBER_10_ENVELOPE, 516 NA_NUMBER_11_ENVELOPE, 517 NA_NUMBER_12_ENVELOPE, 518 NA_NUMBER_14_ENVELOPE, 519 NA_6X9_ENVELOPE, 520 NA_7X9_ENVELOPE, 521 NA_9X11_ENVELOPE, 522 NA_9X12_ENVELOPE, 523 NA_10X13_ENVELOPE, 524 NA_10X14_ENVELOPE, 525 NA_10X15_ENVELOPE, 526 NA_5X7, 527 NA_8X10, 528 }; 529 530 531 534 protected String [] getStringTable() 535 { 536 return (String [])myStringTable.clone(); 537 } 538 539 542 protected EnumSyntax [] getEnumValueTable() { 543 return (EnumSyntax [])myEnumValueTable.clone(); 544 } 545 546 547 } 548 | Popular Tags |