Package org.knowm.xchart
Class OHLCSeries
- java.lang.Object
-
- org.knowm.xchart.internal.series.Series
-
- org.knowm.xchart.internal.series.AxesChartSeries
-
- org.knowm.xchart.OHLCSeries
-
public class OHLCSeries extends org.knowm.xchart.internal.series.AxesChartSeries
- Author:
- arthurmcgibbon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OHLCSeries.OHLCSeriesRenderStyle
-
Constructor Summary
Constructors Constructor Description OHLCSeries(String name, double[] xData, double[] openData, double[] highData, double[] lowData, double[] closeData, org.knowm.xchart.internal.series.Series.DataType xAxisDataType)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
calculateMinMax()
double[]
getCloseData()
Color
getDownColor()
double[]
getHighData()
org.knowm.xchart.internal.chartpart.RenderableSeries.LegendRenderType
getLegendRenderType()
double[]
getLowData()
OHLCSeries.OHLCSeriesRenderStyle
getOhlcSeriesRenderStyle()
double[]
getOpenData()
Color
getUpColor()
double[]
getXData()
OHLCSeries
setDownColor(Color color)
Set the down color of the seriesOHLCSeries
setOhlcSeriesRenderStyle(OHLCSeries.OHLCSeriesRenderStyle ohlcSeriesRenderStyle)
OHLCSeries
setUpColor(Color color)
Set the up color of the series-
Methods inherited from class org.knowm.xchart.internal.series.AxesChartSeries
getLineColor, getLineStyle, getLineWidth, getToolTips, getxAxisDataType, getXMax, getXMin, getyAxisDataType, getYMax, getYMin, setLineColor, setLineStyle, setLineWidth, setToolTips
-
-
-
-
Constructor Detail
-
OHLCSeries
public OHLCSeries(String name, double[] xData, double[] openData, double[] highData, double[] lowData, double[] closeData, org.knowm.xchart.internal.series.Series.DataType xAxisDataType)
Constructor- Parameters:
name
-xData
-openData
-highData
-lowData
-closeData
-
-
-
Method Detail
-
getOhlcSeriesRenderStyle
public OHLCSeries.OHLCSeriesRenderStyle getOhlcSeriesRenderStyle()
-
setOhlcSeriesRenderStyle
public OHLCSeries setOhlcSeriesRenderStyle(OHLCSeries.OHLCSeriesRenderStyle ohlcSeriesRenderStyle)
-
getUpColor
public Color getUpColor()
-
setUpColor
public OHLCSeries setUpColor(Color color)
Set the up color of the series- Parameters:
color
-
-
getDownColor
public Color getDownColor()
-
setDownColor
public OHLCSeries setDownColor(Color color)
Set the down color of the series- Parameters:
color
-
-
getLegendRenderType
public org.knowm.xchart.internal.chartpart.RenderableSeries.LegendRenderType getLegendRenderType()
- Specified by:
getLegendRenderType
in classorg.knowm.xchart.internal.series.Series
-
calculateMinMax
protected void calculateMinMax()
- Specified by:
calculateMinMax
in classorg.knowm.xchart.internal.series.AxesChartSeries
-
getXData
public double[] getXData()
-
getOpenData
public double[] getOpenData()
-
getHighData
public double[] getHighData()
-
getLowData
public double[] getLowData()
-
getCloseData
public double[] getCloseData()
-
-