クラス SpeedIndicatorUI
java.lang.Object
net.trpfrog.medipro_game.space.ui.SpeedIndicatorUI
- すべての実装されたインタフェース:
Drawable
public class SpeedIndicatorUI extends java.lang.Object implements Drawable
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static int
LOWER_LEFT
速度計を画面左下に描画するための定数です。static int
LOWER_RIGHT
速度計を画面右下に描画するための定数です。static int
UPPER_LEFT
速度計を画面左上に描画するための定数です。static int
UPPER_RIGHT
速度計を画面右上に描画するための定数です。 -
コンストラクタの概要
コンストラクタ コンストラクタ 説明 SpeedIndicatorUI(MovableSymbol movingSymbol, int position)
速度計を初期化します。SpeedIndicatorUI(MovableSymbol movingSymbol, int position, boolean clockwise)
速度計を初期化します。 -
メソッドの概要
修飾子とタイプ メソッド 説明 void
draw(java.awt.Graphics2D g)
MainViewに描画するpaintComponentの中身を定義します。クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
フィールド詳細
-
UPPER_LEFT
public static final int UPPER_LEFT速度計を画面左上に描画するための定数です。- 関連項目:
- 定数フィールド値
-
UPPER_RIGHT
public static final int UPPER_RIGHT速度計を画面右上に描画するための定数です。- 関連項目:
- 定数フィールド値
-
LOWER_LEFT
public static final int LOWER_LEFT速度計を画面左下に描画するための定数です。- 関連項目:
- 定数フィールド値
-
LOWER_RIGHT
public static final int LOWER_RIGHT速度計を画面右下に描画するための定数です。- 関連項目:
- 定数フィールド値
-
-
コンストラクタの詳細
-
SpeedIndicatorUI
速度計を初期化します。- パラメータ:
movingSymbol
- 速度を見たいMovableSymbol
position
- 速度計の画面上の位置、定数で決めますclockwise
- 時計回りに針を動かすか
-
SpeedIndicatorUI
速度計を初期化します。針は反時計回りに動きます。- パラメータ:
movingSymbol
- 速度を見たいMovableSymbol
position
- 速度計の画面上の位置、定数で決めます
-
-
メソッドの詳細