diff options
| author | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-17 18:09:40 +0000 |
|---|---|---|
| committer | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-17 18:09:40 +0000 |
| commit | 2d8cf20d0d5ca6b1fbdefc22229d4b7cf1497ede (patch) | |
| tree | c976ca91e3ef0bda3b34b37c0195145638d8d08e /libjava/classpath/javax/print/attribute/standard/OrientationRequested.java | |
| parent | a3ef37ddfeddcc5b0f1c5068d8fdeb25a302d5cd (diff) | |
| download | ppe42-gcc-2d8cf20d0d5ca6b1fbdefc22229d4b7cf1497ede.tar.gz ppe42-gcc-2d8cf20d0d5ca6b1fbdefc22229d4b7cf1497ede.zip | |
Imported GNU Classpath 0.20
* Makefile.am (AM_CPPFLAGS): Add classpath/include.
* java/nio/charset/spi/CharsetProvider.java: New override file.
* java/security/Security.java: Likewise.
* sources.am: Regenerated.
* Makefile.in: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/javax/print/attribute/standard/OrientationRequested.java')
| -rw-r--r-- | libjava/classpath/javax/print/attribute/standard/OrientationRequested.java | 90 |
1 files changed, 80 insertions, 10 deletions
diff --git a/libjava/classpath/javax/print/attribute/standard/OrientationRequested.java b/libjava/classpath/javax/print/attribute/standard/OrientationRequested.java index ca63fffdaeb..1f9f0bf6f7e 100644 --- a/libjava/classpath/javax/print/attribute/standard/OrientationRequested.java +++ b/libjava/classpath/javax/print/attribute/standard/OrientationRequested.java @@ -1,5 +1,5 @@ /* OrientationRequested.java -- - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -44,25 +44,64 @@ import javax.print.attribute.PrintRequestAttribute; /** + * The <code>OrientationRequested</code> printing attribute specifies + * the desired orientation of the print data on the media sheet. + * <p> + * The effect of this attribute may depend on the document format as + * some document formats (e.g. postscript) contains the orientation + * inside the print data. However for other formats like e.g. plain + * text this attribute will have an effect on the orientation. + * </p> + * <p> + * <b>IPP Compatibility:</b> OrientationRequested is an IPP 1.1 attribute. + * </p> + * * @author Michael Koch (konqueror@gmx.de) + * @author Wolfgang Baer (WBaer@gmx.de) */ public final class OrientationRequested extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute { private static final long serialVersionUID = -4447437289862822276L; + /** + * Orientation as portrait. + */ public static final OrientationRequested PORTRAIT = - new OrientationRequested(0); + new OrientationRequested(3); + + /** + * Orientation as landscape. + */ public static final OrientationRequested LANDSCAPE = - new OrientationRequested(1); + new OrientationRequested(4); + + /** + * Orientation as reversed landscape. + */ public static final OrientationRequested REVERSE_LANDSCAPE = - new OrientationRequested(2); + new OrientationRequested(5); + + /** + * Orientation as reversed portrait. + */ public static final OrientationRequested REVERSE_PORTRAIT = - new OrientationRequested(3); + new OrientationRequested(6); + - /** - * Constructs a <code>OrientationRequested</code> object. - */ + private static final String[] stringTable = { "portrait", "landscape", + "reverse-landscape", + "reverse-portrait" }; + + private static final OrientationRequested[] + enumValueTable = { PORTRAIT, LANDSCAPE, + REVERSE_LANDSCAPE, REVERSE_PORTRAIT }; + + /** + * Constructs a <code>OrientationRequested</code> object. + * + * @param value the value + */ protected OrientationRequested(int value) { super(value); @@ -71,7 +110,7 @@ public final class OrientationRequested extends EnumSyntax /** * Returns category of this class. * - * @return the class <code>OrientationRequested</code> itself + * @return The class <code>OrientationRequested</code> itself. */ public Class getCategory() { @@ -81,10 +120,41 @@ public final class OrientationRequested extends EnumSyntax /** * Returns the name of this attribute. * - * @return the name + * @return The name "orientation-requested". */ public String getName() { return "orientation-requested"; } + + /** + * Returns a table with the enumeration values represented as strings + * for this object. + * + * @return The enumeration values as strings. + */ + protected String[] getStringTable() + { + return stringTable; + } + + /** + * Returns a table with the enumeration values for this object. + * + * @return The enumeration values. + */ + protected EnumSyntax[] getEnumValueTable() + { + return enumValueTable; + } + + /** + * Returns the lowest used value by the enumerations of this class. + * . + * @return The lowest value used. + */ + protected int getOffset() + { + return 3; + } } |

