worldmap.map
クラス MollweideMap

java.lang.Object
  上位を拡張 worldmap.map.WorldMap
      上位を拡張 worldmap.map.MollweideMap
すべての実装されたインタフェース:
java.lang.Cloneable

public class MollweideMap
extends WorldMap

モルワイデ図法


フィールドの概要
protected  int molHeight
          モルワイデ図法の表示高さ
protected  int molWidth
          モルワイデ図法の表示幅
static java.lang.String NAME
          モルワイデ図法を表す文字列
 
クラス worldmap.map.WorldMap から継承されたフィールド
bgColor, column, cx, cy, height, INV_360, INV_PI, OUT, point, radius, row, TOLERANCE, vx, vy, width
 
コンストラクタの概要
MollweideMap(int row, int column, int[] point, java.awt.Color bgColor)
          地図オブジェクトを構築する
MollweideMap(WorldMap map)
          地図オブジェクトを構築する
 
メソッドの概要
 int getPoint(int x, int y, java.awt.geom.Point2D theta)
          画面上の点から地図上の位置を取り出す
 java.awt.Point getViewPoint(int point, java.awt.geom.Point2D theta)
          地図上の位置に対応する画面上の点を取り出す
 void setRadius(int radius)
          半径を設定する
この図法では何もしない
 void setSize(int width, int height)
          サイズを設定する
 
クラス worldmap.map.WorldMap から継承されたメソッド
calcMapPixel, clone, equals, getBackgroundColor, getRegion, getRegion, hashCode, rotate, setBackgroundColor
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

NAME

public static final java.lang.String NAME
モルワイデ図法を表す文字列

関連項目:
定数フィールド値

molWidth

protected int molWidth
モルワイデ図法の表示幅


molHeight

protected int molHeight
モルワイデ図法の表示高さ

コンストラクタの詳細

MollweideMap

public MollweideMap(int row,
                    int column,
                    int[] point,
                    java.awt.Color bgColor)
地図オブジェクトを構築する

パラメータ:
row - データの行の数
column - データの列の数
point - 地図領域インデックスを格納した配列
bgColor - 背景色

MollweideMap

public MollweideMap(WorldMap map)
地図オブジェクトを構築する

パラメータ:
map - パラメータを取得する地図オブジェクト
メソッドの詳細

setSize

public void setSize(int width,
                    int height)
サイズを設定する

オーバーライド:
クラス WorldMap 内の setSize
パラメータ:
width - 表示パネルの幅
height - 表示パネルの高さ

setRadius

public void setRadius(int radius)
半径を設定する
この図法では何もしない

オーバーライド:
クラス WorldMap 内の setRadius
パラメータ:
radius - 半径

getPoint

public int getPoint(int x,
                    int y,
                    java.awt.geom.Point2D theta)
画面上の点から地図上の位置を取り出す

定義:
クラス WorldMap 内の getPoint
パラメータ:
x - 画面上の点の x 座標
y - 画面上の点の y 座標
theta - 地図の回転角度
戻り値:
地図上の位置を表す整数

getViewPoint

public java.awt.Point getViewPoint(int point,
                                   java.awt.geom.Point2D theta)
地図上の位置に対応する画面上の点を取り出す

定義:
クラス WorldMap 内の getViewPoint
パラメータ:
point - 地図上の位置を表す整数
theta - 地図の回転角度
戻り値:
画面上の点