|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectsystem.Point
public final class Point
座標のクラス
| コンストラクタの概要 | |
|---|---|
Point(int x,
int y)
コンストラクタ |
|
Point(Point point)
|
|
| メソッドの概要 | |
|---|---|
boolean |
equalsPoint(int x,
int y)
指定された座標と等しいかどうかを返します |
boolean |
equalsPoint(Point point)
指定された座標と等しいかどうかを返します |
int |
getX()
x座標を返します |
int |
getY()
y座標を返します |
void |
moveTo(Direction direction)
Pointの座標を,その方向に動いた状態に更新します. |
void |
setX(int x)
x座標をセットします |
void |
setY(int y)
y座標をセットします |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public Point(int x,
int y)
x - y - public Point(Point point)
| メソッドの詳細 |
|---|
public int getX()
public void setX(int x)
x - public int getY()
public void setY(int y)
y - public boolean equalsPoint(Point point)
point -
public boolean equalsPoint(int x,
int y)
x - y -
public void moveTo(Direction direction)
direction -
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||