コード例 #1
0
 internal override void OnResetSegment(int index)
 {
     if (index >= 0 && adornmentInfo != null)
     {
         AdornmentPresenter.ResetAdornmentSelection(index, false);
     }
 }
コード例 #2
0
        internal override void OnResetSegment(int index)
        {
            if (index >= 0)
            {
                dataPoint = GetDataPoint(index);

                if (dataPoint != null)
                {
                    // Resets the adornment selection when the mouse pointer moved away from the adornment or clicked the same adornment.
                    if (adornmentInfo != null)
                    {
                        AdornmentPresenter.ResetAdornmentSelection(index, false);
                    }

                    if (SegmentSelectionBrush != null)
                    {
                        // Generate pixels for the particular data point
                        if (Segments.Count > 0)
                        {
                            GeneratePixels();
                        }

                        // Reset the segment pixels
                        OnBitmapSelection(selectedSegmentPixels, null, false);

                        selectedSegmentPixels.Clear();
                        dataPoint = null;
                    }
                }
            }
        }
コード例 #3
0
        internal override void UpdateOnSeriesBoundChanged(Size size)
        {
            if (AdornmentPresenter != null && AdornmentsInfo != null)
            {
                AdornmentsInfo.UpdateElements();
            }

            base.UpdateOnSeriesBoundChanged(size);

            if (AdornmentPresenter != null && AdornmentsInfo != null)
            {
                AdornmentPresenter.Update(size);
                AdornmentPresenter.Arrange(size);
            }
        }
コード例 #4
0
        internal override void OnResetSegment(int index)
        {
            if (index >= 0)
            {
                var    circularSeries = this as CircularSeriesBase;
                object item           = circularSeries != null && !double.IsNaN(circularSeries.GroupTo) ? Segments[index].Item : ActualData[index];
                var    resetSegment   = Segments.Where(segment => segment.Item == item).FirstOrDefault();
                if (resetSegment != null)
                {
                    resetSegment.BindProperties();
                    resetSegment.IsSelectedSegment = false;
                }

                if (adornmentInfo is ChartAdornmentInfo)
                {
                    AdornmentPresenter.ResetAdornmentSelection(index, false);
                }
            }
        }
コード例 #5
0
        internal override void OnResetSegment(int index)
        {
            if (index >= 0)
            {
                dataPoint = GetDataPoint(index);

                if (dataPoint != null)
                {
                    // Resets the adornment selection when the mouse pointer moved away from the adornment or clicked the same adornment.
                    if (adornmentInfo != null)
                    {
                        AdornmentPresenter.ResetAdornmentSelection(index, false);
                    }

                    if (SegmentSelectionBrush != null)
                    {
                        // Generate pixels for the particular data point
                        if (Segments.Count > 0)
                        {
                            GeneratePixels();
                        }

                        // Reset the segment pixels
                        if (this.ComparisonMode == FinancialPrice.None || isFill)
                        {
                            OnBitmapSelection(selectedSegmentPixels, null, false);
                        }
                        else
                        {
                            OnBitmapHollowSelection(selectedSegmentPixels, selectedBorderPixels);
                        }
                        selectedSegmentPixels.Clear();
                        selectedBorderPixels.Clear();
                        dataPoint = null;
                    }
                }
            }
        }