Class OHLCSeries


  • public class OHLCSeries
    extends org.knowm.xchart.internal.series.AxesChartSeries
    Author:
    arthurmcgibbon
    • 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

      • 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 class org.knowm.xchart.internal.series.Series
      • calculateMinMax

        protected void calculateMinMax()
        Specified by:
        calculateMinMax in class org.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()