jp.go.aist.dmrc.platform.beans.gui.chart.render
クラス PFRadarChartRenderer

java.lang.Object
  上位を拡張 jp.go.aist.dmrc.platform.beans.gui.chart.render.PFAbstractRenderer
      上位を拡張 jp.go.aist.dmrc.platform.beans.gui.chart.render.PFChartRenderer
          上位を拡張 jp.go.aist.dmrc.platform.beans.gui.chart.render.PFCategoryChartRenderer
              上位を拡張 jp.go.aist.dmrc.platform.beans.gui.chart.render.PFRadarChartRenderer
すべての実装されたインタフェース:
java.io.Serializable, PFRenderer

public class PFRadarChartRenderer
extends PFCategoryChartRenderer

レーダチャートを描画するためのクラス。

関連項目:
直列化された形式

コンストラクタの概要
PFRadarChartRenderer()
          コンストラクタ
PFRadarChartRenderer(PFChartModel model, PFChartColor color, PFCategoryCoordSystem coord)
          コンストラクタ。
 
メソッドの概要
 boolean changeValue(int mousex, int mousey)
          マウスドラッグ時の処理
protected  void createShapeModel()
          形状の配列を作成する。
 boolean decideValue(int mousex, int mousey)
          マウスリリース時の処理
 java.awt.Color getEmphasisColor()
          強調時における点の色を返す。
 java.awt.Color getEmphasisColor(int series)
          強調時における点の色を返す。
 java.lang.String getEmphasisMarker()
          強調時における点の形状名を返す。
 int getEmphasisSize()
          強調時における点のサイズの増分値を返す。
 java.lang.String getLine(int series)
          線の形状名(ユニークキー)を返す。
 int getLineWidth(int series)
          線の太さを返す。
 java.lang.String getMarker(int series)
          点形状を返す。
 int getMarkerSize(int series)
          点のサイズを返す。
 int getMaxSeriesIndex()
          マーカ情報または線情報が設定されている最大系列インデックスを取得する。
 java.awt.Point getSelectedIndex(int mousex, int mousey)
          選択されたレーダチャートの系列・項目のインデックスを返す。
 int getSelectedItemIndex()
          選択対象項目インデックスを取得する。
 int getSelectedSeriesIndex()
          選択対象系列インデックスを取得する。
 java.lang.String getTooltipText(int mousex, int mousey)
          マウスポインタの位置にあるレーダチャートの情報を文字列形式で返す。
 boolean isLineVisible(int series)
          線の表示有無を返す。
 boolean isMarkerVisible(int series)
          点の表示有無を返す。
 boolean isNullLineVisible()
          nullを線でつないでいるか
 void render(java.awt.Graphics2D g)
          レーダチャートグラフを描画する。
 boolean selectValue(int mousex, int mousey)
          マウスプレス時の処理
 void setEmphasisColor(java.awt.Color color)
          強調時における点の色を設定する。
 void setEmphasisMarker(java.lang.String marker)
          強調時における点の形状名を設定する。
 void setEmphasisSize(int size)
          強調時における点の増分サイズを設定する。
 void setLine(java.lang.String lineKey, int series)
          線の形状名(ユニークキー)を設定する。
 void setLineVisible(boolean visible, int series)
          線の表示有無を設定する。
 void setLineWidth(int lineWidth, int series)
          線の太さを設定する。
 void setMarker(java.lang.String name, int series)
          点形状を設定する。
 void setMarkerSize(int markerSize, int series)
          点のサイズを設定する。
 void setMarkerVisible(boolean visible, int series)
          点の表示有無を設定する。
 void setNullLineVisible(boolean visible)
          nullを線でつなぐか
 void setSelectedIndex(int series, int item)
          選択対象のインデックスを設定する。
 
クラス jp.go.aist.dmrc.platform.beans.gui.chart.render.PFCategoryChartRenderer から継承されたメソッド
getAxis, getBase, getChangeUnit, getCoordSystem, getDisplayExponent, getDisplayMethod, getItemCount, getItemDisplayCount, getItemDisplayStart, getItemPixelPosition, getItemWidth, getNumberAxisOrientation, getTransform, isAxisLogarithm, isChangeEnabled, isFirstItemOnNumberAxis, isRadarChart, isRenderEnabled, setAxis, setAxisLogarithm, setChangeEnabled, setChangeUnit, setCoordSystem
 
クラス jp.go.aist.dmrc.platform.beans.gui.chart.render.PFChartRenderer から継承されたメソッド
drawDataLabelInShape, drawDataLabelNearShape, getChartColor, getChartModel, getMaxSeriesIndexFromHashMap, getRenderProperty, isLabelVisible, setChartColor, setChartModel, setLabelVisible
 
クラス jp.go.aist.dmrc.platform.beans.gui.chart.render.PFAbstractRenderer から継承されたメソッド
getBackground, getBounds, getFont, getForeground, getInsets, setBackground, setBounds, setFont, setForeground, setInsets
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PFRadarChartRenderer

public PFRadarChartRenderer()
コンストラクタ


PFRadarChartRenderer

public PFRadarChartRenderer(PFChartModel model,
                            PFChartColor color,
                            PFCategoryCoordSystem coord)
コンストラクタ。

パラメータ:
model - グラフデータモデル
color - 色データ
例外:
java.lang.IllegalArgumentException - 引数がnullの場合
メソッドの詳細

createShapeModel

protected void createShapeModel()
形状の配列を作成する。

定義:
クラス PFChartRenderer 内の createShapeModel

getSelectedSeriesIndex

public int getSelectedSeriesIndex()
選択対象系列インデックスを取得する。

定義:
クラス PFCategoryChartRenderer 内の getSelectedSeriesIndex
戻り値:
選択対象系列インデックス

getSelectedItemIndex

public int getSelectedItemIndex()
選択対象項目インデックスを取得する。

定義:
クラス PFCategoryChartRenderer 内の getSelectedItemIndex
戻り値:
選択対象項目インデックス

setSelectedIndex

public void setSelectedIndex(int series,
                             int item)
選択対象のインデックスを設定する。

定義:
クラス PFCategoryChartRenderer 内の setSelectedIndex
パラメータ:
series - 系列インデックス
item - 項目インデックス

selectValue

public boolean selectValue(int mousex,
                           int mousey)
マウスプレス時の処理

定義:
クラス PFCategoryChartRenderer 内の selectValue
パラメータ:
mousex - マウスポインタのX位置
mousey - マウスポインタのY位置
戻り値:
処理を行った場合true

decideValue

public boolean decideValue(int mousex,
                           int mousey)
マウスリリース時の処理

定義:
クラス PFCategoryChartRenderer 内の decideValue
パラメータ:
mousex - マウスポインタのX位置
mousey - マウスポインタのY位置
戻り値:
処理を行った場合true

changeValue

public boolean changeValue(int mousex,
                           int mousey)
マウスドラッグ時の処理

定義:
クラス PFCategoryChartRenderer 内の changeValue
パラメータ:
mousex - マウスポインタのX位置
mousey - マウスポインタのY位置
戻り値:
処理を行った場合true

getSelectedIndex

public java.awt.Point getSelectedIndex(int mousex,
                                       int mousey)
選択されたレーダチャートの系列・項目のインデックスを返す。

定義:
クラス PFCategoryChartRenderer 内の getSelectedIndex
パラメータ:
mousex - マウスポインタのX位置
mousey - マウスポインタのY位置
戻り値:
選択された棒の系列・項目のインデックス

getTooltipText

public java.lang.String getTooltipText(int mousex,
                                       int mousey)
マウスポインタの位置にあるレーダチャートの情報を文字列形式で返す。
レーダチャート情報をツールチップに表示するのに使う。

定義:
クラス PFCategoryChartRenderer 内の getTooltipText
パラメータ:
mousex - マウスポインタのX位置
mousey - マウスポインタのY位置
戻り値:
ツールチップに表示するテキスト

isMarkerVisible

public boolean isMarkerVisible(int series)
点の表示有無を返す。

パラメータ:
series - 系列インデックス
戻り値:
点を表示する場合true
関連項目:
setMarkerVisible(boolean, int)

setMarkerVisible

public void setMarkerVisible(boolean visible,
                             int series)
点の表示有無を設定する。

パラメータ:
visible - 点を表示する場合true
series - 系列インデックス
関連項目:
isMarkerVisible(int)

getMarkerSize

public int getMarkerSize(int series)
点のサイズを返す。
サイズは、点に外接する正方形の一辺の長さを2で割ったものとする。

パラメータ:
series - 系列インデックス
戻り値:
点のサイズ
関連項目:
setMarkerSize(int, int)

setMarkerSize

public void setMarkerSize(int markerSize,
                          int series)
点のサイズを設定する。
サイズは、点に外接する正方形の一辺の長さを2で割ったものとする。

パラメータ:
markerSize - 点のサイズ
series - 系列インデックス
例外:
java.lang.IllegalArgumentException - 点のサイズが0以下の場合
関連項目:
getMarkerSize(int)

getMarker

public java.lang.String getMarker(int series)
点形状を返す。

パラメータ:
series - 系列インデックス
戻り値:
点形状の識別名
関連項目:
setMarker(String, int)

setMarker

public void setMarker(java.lang.String name,
                      int series)
点形状を設定する。

パラメータ:
name - 点形状の識別名
series - 系列インデックス
例外:
java.lang.IndexOutOfBoundsException - seriesが0〜(系列数-1)でない場合
関連項目:
getMarker(int)

getEmphasisMarker

public java.lang.String getEmphasisMarker()
強調時における点の形状名を返す。
強調時に通常時の点の形状で表示する場合はnullを返す。

戻り値:
点の形状名
関連項目:
setEmphasisMarker(String)

setEmphasisMarker

public void setEmphasisMarker(java.lang.String marker)
強調時における点の形状名を設定する。
強調時に通常時の点の形状で表示したい場合はnullを設定すること。

パラメータ:
marker - 点の形状名

getEmphasisSize

public int getEmphasisSize()
強調時における点のサイズの増分値を返す。

戻り値:
点のサイズの増分値

setEmphasisSize

public void setEmphasisSize(int size)
強調時における点の増分サイズを設定する。

パラメータ:
size - 点の増分サイズ
例外:
java.lang.IllegalArgumentException - サイズが0未満の場合

getEmphasisColor

public java.awt.Color getEmphasisColor()
強調時における点の色を返す。
強調時に通常時の点の色で表示する場合はnullを返す。

戻り値:
点の色

getEmphasisColor

public java.awt.Color getEmphasisColor(int series)
強調時における点の色を返す。

パラメータ:
series - 系列インデックス
戻り値:
点の色

setEmphasisColor

public void setEmphasisColor(java.awt.Color color)
強調時における点の色を設定する。
強調時に通常時の点の色で表示する場合はnullを設定すること。

パラメータ:
color - 点の色

isLineVisible

public boolean isLineVisible(int series)
線の表示有無を返す。

パラメータ:
series - 系列インデックス
戻り値:
線を表示する場合true
関連項目:
setLineVisible(boolean, int)

setLineVisible

public void setLineVisible(boolean visible,
                           int series)
線の表示有無を設定する。

パラメータ:
visible - 線を表示する場合true
series - 系列インデックス
関連項目:
isLineVisible(int)

getLineWidth

public int getLineWidth(int series)
線の太さを返す。

パラメータ:
series - 系列インデックス
戻り値:
線の太さ
関連項目:
setLineWidth(int, int)

setLineWidth

public void setLineWidth(int lineWidth,
                         int series)
線の太さを設定する。
線の太さは1以上でなければならない。

パラメータ:
lineWidth - 線の太さ
series - 系列インデックス
例外:
java.lang.IllegalArgumentException - 線の太さが0以下の場合
関連項目:
getLineWidth(int)

getLine

public java.lang.String getLine(int series)
線の形状名(ユニークキー)を返す。

パラメータ:
series - 系列インデックス
戻り値:
線の形状名
例外:
java.lang.IllegalArgumentException - 系列インデックスが妥当でない場合
関連項目:
setLine(String, int)

setLine

public void setLine(java.lang.String lineKey,
                    int series)
線の形状名(ユニークキー)を設定する。

パラメータ:
lineKey - 線の形状名(nullの場合、デフォルトの線の形状)
series - 系列のインデックス

render

public void render(java.awt.Graphics2D g)
レーダチャートグラフを描画する。

パラメータ:
g - Graphics2D

isNullLineVisible

public boolean isNullLineVisible()
nullを線でつないでいるか

戻り値:
つないでいたらtrue

setNullLineVisible

public void setNullLineVisible(boolean visible)
nullを線でつなぐか


getMaxSeriesIndex

public int getMaxSeriesIndex()
マーカ情報または線情報が設定されている最大系列インデックスを取得する。

戻り値:
系列インデックス