planet.action
クラス MovePointerAction

java.lang.Object
  上位を拡張 planet.action.MovePointerAction
すべての実装されたインタフェース:
SimpleAction

public class MovePointerAction
extends java.lang.Object
implements SimpleAction

惑星ポインタ移動アクション


フィールドの概要
protected  PlanetViewCanvas canvas
          表示キャンバス
protected  int displacement
          ポインタで指定された惑星のリストインデックス移動量
protected  int index
          ポインタのインデックス
protected static java.util.Comparator ORBIT_COMPARATOR
          惑星の軌道長半径の比較オブジェクト
 
コンストラクタの概要
MovePointerAction(PlanetViewCanvas canvas, int index, int displacement)
          惑星ポインタ移動アクションを構築する
 
メソッドの概要
 void doAction()
          惑星ポインタを移動する
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

ORBIT_COMPARATOR

protected static final java.util.Comparator ORBIT_COMPARATOR
惑星の軌道長半径の比較オブジェクト


canvas

protected PlanetViewCanvas canvas
表示キャンバス


index

protected int index
ポインタのインデックス


displacement

protected int displacement
ポインタで指定された惑星のリストインデックス移動量

コンストラクタの詳細

MovePointerAction

public MovePointerAction(PlanetViewCanvas canvas,
                         int index,
                         int displacement)
惑星ポインタ移動アクションを構築する

パラメータ:
canvas - 表示キャンバス
index - ポインタのインデックス
displacement - ポインタで指定された惑星のリストインデックス移動量
メソッドの詳細

doAction

public void doAction()
惑星ポインタを移動する

定義:
インタフェース SimpleAction 内の doAction