public final class OrientationRequested extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
"application/postscript"
などの一部のドキュメント形式では、出力ストリーム・ページの方向はドキュメント・データ内で指定されます。 この情報は印刷ジョブの送信前にデバイス・ドライバで生成されます。 "text/plain"
などのその他のドキュメント形式には、ドキュメント・データ内の方向についての情報は含まれません。 この場合、ドキュメント・データの送信後、プリンタ側で方向をドキュメント・データにバインドできます。 "text/plain"
や"text/html"
などのドキュメント形式では、プリンタがOrientationRequested属性だけをサポートしていることを想定していますが、"application/postscript"
などではそのような想定はありません。 印刷ジョブを、常に複数のジョブ・テンプレート属性の値で制約することができる点は、ほかのジョブ・テンプレート属性と同じです。 ただしここでは、一般的にOrientationRequested属性はプリンタがサポートしているドキュメント形式の一部だけにサポートされている点に注意する必要があります。
IPP互換性: getName()
によって返されるカテゴリ名はIPP属性の名前です。 列挙の整数値はIPP列挙型値です。 toString()
メソッドは、属性値のIPP文字列表現を返します。
修飾子と型 | フィールド | 説明 |
---|---|---|
static OrientationRequested |
LANDSCAPE |
コンテンツは媒体上に横長に印刷されます。
|
static OrientationRequested |
PORTRAIT |
コンテンツは媒体上に縦長に印刷されます。
|
static OrientationRequested |
REVERSE_LANDSCAPE |
コンテンツは媒体上に横長に印刷されますが、ランドスケープとは逆になります。
|
static OrientationRequested |
REVERSE_PORTRAIT |
コンテンツは媒体上に縦長に印刷されますが、ポートレートとは上下逆になります。
|
修飾子 | コンストラクタ | 説明 |
---|---|---|
protected |
OrientationRequested(int value) |
指定された整数値を使用して新しい方向要求列挙値を構築します。
|
修飾子と型 | メソッド | 説明 |
---|---|---|
Class<? extends Attribute> |
getCategory() |
この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
|
protected EnumSyntax[] |
getEnumValueTable() |
OrientationRequestedクラスの列挙値テーブルを返します。
|
String |
getName() |
属性値がインスタンスとなるカテゴリの名前を返します。
|
protected int |
getOffset() |
OrientationRequestedクラスで使用される最小の整数値を返します。
|
protected String[] |
getStringTable() |
OrientationRequestedクラスの文字列テーブルを返します。
|
clone, getValue, hashCode, readResolve, toString
public static final OrientationRequested PORTRAIT
public static final OrientationRequested LANDSCAPE
public static final OrientationRequested REVERSE_LANDSCAPE
public static final OrientationRequested REVERSE_PORTRAIT
Finishings
属性で使用されます。 したがって、一般的な単純な仕上げ処理デバイスを使用して、ヘブライ語などの中東の言語の"text/plain"
ポートレート・モード・ドキュメントの「右側」を綴じることができます。 protected OrientationRequested(int value)
value
- 整数値。protected String[] getStringTable()
getStringTable
、クラスEnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable
、クラスEnumSyntax
protected int getOffset()
getOffset
、クラスEnumSyntax
public final Class<? extends Attribute> getCategory()
OrientationRequestedクラスの場合、カテゴリはOrientationRequestedクラス自身です。
getCategory
、インタフェースAttribute
java.lang.Class
クラスのインスタンス。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。