public enum Orientation extends Enum<Orientation>
| 列挙型定数と説明 |
|---|
HORIZONTAL
水平方向(右<->左)</->
|
VERTICAL
垂直方向(上<->下)</->
|
| 修飾子と型 | メソッドと説明 |
|---|---|
static Orientation |
valueOf(String name)
指定された名前を持つ、この型の列挙型定数を返します。
|
static Orientation[] |
values()
この列挙型の定数を含む配列を、宣言されている順序で返します。
|
public static final Orientation HORIZONTAL
public static final Orientation VERTICAL
public static Orientation[] values()
for (Orientation c : Orientation.values()) System.out.println(c);
public static Orientation valueOf(String name)
name - 返される列挙型定数の名前。IllegalArgumentException - 指定された名前を持つ定数をこの列挙型が持っていない場合NullPointerException - 引数がnullの場合Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.