|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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.PFPieChartRenderer
円グラフの描画クラス。
コンストラクタの概要 | |
PFPieChartRenderer(PFChartModel model,
PFChartColor color)
コンストラクタ。 |
メソッドの概要 | |
protected void |
createShapeModel()
形状の配列を作成する。 |
int |
getAngleOfBaseLine()
円グラフの基線の位置を返す。 |
int |
getDataLabelPosition()
データラベルの表示位置を返す。 |
int |
getDecimalPlaceOfPercentage()
比率の小数点以下の桁数を返す。 |
int |
getDisplayExponent()
値の表示桁位置を返す。 |
int |
getDisplayMethod()
値の表示方法を返す。 |
int |
getMaxRadius()
円の半径として設定可能な値の最大値を返す。 |
int |
getMinRadius()
円の半径として設定可能な値の最小値を返す。 |
int |
getRadius()
円の半径を返す。 |
int |
getSelectedItemIndex()
表示対象の項目インデックスを返す。 |
int |
getSelectedSeriesIndex()
選択対象の系列インデックスを返す。 |
java.lang.String |
getTooltipText(int x,
int y)
マウスポインタの位置に存在するグラフ要素の情報を返す。 |
boolean |
isPercentageVisible()
データラベルに比率を表示するかどうかを返す。 |
boolean |
isSeriesVisible()
データラベルに系列名を表示するかどうかを返す。 |
boolean |
isTotalVisible()
円グラフの中心に合計値を表示するかどうかを返す。 |
boolean |
isValueVisible()
データラベルに値を表示するかどうかを返す。 |
void |
render(java.awt.Graphics2D g)
円グラフを描画する。 |
java.awt.Point |
selectChartElement(int x,
int y)
マウスクリック時に、円グラフのどの要素が選択されたかを返す。 |
void |
setAngleOfBaseLine(int angle)
円グラフの基線の位置を設定する。 |
void |
setDataLabelPosition(int position)
データラベルの表示位置を設定する。 |
void |
setDecimalPlaceOfPercentage(int place)
比率の小数点以下の桁数を設定する。 |
void |
setDisplayExponent(int exponent)
値の表示桁位置を設定する。 |
void |
setDisplayMethod(int method)
値の表示方法を設定する。 |
void |
setPercentageVisible(boolean visible)
データラベルに比率を表示するかどうかを設定する。 |
void |
setRadius(int radius)
円の半径を設定する。 |
void |
setSelectedItemIndex(int item)
表示対象の項目インデックスを設定する。 |
void |
setSelectedSeriesIndex(int series)
選択対象の系列インデックスを設定する。 |
void |
setSeriesVisible(boolean visible)
データラベルに系列名を表示するかどうかを設定する。 |
void |
setTotalVisible(boolean visible)
円グラフの中心に合計値を表示するかどうかを設定する。 |
void |
setValueVisible(boolean visible)
データラベルに値を表示するかどうかを設定する。 |
クラス jp.go.aist.dmrc.platform.beans.gui.chart.render.PFChartRenderer から継承したメソッド |
drawDataLabelInShape, drawDataLabelNearShape, getChartColor, getChartModel, 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 |
コンストラクタの詳細 |
public PFPieChartRenderer(PFChartModel model, PFChartColor color)
model
- グラフデータモデルcolor
- グラフ色データメソッドの詳細 |
protected void createShapeModel()
PFChartRenderer
内の createShapeModel
public int getSelectedSeriesIndex()
public void setSelectedSeriesIndex(int series)
series
- 系列インデックスpublic int getSelectedItemIndex()
public void setSelectedItemIndex(int item)
item
- 項目インデックス
java.lang.NullPointerException
- グラフデータがnullの場合
java.lang.IllegalArgumentException
- 不当な項目インデックスの場合public int getDisplayExponent()
public void setDisplayExponent(int exponent)
exponent
- 値の表示桁位置public int getRadius()
public void setRadius(int radius)
radius
- 円の半径(ピクセル単位)
java.lang.IllegalArgumentException
- 円の半径が大きすぎる/小さすぎる場合public int getMaxRadius()
public int getMinRadius()
public boolean isSeriesVisible()
public void setSeriesVisible(boolean visible)
visible
- 系列名を表示する場合truepublic boolean isValueVisible()
public void setValueVisible(boolean visible)
visible
- 値を表示する場合truepublic boolean isPercentageVisible()
public void setPercentageVisible(boolean visible)
visible
- 比率を表示する場合truepublic int getDisplayMethod()
public void setDisplayMethod(int method)
method
- 値の表示方法
java.lang.IllegalArgumentException
- 予期せぬ値の場合public int getDecimalPlaceOfPercentage()
public void setDecimalPlaceOfPercentage(int place)
place
- 小数点以下の桁数
java.lang.IllegalArgumentException
- 0未満の場合public int getDataLabelPosition()
public void setDataLabelPosition(int position)
PFChartUtility.DATA_LABEL_POSITION_IN_PIE
… 扇形の中心部
PFChartUtility.DATA_LABEL_POSITION_IN_ARC
… 扇形の弧の内側
PFChartUtility.DATA_LABEL_POSITION_OUT_ARC
… 扇形の弧の外側
PFChartUtility.DATA_LABEL_POSITION_AUTO
… 自動
position
- 表示位置
java.lang.IllegalArgumentException
- 予期せぬ値の場合public boolean isTotalVisible()
public void setTotalVisible(boolean visible)
visible
- 合計値を表示する場合truepublic int getAngleOfBaseLine()
public void setAngleOfBaseLine(int angle)
angle
- 基線の位置
java.lang.IllegalArgumentException
- 0〜359以外の場合public java.awt.Point selectChartElement(int x, int y)
x
- マウスクリック時におけるマウスのX位置y
- マウスクリック時におけるマウスのY位置
public java.lang.String getTooltipText(int x, int y)
x
- マウスポインタのX位置y
- マウスポインタのY位置
public void render(java.awt.Graphics2D g)
g
- Graphics2D
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |