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 47 public final class OrientationRequested extends EnumSyntax 48 implements DocAttribute , PrintRequestAttribute , PrintJobAttribute { 49 50 private static final long serialVersionUID = -4447437289862822276L; 51 52 55 public static final OrientationRequested 56 PORTRAIT = new OrientationRequested (3); 57 58 67 public static final OrientationRequested 68 LANDSCAPE = new OrientationRequested (4); 69 70 79 public static final OrientationRequested 80 REVERSE_LANDSCAPE = new OrientationRequested (5); 81 82 95 public static final OrientationRequested 96 REVERSE_PORTRAIT = new OrientationRequested (6); 97 98 104 protected OrientationRequested(int value) { 105 super(value); 106 } 107 108 private static final String [] myStringTable = { 109 "portrait", 110 "landscape", 111 "reverse-landscape", 112 "reverse-portrait" 113 }; 114 115 private static final OrientationRequested [] myEnumValueTable = { 116 PORTRAIT, 117 LANDSCAPE, 118 REVERSE_LANDSCAPE, 119 REVERSE_PORTRAIT 120 }; 121 122 125 protected String [] getStringTable() { 126 return myStringTable; 127 } 128 129 132 protected EnumSyntax [] getEnumValueTable() { 133 return myEnumValueTable; 134 } 135 136 139 protected int getOffset() { 140 return 3; 141 } 142 143 153 public final Class <? extends Attribute > getCategory() { 154 return OrientationRequested .class; 155 } 156 157 166 public final String getName() { 167 return "orientation-requested"; 168 } 169 170 } 171 | Popular Tags |