Kagetaka

net.hizlab.kagetaka.rendering
クラス ItemMap

java.lang.Object
  拡張net.hizlab.kagetaka.rendering.ItemMap

public class ItemMap
extends Object

画面上のアイテムの位置を表すクラスです。

バージョン:
$Revision: 1.2 $

メソッドの概要
 Point getIdPoint(String id)
          指定された ID の位置を返します。
 URL getImageURL(int x, int y)
          指定された位置の画像 URL を返します。
 String getInfo(int x, int y)
          指定された位置の情報文字列を返します。
 URL getLinkURL(int x, int y)
          指定された位置のリンク先 URL を返します。
 String getTip(int x, int y)
          指定された位置の注釈文字列を返します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getIdPoint

public Point getIdPoint(String id)
指定された ID の位置を返します。 位置は右上からの距離です。

パラメータ:
id - ID
戻り値:
ID の位置

getImageURL

public URL getImageURL(int x,
                       int y)
指定された位置の画像 URL を返します。

パラメータ:
x - X 座標
y - Y 座標
戻り値:
リンク先

getInfo

public String getInfo(int x,
                      int y)
指定された位置の情報文字列を返します。

パラメータ:
x - X 座標
y - Y 座標
戻り値:
注釈文字列

getLinkURL

public URL getLinkURL(int x,
                      int y)
指定された位置のリンク先 URL を返します。

パラメータ:
x - X 座標
y - Y 座標
戻り値:
リンク先

getTip

public String getTip(int x,
                     int y)
指定された位置の注釈文字列を返します。

パラメータ:
x - X 座標
y - Y 座標
戻り値:
注釈文字列

Kagetaka

Copyright (c) 2002-2003 The Kagetaka Project 'December 16, 2003'