|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.awt.geom.Point2D
java.awt.Point
Particle
public class Particle
粒子クラス
入れ子のクラスの概要 |
---|
クラス java.awt.geom.Point2D から継承された入れ子のクラス/インタフェース |
---|
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
フィールドの概要 | |
---|---|
protected boolean |
add
粒子の状態 核に接触した場合は true |
static int |
DOWN
下を表すフィールド |
static int |
LEFT
左を表すフィールド |
static int |
RIGHT
右を表すフィールド |
static int |
UP
上を表すフィールド |
クラス java.awt.Point から継承されたフィールド |
---|
x, y |
コンストラクタの概要 | |
---|---|
Particle(int x,
int y)
粒子オブジェクトを構築する |
メソッドの概要 | |
---|---|
void |
addCore()
核に接触させる |
boolean |
isAddCore()
核に接触しているかどうかを返す |
void |
move(int direction)
粒子を移動させる |
クラス java.awt.Point から継承されたメソッド |
---|
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, toString, translate |
クラス java.awt.geom.Point2D から継承されたメソッド |
---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation |
クラス java.lang.Object から継承されたメソッド |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
public static final int UP
public static final int DOWN
public static final int LEFT
public static final int RIGHT
protected boolean add
コンストラクタの詳細 |
---|
public Particle(int x, int y)
x
- 粒子の x 座標y
- 粒子の y 座標メソッドの詳細 |
---|
public void move(int direction)
direction
- 粒子を移動させる方向を表すフィールドpublic void addCore()
public boolean isAddCore()
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |