クラスjava.awt.ComponentOrientation
の使用
ComponentOrientationを使用するパッケージ
パッケージ
説明
ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
-
java.awtでのComponentOrientationの使用
ComponentOrientationとして宣言されたjava.awtのフィールド修飾子と型フィールド説明static final ComponentOrientationComponentOrientation.LEFT_TO_RIGHTアイテムは左から右に配置され、行は上から下に配置されます。英語、フランス語などがこれに該当します。static final ComponentOrientationComponentOrientation.RIGHT_TO_LEFTアイテムは右から左に配置され、行は上から下に配置されます。アラビア語、ヘブライ語などがこれに該当します。static final ComponentOrientationComponentOrientation.UNKNOWNコンポーネントの配置が設定されていないことを示します。ComponentOrientationを返すjava.awtのメソッド修飾子と型メソッド説明Component.getComponentOrientation()このコンポーネント内の要素またはテキストを整列するために使用する、言語に依存する方向を取得します。static ComponentOrientationComponentOrientation.getOrientation(Locale locale) 措定されたロケールに対して適切な配置方向を返します。static ComponentOrientationComponentOrientation.getOrientation(ResourceBundle bdl) 非推奨。型ComponentOrientationのパラメータを持つjava.awtのメソッド修飾子と型メソッド説明voidComponent.applyComponentOrientation(ComponentOrientation orientation) このコンポーネントと、その中に含まれているすべてのコンポーネントのComponentOrientationプロパティを設定します。voidContainer.applyComponentOrientation(ComponentOrientation o) このコンテナと、その中に含まれているすべてのコンポーネントのComponentOrientationプロパティを設定します。voidComponent.setComponentOrientation(ComponentOrientation o) このコンポーネント内の要素またはテキストを整列するために使用する、言語に依存する方向を設定します。 -
javax.swingでのComponentOrientationの使用
型ComponentOrientationのパラメータを持つjavax.swingのメソッド修飾子と型メソッド説明voidこのメニューおよびこのメニューに含まれるすべてのコンポーネントのComponentOrientationプロパティを設定します。voidこのメニューの向きと、ComponentOrientation引数によって決定される関連付けられたポップアップ・メニューを設定します。voidJScrollPane.setComponentOrientation(ComponentOrientation co) 垂直および水平スクロール・バーの方向を、ComponentOrientation引数で指定された方向に設定します。
getOrientation(java.util.Locale)を使用します。