to.tetramorph.almanac
クラス MoonFace

java.lang.Object
  上位を拡張 to.tetramorph.almanac.MoonFace

public class MoonFace
extends Object

日付とムーンフェイス(新月、上弦、満月、下弦)を保存するクラス。 エニアグラムの九相を保存したりするのにも使う。


フィールドの概要
 Calendar date
           
 int face
           
 
コンストラクタの概要
MoonFace(Calendar date, int face)
           
 
メソッドの概要
 String getName()
           
 String getTime()
          24時間制で時刻文字列を返す。"
 String toString()
          このオブジェクトの日付と月相を文字列で返す。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

face

public int face

date

public Calendar date
コンストラクタの詳細

MoonFace

public MoonFace(Calendar date,
                int face)
パラメータ:
date - faceで指定した月相になる日。
face - 0〜3で月の新月、上弦、満月、下弦を表す
メソッドの詳細

toString

public String toString()
このオブジェクトの日付と月相を文字列で返す。

オーバーライド:
クラス Object 内の toString

getTime

public String getTime()
24時間制で時刻文字列を返す。"0:00"〜"23:59"


getName

public String getName()