|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.ObjectPendulumActionManager
public class PendulumActionManager
アクション管理クラス
フィールドの概要 | |
---|---|
protected double |
cv
速度増分 |
protected static java.text.DecimalFormat |
DFORM
数値書式 |
protected double |
dt
時間増分 |
protected Motion |
motion
振り子運動 |
protected java.awt.Point |
mouse
マウス位置を表す Point |
static int |
N
角度分割数 |
protected PendulumViewPanel |
panel
表示パネル |
protected double |
period
振り子の周期 |
static double |
THETA
初期角度の限度 |
protected double |
theta0
初期角度 |
protected java.lang.Thread |
thread
表示更新スレッド |
protected int |
waitTime
アニメーション表示間隔 |
コンストラクタの概要 | |
---|---|
PendulumActionManager(PendulumViewPanel panel)
アクション管理オブジェクトを構築する |
メソッドの概要 | |
---|---|
double |
getAngle()
振り子の角度を返す |
double |
getInitialAngle()
振り子の初期角度を返す |
java.lang.String |
info()
振り子運動情報を返す |
void |
mouseClicked(java.awt.event.MouseEvent e)
マウスをクリックした時の処理を行う |
void |
mouseDragged(java.awt.event.MouseEvent e)
マウスをドラッグした時の処理を行う |
void |
mouseEntered(java.awt.event.MouseEvent e)
マウスがパネルに入った時の処理を行う |
void |
mouseExited(java.awt.event.MouseEvent e)
マウスがパネルから出た時の処理を行う |
void |
mouseMoved(java.awt.event.MouseEvent e)
マウスを移動させた時の処理を行う |
void |
mousePressed(java.awt.event.MouseEvent e)
マウスボタンを押した時の処理を行う |
void |
mouseReleased(java.awt.event.MouseEvent e)
マウスボタンを離した時の処理を行う |
void |
run()
スレッドを実行する |
void |
setParameters(double length,
double g)
パラメータを設定する |
void |
start()
スレッドの実行を開始する |
void |
stop()
スレッドの実行を停止する |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int N
public static final double THETA
protected static final java.text.DecimalFormat DFORM
protected PendulumViewPanel panel
protected int waitTime
protected double theta0
protected double period
protected double dt
protected double cv
protected Motion motion
protected java.awt.Point mouse
Point
protected java.lang.Thread thread
コンストラクタの詳細 |
---|
public PendulumActionManager(PendulumViewPanel panel)
panel
- 表示パネルメソッドの詳細 |
---|
public void start()
public void run()
java.lang.Runnable
内の run
public void stop()
public void mousePressed(java.awt.event.MouseEvent e)
java.awt.event.MouseListener
内の mousePressed
e
- マウスアクションが発生したことを示すイベントpublic void mouseReleased(java.awt.event.MouseEvent e)
java.awt.event.MouseListener
内の mouseReleased
e
- マウスアクションが発生したことを示すイベントpublic void mouseClicked(java.awt.event.MouseEvent e)
java.awt.event.MouseListener
内の mouseClicked
e
- マウスアクションが発生したことを示すイベントpublic void mouseEntered(java.awt.event.MouseEvent e)
java.awt.event.MouseListener
内の mouseEntered
e
- マウスアクションが発生したことを示すイベントpublic void mouseExited(java.awt.event.MouseEvent e)
java.awt.event.MouseListener
内の mouseExited
e
- マウスアクションが発生したことを示すイベントpublic void mouseMoved(java.awt.event.MouseEvent e)
java.awt.event.MouseMotionListener
内の mouseMoved
e
- マウスアクションが発生したことを示すイベントpublic void mouseDragged(java.awt.event.MouseEvent e)
java.awt.event.MouseMotionListener
内の mouseDragged
e
- マウスアクションが発生したことを示すイベントpublic void setParameters(double length, double g)
length
- 振り子長さg
- 重力加速度public double getInitialAngle()
public double getAngle()
public java.lang.String info()
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |