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

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.PFBarChartRenderer
すべての実装されたインタフェース:
java.io.Serializable, PFRenderer

public class PFBarChartRenderer
extends PFCategoryChartRenderer

棒グラフを描画するためのクラス。

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

コンストラクタの概要
PFBarChartRenderer(PFChartModel model, PFChartColor color, PFCategoryCoordSystem coord)
          コンストラクタ。
 
メソッドの概要
 boolean changeValue(int mousex, int mousey)
          マウスドラッグ時の処理
protected  void createShapeModel()
          形状の配列を作成する。
 boolean decideValue(int mousex, int mousey)
          マウスリリース時の処理
 int getBarRatio()
          グラフ領域の幅に対する棒の幅の割合を返す。
 java.awt.Point getSelectedIndex(int mousex, int mousey)
          選択された棒の系列・項目のインデックスを返す。
 int getSelectedItemIndex()
          選択対象項目インデックスを取得する。
 int getSelectedSeriesIndex()
          選択対象系列インデックスを取得する。
 java.lang.String getTooltipText(int mousex, int mousey)
          マウスポインタの位置にある棒の情報を文字列形式で返す。
 void render(java.awt.Graphics2D g)
          棒グラフを描画する。
 boolean selectValue(int mousex, int mousey)
          マウスプレス時の処理
 void setBarRatio(int ratio)
          グラフ領域の幅に対する棒の幅の割合を設定する。
 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
 

コンストラクタの詳細

PFBarChartRenderer

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

パラメータ:
model - グラフデータモデル
color - 色データ
coord - カテゴリグラフ座標系
例外:
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位置
戻り値:
ツールチップに表示するテキスト

getBarRatio

public int getBarRatio()
グラフ領域の幅に対する棒の幅の割合を返す。

戻り値:
グラフ領域の幅に対する棒の幅の割合(1-100)

setBarRatio

public void setBarRatio(int ratio)
グラフ領域の幅に対する棒の幅の割合を設定する。

パラメータ:
ratio - グラフ領域の幅に対する棒の幅の割合(1-100)
例外:
java.lang.IllegalArgumentException - ratioが1〜100以外の値

render

public void render(java.awt.Graphics2D g)
棒グラフを描画する。 スクロールバー表示がない場合に呼び出される。

パラメータ:
g - Graphics2D