Esempio n. 1
0
        /// <summary>
        /// Method implementation for Create Adornments
        /// </summary>
        /// <param name="series"></param>
        /// <param name="xVal"></param>
        /// <param name="yVal"></param>
        /// <param name="angle"></param>
        /// <param name="radius"></param>
        /// <returns></returns>
        protected override ChartAdornment CreateAdornment(AdornmentSeries series, double xVal, double yVal, double angle, double radius)
        {
            var segment = new ChartPieAdornment(xVal, yVal, angle, radius, series);

            segment.SetValues(xVal, yVal, angle, radius, series);
            return(segment);
        }
Esempio n. 2
0
        /// <summary>
        /// Method implementation for Create Adornments
        /// </summary>
        /// <param name="series"></param>
        /// <param name="xVal"></param>
        /// <param name="yVal"></param>
        /// <param name="xPos"></param>
        /// <param name="yPos"></param>
        /// <returns></returns>
        protected virtual ChartAdornment CreateAdornment(AdornmentSeries series, double xVal, double yVal, double xPos, double yPos)
        {
            ChartAdornment adornment = new ChartAdornment(xVal, yVal, xPos, yPos, series);

            adornment.XData  = xVal;
            adornment.YData  = yVal;
            adornment.XPos   = xPos;
            adornment.YPos   = yPos;
            adornment.Series = series;
            return(adornment);
        }
        public FastStepLineBitmapSegment(IList <double> xVals, IList <double> yVals, AdornmentSeries series)
            : this(series)
        {
            xValues    = new List <double>();
            yValues    = new List <double>();
            Series     = series;
            xChartVals = xVals;
            yChartVals = yVals;
            base.Item  = series.ActualData;

            SetRange();
        }
Esempio n. 4
0
 /// <summary>
 /// Called when instance created for FastHiLoOpenCloseSegment
 /// </summary>
 /// <param name="series"></param>
 public FastHiLoOpenCloseSegment(AdornmentSeries series)
 {
     xValues                 = new List <float>();
     yHiValues               = new List <float>();
     yLoValues               = new List <float>();
     yOpenStartValues        = new List <float>();
     yOpenEndValues          = new List <float>();
     yCloseValues            = new List <float>();
     yCloseEndValues         = new List <float>();
     isBull                  = new List <bool>();
     fastHiLoOpenCloseSeries = series;
 }
Esempio n. 5
0
        /// <summary>
        /// Called when instance created for LineSegment with following arguments
        /// </summary>
        /// <param name="x1"></param>
        /// <param name="y1"></param>
        /// <param name="x2"></param>
        /// <param name="y2"></param>
        /// <param name="lineSeries"></param>
        public LineSegment(double x1, double y1, double x2, double y2, AdornmentSeries lineSeries, object item)
        {
            base.Series = lineSeries;
            base.Item   = item;
            SetData(x1, y1, x2, y2);
            var actualLineSeries = lineSeries as LineSeries;

            if (actualLineSeries != null)
            {
                CustomTemplate = actualLineSeries.CustomTemplate;
            }
        }
Esempio n. 6
0
 /// <summary>
 /// Called when instance created for FastLineSegment
 /// </summary>
 /// <param name="xVals"></param>
 /// <param name="yVals"></param>
 /// <param name="series"></param>
 public FastLineSegment(IList <double> xVals, IList <double> yVals, AdornmentSeries series)
     : this(series)
 {
     base.Series     = series;
     this.xChartVals = xVals;
     this.yChartVals = yVals;
     base.Item       = series.ActualData;
     var fastLineSeries = series as FastLineSeries;
     if (fastLineSeries != null)
     {
         customTemplate = fastLineSeries.CustomTemplate;
     }
     this.SetRange();
 }
Esempio n. 7
0
 /// <summary>
 /// Called when instance created for AreaSegments
 /// </summary>
 /// <param name="xValues"></param>
 /// <param name="yValues"></param>
 /// <param name="series"></param>
 public AreaSegment(List <double> xValues, List <double> yValues, AdornmentSeries series, object item)
 {
     base.Series     = series;
     containerSeries = series;
     base.Item       = item;
 }
Esempio n. 8
0
 /// <summary>
 /// Called when instance created for FastHiLoSegment
 /// </summary>
 /// <param name="xValues"></param>
 /// <param name="hiValues"></param>
 /// <param name="loValues"></param>
 /// <param name="series"></param>
 public FastHiLoSegment(IList <double> xValues, IList <double> hiValues, IList <double> loValues, AdornmentSeries series)
     : this(series)
 {
 }
Esempio n. 9
0
        /// <summary>
        /// Called when instance created for TriangularAdornment
        /// </summary>
        /// <param name="xVal"></param>
        /// <param name="yVal"></param>
        /// <param name="currY"></param>
        /// <param name="height"></param>
        /// <param name="series"></param>

        public TriangularAdornment(double xVal, double yVal, double currY, double height, AdornmentSeries series)
        {
            XPos   = XData = xVal;
            YPos   = YData = yVal;
            CurrY  = currY;
            Height = height;
            Series = base.Series = series;
        }
Esempio n. 10
0
 internal void SetValues(double xVal, double yVal, double angle, double radius, AdornmentSeries series)
 {
     XPos     = XData = xVal;
     YPos     = YData = yVal;
     Radius   = radius;
     Angle    = angle;
     Series   = base.Series = series;
     pieIndex = (from pieSeries in Series.ActualArea.VisibleSeries where pieSeries is CircularSeriesBase select pieSeries).ToList().IndexOf(series);
 }
Esempio n. 11
0
 /// <summary>
 /// Called when instance created for ChartPieAdornment
 /// </summary>
 /// <param name="xVal"></param>
 /// <param name="yVal"></param>
 /// <param name="angle"></param>
 /// <param name="radius"></param>
 /// <param name="series"></param>
 public ChartPieAdornment(double xVal, double yVal, double angle, double radius, AdornmentSeries series)
 {
 }
Esempio n. 12
0
 /// <summary>
 /// Called when instance created for FastHiLoOpenCloseSegment with following arguments
 /// </summary>
 /// <param name="xValues"></param>
 /// <param name="highValues"></param>
 /// <param name="lowValues"></param>
 /// <param name="openValues"></param>
 /// <param name="closeValues"></param>
 /// <param name="series"></param>
 public FastHiLoOpenCloseSegment(List <double> xValues, IList <double> highValues, IList <double> lowValues, IList <double> openValues, IList <double> closeValues, AdornmentSeries series)
     : this(series)
 {
 }
Esempio n. 13
0
 /// <summary>
 /// Creates the adornment of PyramidSeries.
 /// </summary>
 protected override ChartAdornment CreateAdornment(AdornmentSeries series, double xVal, double yVal, double height, double currY)
 {
     return(new TriangularAdornment(xVal, yVal, currY, height, series));
 }