|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectworldmap.WorldMapModel
public class WorldMapModel
2次元マップデータモデル
フィールドの概要 | |
---|---|
static int |
AREA
領域描画モードを表す整数 |
protected java.awt.Color[] |
color
領域表示色を格納した配列 |
private int |
column
データの列の数 |
static int |
DOT
点描画モードを表す整数 |
static int |
OCEAN
海 (ロック時書換無し) を表す整数 |
boolean |
oceanLock
海変更ロック |
private java.awt.Dimension |
panelSize
画面サイズ |
private int[] |
point
地図データを格納した配列 |
protected int |
pointer
領域ポインタ |
private int |
row
データの行の数 |
int |
scale
描画拡大率 |
private int |
swdraw
描画モード |
private java.awt.geom.Point2D |
theta
視点位置を表す Point2D |
コンストラクタの概要 | |
---|---|
WorldMapModel()
2次元マップデータモデルを構築する |
メソッドの概要 | |
---|---|
void |
changeMap(int mx,
int my)
地図を変更する |
int |
getColumn()
データの列の数を返す |
java.awt.geom.Point2D |
getLocation()
視点位置を返す |
int[] |
getMapPoints()
地図データを返す |
int |
getRow()
データの行の数を返す |
void |
init()
データを初期化する |
void |
paintMap(java.awt.Graphics2D g)
地図を表示する |
void |
resetRegion(int[] pointer)
領域を再設定する |
void |
setColors(java.util.List list)
領域表示色を設定する |
void |
setColors(Region[] region)
領域表示色を設定する |
void |
setDrawMode(int swdraw)
描画モードを設定する |
void |
setLocation(double thetaX,
double thetaY)
視点位置を変更する |
void |
setMap(int row,
int column)
データの行・列の数を設定する |
void |
setMap(int row,
int column,
int[] point)
地図を設定する |
void |
setOceanLock(boolean oceanLock)
海変更ロックを設定する |
void |
setPointer(int pointer)
ポインタを設定する |
void |
setScale(int scale)
領域拡大率を変更する |
void |
setSize(java.awt.Dimension panelSize)
サイズを設定する |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int OCEAN
public static final int AREA
public static final int DOT
private int row
private int column
private int[] point
private java.awt.geom.Point2D theta
Point2D
private java.awt.Dimension panelSize
private int swdraw
public int scale
public boolean oceanLock
protected int pointer
protected java.awt.Color[] color
コンストラクタの詳細 |
---|
public WorldMapModel()
メソッドの詳細 |
---|
public void init()
public java.awt.geom.Point2D getLocation()
Point2D
public void setLocation(double thetaX, double thetaY)
thetaX
- 視点経度thetaY
- 視点緯度public int getRow()
public int getColumn()
public int[] getMapPoints()
public void setMap(int row, int column)
row
- データの行の数column
- データの列の数public void setMap(int row, int column, int[] point)
row
- データの行の数column
- データの列の数point
- 地図データを格納した配列public void setColors(Region[] region)
region
- 領域を格納した配列public void setColors(java.util.List list)
list
- 領域を格納したリストpublic void setOceanLock(boolean oceanLock)
oceanLock
- 海変更ロックの設定値public void setPointer(int pointer)
pointer
- 領域ポインタpublic void resetRegion(int[] pointer)
pointer
- 新しい領域番号を格納した配列public void setSize(java.awt.Dimension panelSize)
panelSize
- パネルサイズpublic void setDrawMode(int swdraw)
swdraw
- 描画モードを表す整数public void setScale(int scale)
scale
- 領域拡大率public void changeMap(int mx, int my)
mx
- 変更位置の x 座標my
- 変更位置の y 座標public void paintMap(java.awt.Graphics2D g)
g
- 描画するグラフィックスコンテキスト
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |