|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faceless.graph2.Series
org.faceless.graph2.CandleSeries
public class CandleSeries
A Candle Series is typically used for plotting stock prices. Each date has an opening and closing price, as well as a daily high and low, which are plotted as "candles" on the graph. A good description of Candle graphs is at http://www.trade10.com/candlesticks.html.
| Constructor Summary | |
|---|---|
CandleSeries(String name)
Create a new CandleSeries |
|
| Method Summary | |
|---|---|
void |
set(Date date,
double open,
double close,
double min,
double max)
Add a candle to the series. |
void |
setBarWidth(double width)
Set the width of each candle. |
void |
setStyle(Date date,
Style style)
Set the style for a particular candle. |
| Methods inherited from class org.faceless.graph2.Series |
|---|
addBox, addLine, addMarker, getName, outputToSeries, outputToSeriesFunction, setStyle, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CandleSeries(String name)
name - the name of the series| Method Detail |
|---|
public void set(Date date,
double open,
double close,
double min,
double max)
date - the date of the pricing informationopen - the opening price for that dayclose - the closing price for that daymin - the minimum price for that daymax - the maximum price for that day
IllegalArgumentException - if min is not the lowest of the four values, or max is not the highest
public void setStyle(Date date,
Style style)
date - the date of the pricing informationstyle - the style to paint that candle inpublic void setBarWidth(double width)
width - the width of the box of each candle - must be 0 < val <=1
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||