public class PFCandleChartRenderer extends PFCategoryChartRenderer
コンストラクタと説明 |
---|
PFCandleChartRenderer(PFChartModel model,
PFChartColor color,
PFCategoryCoordSystem coord)
コンストラクタ。
|
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
changeValue(int mousex,
int mousey)
マウスドラッグ時の処理
|
protected void |
createShapeModel()
形状の配列を作成する。
|
boolean |
decideValue(int mousex,
int mousey)
マウスリリース時の処理
|
int |
getCandleWidthRatio()
ろうそく幅の割合を返す。
|
java.awt.Color |
getDownwardColor(int series)
データ下降時(始値>終値)のろうそくの色を返す。
|
int |
getMaxSeriesIndex()
マーカ情報または線情報が設定されている最大系列インデックスを取得する。
|
java.awt.Point |
getSelectedIndex(int mousex,
int mousey)
選択された棒の系列・項目のインデックスを返す。
|
int |
getSelectedItemIndex()
選択対象項目インデックスを取得する。
|
int |
getSelectedSeriesIndex()
選択対象系列インデックスを取得する。
|
java.lang.String |
getTooltipText(int mousex,
int mousey)
マウスポインタの位置にある棒の情報を文字列形式で返す。
|
java.awt.Color |
getUpwardColor(int series)
データ上昇時(始値≦終値)のろうそくの色を返す。
|
int |
getWickWidthRatio()
ろうそくの芯の太さの割合を返す。
|
void |
render(java.awt.Graphics2D g)
棒グラフを描画する。
|
boolean |
selectValue(int mousex,
int mousey)
マウスプレス時の処理
|
void |
setCandleWidthRatio(int ratio)
ろうそく幅の割合を設定する。
|
void |
setDownwardColor(java.awt.Color color,
int series)
データ下降時(始値>終値)のろうそくの色を設定する。
|
void |
setSelectedIndex(int series,
int item)
選択対象のインデックスを設定する。
|
void |
setUpwardColor(java.awt.Color color,
int series)
データ上昇時(始値≦終値)のろうそくの色を設定する。
|
void |
setWickWidthRatio(int ratio)
ろうそくの芯の太さの割合を設定する。
|
getAxis, getBase, getChangeUnit, getCoordSystem, getDisplayExponent, getDisplayMethod, getItemCount, getItemDisplayCount, getItemDisplayStart, getItemPixelPosition, getItemWidth, getNumberAxisOrientation, getTransform, isAxisLogarithm, isChangeEnabled, isFirstItemOnNumberAxis, isRadarChart, isRenderEnabled, setAxis, setAxisLogarithm, setChangeEnabled, setChangeUnit, setCoordSystem
drawDataLabelInShape, drawDataLabelNearShape, getChartColor, getChartModel, getMaxSeriesIndexFromHashMap, getRenderProperty, isLabelVisible, setChartColor, setChartModel, setLabelVisible
getBackground, getBounds, getFont, getForeground, getInsets, setBackground, setBounds, setFont, setForeground, setInsets
public PFCandleChartRenderer(PFChartModel model, PFChartColor color, PFCategoryCoordSystem coord)
model
- グラフデータモデルcolor
- 色データcoord
- 系列グラフ座標軸protected void createShapeModel()
createShapeModel
クラス内 PFChartRenderer
public int getSelectedSeriesIndex()
getSelectedSeriesIndex
クラス内 PFCategoryChartRenderer
public int getSelectedItemIndex()
getSelectedItemIndex
クラス内 PFCategoryChartRenderer
public void setSelectedIndex(int series, int item)
setSelectedIndex
クラス内 PFCategoryChartRenderer
series
- 系列インデックスitem
- 項目インデックスpublic boolean selectValue(int mousex, int mousey)
selectValue
クラス内 PFCategoryChartRenderer
mousex
- マウスポインタのX位置mousey
- マウスポインタのY位置public boolean decideValue(int mousex, int mousey)
decideValue
クラス内 PFCategoryChartRenderer
mousex
- マウスポインタのX位置mousey
- マウスポインタのY位置public boolean changeValue(int mousex, int mousey)
changeValue
クラス内 PFCategoryChartRenderer
mousex
- マウスポインタのX位置mousey
- マウスポインタのY位置public java.awt.Point getSelectedIndex(int mousex, int mousey)
getSelectedIndex
クラス内 PFCategoryChartRenderer
mousex
- マウスポインタのX位置mousey
- マウスポインタのY位置public java.lang.String getTooltipText(int mousex, int mousey)
getTooltipText
クラス内 PFCategoryChartRenderer
mousex
- マウスポインタのX位置mousey
- マウスポインタのY位置public int getCandleWidthRatio()
public void setCandleWidthRatio(int ratio)
ratio
- ろうそく幅の割合(1-100)java.lang.IllegalArgumentException
- ratioが1〜100以外の場合public int getWickWidthRatio()
public void setWickWidthRatio(int ratio)
ratio
- ろうそくの芯の太さの割合(1-100)java.lang.IllegalArgumentException
- ratioが1〜100以外の場合public java.awt.Color getUpwardColor(int series)
series
- 系列インデックスpublic void setUpwardColor(java.awt.Color color, int series)
color
- ろうそくの色series
- 系列インデックスpublic java.awt.Color getDownwardColor(int series)
series
- 系列インデックスpublic void setDownwardColor(java.awt.Color color, int series)
color
- ろうそくの色series
- 系列インデックスpublic void render(java.awt.Graphics2D g)
g
- Graphics2Dpublic int getMaxSeriesIndex()