public class CandleSeries extends Series
Constructor and Description |
---|
CandleSeries(String name)
Create a new CandleSeries
|
Modifier and Type | Method and Description |
---|---|
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.
|
addBox, addLine, addMarker, getName, outputToSeries, outputToSeriesFunction, setFloatingPointX, setFloatingPointY, setStyle, toString
public CandleSeries(String name)
name
- the name of the seriespublic 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 dayIllegalArgumentException
- if min is not the lowest of the four values, or max is not the highestpublic 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 <=1Copyright © 2001-2016 Big Faceless Organization