1 /*
2 * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
271 public final Class<? extends Attribute> getCategory() {
272 return MediaSize.class;
273 }
274
275 /**
276 * Get the name of the category of which this attribute value is an
277 * instance.
278 * <P>
279 * For class MediaSize and any vendor-defined subclasses, the category
280 * name is <CODE>"media-size"</CODE>.
281 *
282 * @return Attribute category name.
283 */
284 public final String getName() {
285 return "media-size";
286 }
287
288 /**
289 * Class MediaSize.ISO includes {@link MediaSize MediaSize} values for ISO
290 * media.
291 * <P>
292 */
293 public final static class ISO {
294 /**
295 * Specifies the ISO A0 size, 841 mm by 1189 mm.
296 */
297 public static final MediaSize
298 A0 = new MediaSize(841, 1189, Size2DSyntax.MM, MediaSizeName.ISO_A0);
299 /**
300 * Specifies the ISO A1 size, 594 mm by 841 mm.
301 */
302 public static final MediaSize
303 A1 = new MediaSize(594, 841, Size2DSyntax.MM, MediaSizeName.ISO_A1);
304 /**
305 * Specifies the ISO A2 size, 420 mm by 594 mm.
306 */
307 public static final MediaSize
308 A2 = new MediaSize(420, 594, Size2DSyntax.MM, MediaSizeName.ISO_A2);
309 /**
310 * Specifies the ISO A3 size, 297 mm by 420 mm.
311 */
|
1 /*
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
271 public final Class<? extends Attribute> getCategory() {
272 return MediaSize.class;
273 }
274
275 /**
276 * Get the name of the category of which this attribute value is an
277 * instance.
278 * <P>
279 * For class MediaSize and any vendor-defined subclasses, the category
280 * name is <CODE>"media-size"</CODE>.
281 *
282 * @return Attribute category name.
283 */
284 public final String getName() {
285 return "media-size";
286 }
287
288 /**
289 * Class MediaSize.ISO includes {@link MediaSize MediaSize} values for ISO
290 * media.
291 */
292 public final static class ISO {
293 /**
294 * Specifies the ISO A0 size, 841 mm by 1189 mm.
295 */
296 public static final MediaSize
297 A0 = new MediaSize(841, 1189, Size2DSyntax.MM, MediaSizeName.ISO_A0);
298 /**
299 * Specifies the ISO A1 size, 594 mm by 841 mm.
300 */
301 public static final MediaSize
302 A1 = new MediaSize(594, 841, Size2DSyntax.MM, MediaSizeName.ISO_A1);
303 /**
304 * Specifies the ISO A2 size, 420 mm by 594 mm.
305 */
306 public static final MediaSize
307 A2 = new MediaSize(420, 594, Size2DSyntax.MM, MediaSizeName.ISO_A2);
308 /**
309 * Specifies the ISO A3 size, 297 mm by 420 mm.
310 */
|