public enum TextAlignment extends Enum<TextAlignment>
TextAlignment列挙型は、テキストの水平文字位置を表します。| 列挙型定数と説明 |
|---|
CENTER
中央揃えされたテキスト位置を表します(左右不揃い)。
|
JUSTIFY
両端揃えされたテキスト位置を表します。
|
LEFT
左に揃えたテキスト位置を表します(左揃え、右不揃い)。
|
RIGHT
右に揃えたテキスト位置を表します(右揃え、左不揃い)。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
static TextAlignment |
valueOf(String name)
指定された名前を持つ、この型の列挙型定数を返します。
|
static TextAlignment[] |
values()
この列挙型の定数を含む配列を、宣言されている順序で返します。
|
public static final TextAlignment LEFT
public static final TextAlignment CENTER
public static final TextAlignment RIGHT
public static final TextAlignment JUSTIFY
public static TextAlignment[] values()
for (TextAlignment c : TextAlignment.values()) System.out.println(c);
public static TextAlignment valueOf(String name)
name - 返される列挙型定数の名前。IllegalArgumentException - 指定された名前を持つ定数をこの列挙型が持っていない場合NullPointerException - 引数がnullの場合Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.