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.PrintJobAttribute ; 12 import javax.print.attribute.PrintRequestAttribute ; 13 14 34 public final class PresentationDirection extends EnumSyntax 35 implements PrintJobAttribute , PrintRequestAttribute { 36 37 private static final long serialVersionUID = 8294728067230931780L; 38 39 43 public static final PresentationDirection TOBOTTOM_TORIGHT = 44 new PresentationDirection (0); 45 46 50 public static final PresentationDirection TOBOTTOM_TOLEFT = 51 new PresentationDirection (1); 52 53 57 public static final PresentationDirection TOTOP_TORIGHT = 58 new PresentationDirection (2); 59 60 64 public static final PresentationDirection TOTOP_TOLEFT = 65 new PresentationDirection (3); 66 67 71 public static final PresentationDirection TORIGHT_TOBOTTOM = 72 new PresentationDirection (4); 73 74 78 public static final PresentationDirection TORIGHT_TOTOP = 79 new PresentationDirection (5); 80 81 85 public static final PresentationDirection TOLEFT_TOBOTTOM = 86 new PresentationDirection (6); 87 88 92 public static final PresentationDirection TOLEFT_TOTOP = 93 new PresentationDirection (7); 94 95 101 private PresentationDirection(int value) { 102 super (value); 103 } 104 105 private static final String [] myStringTable = { 106 "tobottom-toright", 107 "tobottom-toleft", 108 "totop-toright", 109 "totop-toleft", 110 "toright-tobottom", 111 "toright-totop", 112 "toleft-tobottom", 113 "toleft-totop", 114 }; 115 116 private static final PresentationDirection [] myEnumValueTable = { 117 TOBOTTOM_TORIGHT, 118 TOBOTTOM_TOLEFT, 119 TOTOP_TORIGHT, 120 TOTOP_TOLEFT, 121 TORIGHT_TOBOTTOM, 122 TORIGHT_TOTOP, 123 TOLEFT_TOBOTTOM, 124 TOLEFT_TOTOP, 125 }; 126 127 130 protected String [] getStringTable() { 131 return myStringTable; 132 } 133 134 137 protected EnumSyntax [] getEnumValueTable() { 138 return myEnumValueTable; 139 } 140 141 151 public final Class <? extends Attribute > getCategory() { 152 return PresentationDirection .class; 153 } 154 155 164 public final String getName() { 165 return "presentation-direction"; 166 } 167 168 } 169 | Popular Tags |