Source Code Cross Referenced for MediaSizeName.java in  » Apache-Harmony-Java-SE » javax-package » javax » print » attribute » standard » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » javax package » javax.print.attribute.standard 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *  Licensed to the Apache Software Foundation (ASF) under one or more
003:         *  contributor license agreements.  See the NOTICE file distributed with
004:         *  this work for additional information regarding copyright ownership.
005:         *  The ASF licenses this file to You under the Apache License, Version 2.0
006:         *  (the "License"); you may not use this file except in compliance with
007:         *  the License.  You may obtain a copy of the License at
008:         *
009:         *     http://www.apache.org/licenses/LICENSE-2.0
010:         *
011:         *  Unless required by applicable law or agreed to in writing, software
012:         *  distributed under the License is distributed on an "AS IS" BASIS,
013:         *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014:         *  See the License for the specific language governing permissions and
015:         *  limitations under the License.
016:         */
017:
018:        package javax.print.attribute.standard;
019:
020:        import javax.print.attribute.EnumSyntax;
021:
022:        /*
023:         * Table values are obtained from RFC2911: Internet Printing Protocol/1.1: 
024:         * Model and Semantics, Appendix C, http://ietf.org/rfc/rfc2911.txt?number=2911
025:         */
026:        public class MediaSizeName extends Media {
027:            private static final long serialVersionUID = 2778798329756942747L;
028:
029:            public static final MediaSizeName ISO_A0 = new MediaSizeName(0);
030:
031:            public static final MediaSizeName ISO_A1 = new MediaSizeName(1);
032:
033:            public static final MediaSizeName ISO_A2 = new MediaSizeName(2);
034:
035:            public static final MediaSizeName ISO_A3 = new MediaSizeName(3);
036:
037:            public static final MediaSizeName ISO_A4 = new MediaSizeName(4);
038:
039:            public static final MediaSizeName ISO_A5 = new MediaSizeName(5);
040:
041:            public static final MediaSizeName ISO_A6 = new MediaSizeName(6);
042:
043:            public static final MediaSizeName ISO_A7 = new MediaSizeName(7);
044:
045:            public static final MediaSizeName ISO_A8 = new MediaSizeName(8);
046:
047:            public static final MediaSizeName ISO_A9 = new MediaSizeName(9);
048:
049:            public static final MediaSizeName ISO_A10 = new MediaSizeName(10);
050:
051:            public static final MediaSizeName ISO_B0 = new MediaSizeName(11);
052:
053:            public static final MediaSizeName ISO_B1 = new MediaSizeName(12);
054:
055:            public static final MediaSizeName ISO_B2 = new MediaSizeName(13);
056:
057:            public static final MediaSizeName ISO_B3 = new MediaSizeName(14);
058:
059:            public static final MediaSizeName ISO_B4 = new MediaSizeName(15);
060:
061:            public static final MediaSizeName ISO_B5 = new MediaSizeName(16);
062:
063:            public static final MediaSizeName ISO_B6 = new MediaSizeName(17);
064:
065:            public static final MediaSizeName ISO_B7 = new MediaSizeName(18);
066:
067:            public static final MediaSizeName ISO_B8 = new MediaSizeName(19);
068:
069:            public static final MediaSizeName ISO_B9 = new MediaSizeName(20);
070:
071:            public static final MediaSizeName ISO_B10 = new MediaSizeName(21);
072:
073:            public static final MediaSizeName JIS_B0 = new MediaSizeName(22);
074:
075:            public static final MediaSizeName JIS_B1 = new MediaSizeName(23);
076:
077:            public static final MediaSizeName JIS_B2 = new MediaSizeName(24);
078:
079:            public static final MediaSizeName JIS_B3 = new MediaSizeName(25);
080:
081:            public static final MediaSizeName JIS_B4 = new MediaSizeName(26);
082:
083:            public static final MediaSizeName JIS_B5 = new MediaSizeName(27);
084:
085:            public static final MediaSizeName JIS_B6 = new MediaSizeName(28);
086:
087:            public static final MediaSizeName JIS_B7 = new MediaSizeName(29);
088:
089:            public static final MediaSizeName JIS_B8 = new MediaSizeName(30);
090:
091:            public static final MediaSizeName JIS_B9 = new MediaSizeName(31);
092:
093:            public static final MediaSizeName JIS_B10 = new MediaSizeName(32);
094:
095:            public static final MediaSizeName ISO_C0 = new MediaSizeName(33);
096:
097:            public static final MediaSizeName ISO_C1 = new MediaSizeName(34);
098:
099:            public static final MediaSizeName ISO_C2 = new MediaSizeName(35);
100:
101:            public static final MediaSizeName ISO_C3 = new MediaSizeName(36);
102:
103:            public static final MediaSizeName ISO_C4 = new MediaSizeName(37);
104:
105:            public static final MediaSizeName ISO_C5 = new MediaSizeName(38);
106:
107:            public static final MediaSizeName ISO_C6 = new MediaSizeName(39);
108:
109:            public static final MediaSizeName NA_LETTER = new MediaSizeName(40);
110:
111:            public static final MediaSizeName NA_LEGAL = new MediaSizeName(41);
112:
113:            public static final MediaSizeName EXECUTIVE = new MediaSizeName(42);
114:
115:            public static final MediaSizeName LEDGER = new MediaSizeName(43);
116:
117:            public static final MediaSizeName TABLOID = new MediaSizeName(44);
118:
119:            public static final MediaSizeName INVOICE = new MediaSizeName(45);
120:
121:            public static final MediaSizeName FOLIO = new MediaSizeName(46);
122:
123:            public static final MediaSizeName QUARTO = new MediaSizeName(47);
124:
125:            public static final MediaSizeName JAPANESE_POSTCARD = new MediaSizeName(
126:                    48);
127:
128:            public static final MediaSizeName JAPANESE_DOUBLE_POSTCARD = new MediaSizeName(
129:                    49);
130:
131:            public static final MediaSizeName A = new MediaSizeName(50);
132:
133:            public static final MediaSizeName B = new MediaSizeName(51);
134:
135:            public static final MediaSizeName C = new MediaSizeName(52);
136:
137:            public static final MediaSizeName D = new MediaSizeName(53);
138:
139:            public static final MediaSizeName E = new MediaSizeName(54);
140:
141:            public static final MediaSizeName ISO_DESIGNATED_LONG = new MediaSizeName(
142:                    55);
143:
144:            public static final MediaSizeName ITALY_ENVELOPE = new MediaSizeName(
145:                    56);
146:
147:            public static final MediaSizeName MONARCH_ENVELOPE = new MediaSizeName(
148:                    57);
149:
150:            public static final MediaSizeName PERSONAL_ENVELOPE = new MediaSizeName(
151:                    58);
152:
153:            public static final MediaSizeName NA_NUMBER_9_ENVELOPE = new MediaSizeName(
154:                    59);
155:
156:            public static final MediaSizeName NA_NUMBER_10_ENVELOPE = new MediaSizeName(
157:                    60);
158:
159:            public static final MediaSizeName NA_NUMBER_11_ENVELOPE = new MediaSizeName(
160:                    61);
161:
162:            public static final MediaSizeName NA_NUMBER_12_ENVELOPE = new MediaSizeName(
163:                    62);
164:
165:            public static final MediaSizeName NA_NUMBER_14_ENVELOPE = new MediaSizeName(
166:                    63);
167:
168:            public static final MediaSizeName NA_6X9_ENVELOPE = new MediaSizeName(
169:                    64);
170:
171:            public static final MediaSizeName NA_7X9_ENVELOPE = new MediaSizeName(
172:                    65);
173:
174:            public static final MediaSizeName NA_9X11_ENVELOPE = new MediaSizeName(
175:                    66);
176:
177:            public static final MediaSizeName NA_9X12_ENVELOPE = new MediaSizeName(
178:                    67);
179:
180:            public static final MediaSizeName NA_10X13_ENVELOPE = new MediaSizeName(
181:                    68);
182:
183:            public static final MediaSizeName NA_10X14_ENVELOPE = new MediaSizeName(
184:                    69);
185:
186:            public static final MediaSizeName NA_10X15_ENVELOPE = new MediaSizeName(
187:                    70);
188:
189:            public static final MediaSizeName NA_5X7 = new MediaSizeName(71);
190:
191:            public static final MediaSizeName NA_8X10 = new MediaSizeName(72);
192:
193:            private static final String[] stringTable = { "iso-a0", "iso-a1",
194:                    "iso-a2", "iso-a3", "iso-a4", "iso-a5", "iso-a6", "iso-a7",
195:                    "iso-a8", "iso-a9", "iso-a10", "iso-b0", "iso-b1",
196:                    "iso-b2", "iso-b3", "iso-b4", "iso-b5", "iso-b6", "iso-b7",
197:                    "iso-b8", "iso-b9", "iso-b10", "jis-b0", "jis-b1",
198:                    "jis-b2", "jis-b3", "jis-b4", "jis-b5", "jis-b6", "jis-b7",
199:                    "jis-b8", "jis-b9", "jis-b10", "iso-c0", "iso-c1",
200:                    "iso-c2", "iso-c3", "iso-c4", "iso-c5", "iso-c6",
201:                    "na-letter", "na-legal", "executive", "ledger", "tabloid",
202:                    "invoice", "folio", "quarto", "japanese-postcard",
203:                    "japanese-double-postcard", "a", "b", "c", "d", "e",
204:                    "iso-designated-long", "italy-envelope",
205:                    "monarch-envelope", "personal-envelope",
206:                    "na-number-9-envelope", "na-number-10-envelope",
207:                    "na-number-11-envelope", "na-number-12-envelope",
208:                    "na-number-14-envelope", "na-6x9-envelope",
209:                    "na-7x9-envelope", "na-9x11-envelope", "na-9x12-envelope",
210:                    "na-10x13-envelope", "na-10x14-envelope",
211:                    "na-10x15-envelope", "na-5x7", "na-8x10" };
212:
213:            private static final MediaSizeName[] enumValueTable = { ISO_A0,
214:                    ISO_A1, ISO_A2, ISO_A3, ISO_A4, ISO_A5, ISO_A6, ISO_A7,
215:                    ISO_A8, ISO_A9, ISO_A10, ISO_B0, ISO_B1, ISO_B2, ISO_B3,
216:                    ISO_B4, ISO_B5, ISO_B6, ISO_B7, ISO_B8, ISO_B9, ISO_B10,
217:                    JIS_B0, JIS_B1, JIS_B2, JIS_B3, JIS_B4, JIS_B5, JIS_B6,
218:                    JIS_B7, JIS_B8, JIS_B9, JIS_B10, ISO_C0, ISO_C1, ISO_C2,
219:                    ISO_C3, ISO_C4, ISO_C5, ISO_C6, NA_LETTER, NA_LEGAL,
220:                    EXECUTIVE, LEDGER, TABLOID, INVOICE, FOLIO, QUARTO,
221:                    JAPANESE_POSTCARD, JAPANESE_DOUBLE_POSTCARD, A, B, C, D, E,
222:                    ISO_DESIGNATED_LONG, ITALY_ENVELOPE, MONARCH_ENVELOPE,
223:                    PERSONAL_ENVELOPE, NA_NUMBER_9_ENVELOPE,
224:                    NA_NUMBER_10_ENVELOPE, NA_NUMBER_11_ENVELOPE,
225:                    NA_NUMBER_12_ENVELOPE, NA_NUMBER_14_ENVELOPE,
226:                    NA_6X9_ENVELOPE, NA_7X9_ENVELOPE, NA_9X11_ENVELOPE,
227:                    NA_9X12_ENVELOPE, NA_10X13_ENVELOPE, NA_10X14_ENVELOPE,
228:                    NA_10X15_ENVELOPE, NA_5X7, NA_8X10 };
229:
230:            protected MediaSizeName(int value) {
231:                super (value);
232:            }
233:
234:            @Override
235:            protected EnumSyntax[] getEnumValueTable() {
236:                return enumValueTable.clone();
237:            }
238:
239:            @Override
240:            protected String[] getStringTable() {
241:                return stringTable.clone();
242:            }
243:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.