1 7 package javax.print.attribute.standard; 8 9 import javax.print.attribute.Attribute ; 10 import javax.print.attribute.EnumSyntax ; 11 import javax.print.attribute.DocAttribute ; 12 import javax.print.attribute.PrintRequestAttribute ; 13 import javax.print.attribute.PrintJobAttribute ; 14 15 205 public class Finishings extends EnumSyntax  206 implements DocAttribute , PrintRequestAttribute , PrintJobAttribute { 207 208 private static final long serialVersionUID = -627840419548391754L; 209 210 213 public static final Finishings NONE = new Finishings (3); 214 215 219 public static final Finishings STAPLE = new Finishings (4); 220 221 227 public static final Finishings COVER = new Finishings (6); 228 229 233 public static final Finishings BIND = new Finishings (7); 234 235 240 public static final Finishings SADDLE_STITCH = 241 new Finishings (8); 242 243 248 public static final Finishings EDGE_STITCH = 249 new Finishings (9); 250 251 254 public static final Finishings STAPLE_TOP_LEFT = 255 new Finishings (20); 256 257 261 public static final Finishings STAPLE_BOTTOM_LEFT = 262 new Finishings (21); 263 264 267 public static final Finishings STAPLE_TOP_RIGHT = 268 new Finishings (22); 269 270 274 public static final Finishings STAPLE_BOTTOM_RIGHT = 275 new Finishings (23); 276 277 282 public static final Finishings EDGE_STITCH_LEFT = 283 new Finishings (24); 284 285 290 public static final Finishings EDGE_STITCH_TOP = 291 new Finishings (25); 292 293 298 public static final Finishings EDGE_STITCH_RIGHT = 299 new Finishings (26); 300 301 306 public static final Finishings EDGE_STITCH_BOTTOM = 307 new Finishings (27); 308 309 313 public static final Finishings STAPLE_DUAL_LEFT = 314 new Finishings (28); 315 316 320 public static final Finishings STAPLE_DUAL_TOP = 321 new Finishings (29); 322 323 327 public static final Finishings STAPLE_DUAL_RIGHT = 328 new Finishings (30); 329 330 334 public static final Finishings STAPLE_DUAL_BOTTOM = 335 new Finishings (31); 336 337 343 protected Finishings(int value) { 344 super(value); 345 } 346 347 private static final String [] myStringTable = 348 {"none", 349 "staple", 350 null, 351 "cover", 352 "bind", 353 "saddle-stitch", 354 "edge-stitch", 355 null, null, 357 null, 358 null, 359 null, 360 null, 361 null, 362 null, 363 null, 364 null, 365 "staple-top-left", 366 "staple-bottom-left", 367 "staple-top-right", 368 "staple-bottom-right", 369 "edge-stitch-left", 370 "edge-stitch-top", 371 "edge-stitch-right", 372 "edge-stitch-bottom", 373 "staple-dual-left", 374 "staple-dual-top", 375 "staple-dual-right", 376 "staple-dual-bottom" 377 }; 378 379 private static final Finishings [] myEnumValueTable = 380 {NONE, 381 STAPLE, 382 null, 383 COVER, 384 BIND, 385 SADDLE_STITCH, 386 EDGE_STITCH, 387 null, null, 389 null, 390 null, 391 null, 392 null, 393 null, 394 null, 395 null, 396 null, 397 STAPLE_TOP_LEFT, 398 STAPLE_BOTTOM_LEFT, 399 STAPLE_TOP_RIGHT, 400 STAPLE_BOTTOM_RIGHT, 401 EDGE_STITCH_LEFT, 402 EDGE_STITCH_TOP, 403 EDGE_STITCH_RIGHT, 404 EDGE_STITCH_BOTTOM, 405 STAPLE_DUAL_LEFT, 406 STAPLE_DUAL_TOP, 407 STAPLE_DUAL_RIGHT, 408 STAPLE_DUAL_BOTTOM 409 }; 410 411 414 protected String [] getStringTable() { 415 return (String [])myStringTable.clone(); 416 } 417 418 421 protected EnumSyntax [] getEnumValueTable() { 422 return (EnumSyntax [])myEnumValueTable.clone(); 423 } 424 425 428 protected int getOffset() { 429 return 3; 430 } 431 432 442 public final Class <? extends Attribute > getCategory() { 443 return Finishings .class; 444 } 445 446 455 public final String getName() { 456 return "finishings"; 457 } 458 459 } 460 | Popular Tags |