jp.go.ipa.jgcl
クラス JgclWhichSide

java.lang.Object
  |
  +--jp.go.ipa.jgcl.JgclTypes
        |
        +--jp.go.ipa.jgcl.JgclWhichSide

public class JgclWhichSide
extends JgclTypes

幾何要素のどちら側かを表す定数を保持するクラス。

このクラスのインスタンスは作れない。

バージョン:
$Revision: 1.7 $, $Date: 2000/04/26 09:39:28 $
作成者:
Information-technology Promotion Agency, Japan

フィールドの概要
static int BACK
          後ろ側を示す定数
static int BOTH
          両側を示す定数
static int FRONT
          前側を示す定数
static int IN
          内側を示す定数
static int LEFT
          左側を示す定数
static int ON
          要素上を示す定数
static int OUT
          外側を示す定数
static int RIGHT
          右側を示す定数
 
メソッドの概要
static int reverse(int value)
          定数値で与えられた「側」とは逆の側を示す定数を返す。
static java.lang.String toString(int value)
          このクラスの static フィールドが保持する定数の値をフィールド名に変換する。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

BOTH

public static final int BOTH
両側を示す定数

ON

public static final int ON
要素上を示す定数

RIGHT

public static final int RIGHT
右側を示す定数

LEFT

public static final int LEFT
左側を示す定数

FRONT

public static final int FRONT
前側を示す定数

BACK

public static final int BACK
後ろ側を示す定数

IN

public static final int IN
内側を示す定数

OUT

public static final int OUT
外側を示す定数
メソッドの詳細

reverse

public static int reverse(int value)
定数値で与えられた「側」とは逆の側を示す定数を返す。

与えられた値に対応する「側」、もしくはその逆の側が存在しない場合には JgclInvalidArgumentValue の例外を投げる。

BOTH および ON には逆の側が存在しない。

パラメータ:
value - このクラスの static フィールドが保持する定数の値
戻り値:
逆の側を示す定数
関連項目:
JgclInvalidArgumentValue

toString

public static java.lang.String toString(int value)
このクラスの static フィールドが保持する定数の値をフィールド名に変換する。

与えられた値に対応するフィールドが存在しない場合には JgclInvalidArgumentValue の例外を投げる。

パラメータ:
value - このクラスの static フィールドが保持する定数の値
戻り値:
対応するフィールド名
関連項目:
JgclInvalidArgumentValue