public class PFPieChartRenderer extends PFChartRenderer
コンストラクタと説明 |
---|
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)
データラベルに値を表示するかどうかを設定する。
|
drawDataLabelInShape, drawDataLabelNearShape, getChartColor, getChartModel, getMaxSeriesIndexFromHashMap, getRenderProperty, isLabelVisible, setChartColor, setChartModel, setLabelVisible
getBackground, getBounds, getFont, getForeground, getInsets, setBackground, setBounds, setFont, setForeground, setInsets
public PFPieChartRenderer(PFChartModel model, PFChartColor color)
model
- グラフデータモデルcolor
- グラフ色データprotected void createShapeModel()
createShapeModel
クラス内 PFChartRenderer
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)
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