public SelectionPanel(ChartArea chartArea) { this._pathAdornersPool = new PanelElementPool <SelectionAdorner, Geometry>((Panel)this, new Func <SelectionAdorner>(this.CreatePathAdorner), new Action <SelectionAdorner, Geometry>(this.InitializePathAdorner), new Action <SelectionAdorner>(this.ResetPathAdorner)); this.ChartArea = chartArea; this.ChartArea.PropertyChanged += new PropertyChangedEventHandler(this.ChartArea_PropertyChanged); this.ChartArea.KeyDown += new KeyEventHandler(this.ChartArea_KeyDown); }
internal XYAxisGridlinesPanel(XYAxisPresenter presenter) : base(presenter) { this._majorGridLinePool = new PanelElementPool <Line, Axis>((Panel)this, (Func <Line>)(() => this.CreateGridLine(true)), (Action <Line, Axis>)((line, axis) => this.PrepareGridLine(line)), (Action <Line>)null); this._minorGridLinePool = new PanelElementPool <Line, Axis>((Panel)this, (Func <Line>)(() => this.CreateGridLine(false)), (Action <Line, Axis>)((line, axis) => this.PrepareGridLine(line)), (Action <Line>)null); this._oppositeAxisLine = this.CreateAxisLine(); }
internal XYAxisGridlinesPanel(XYAxisPresenter presenter) : base(presenter) { this._majorGridLinePool = new PanelElementPool<Line, Axis>((Panel)this, (Func<Line>)(() => this.CreateGridLine(true)), (Action<Line, Axis>)((line, axis) => this.PrepareGridLine(line)), (Action<Line>)null); this._minorGridLinePool = new PanelElementPool<Line, Axis>((Panel)this, (Func<Line>)(() => this.CreateGridLine(false)), (Action<Line, Axis>)((line, axis) => this.PrepareGridLine(line)), (Action<Line>)null); this._oppositeAxisLine = this.CreateAxisLine(); }
public SelectionPanel(ChartArea chartArea) { this._pathAdornersPool = new PanelElementPool<SelectionAdorner, Geometry>((Panel)this, new Func<SelectionAdorner>(this.CreatePathAdorner), new Action<SelectionAdorner, Geometry>(this.InitializePathAdorner), new Action<SelectionAdorner>(this.ResetPathAdorner)); this.ChartArea = chartArea; this.ChartArea.PropertyChanged += new PropertyChangedEventHandler(this.ChartArea_PropertyChanged); this.ChartArea.KeyDown += new KeyEventHandler(this.ChartArea_KeyDown); }
internal virtual void EnsureRootPanelsCreated() { if (this.ChartArea == null) { return; } Panel rootPanel = this.RootPanel; PanelElementPool <LabelControl, DataPoint> labelsPool = this.LabelPresenter.LabelsPool; }
internal XYAxisTickMarksPanel(XYAxisPresenter presenter) : base(presenter) { this._majorTickMarkPool = new PanelElementPool<RotatableControl, Axis>((Panel)this, (Func<RotatableControl>)(() => this.CreateTickMark(true)), (Action<RotatableControl, Axis>)((item, axis) => this.PrepareTickMark(item)), (Action<RotatableControl>)null) { ReservedTopElements = 1 }; this._minorTickMarkPool = new PanelElementPool<RotatableControl, Axis>((Panel)this, (Func<RotatableControl>)(() => this.CreateTickMark(false)), (Action<RotatableControl, Axis>)((item, axis) => this.PrepareTickMark(item)), (Action<RotatableControl>)null) { ReservedTopElements = 1 }; this._axisLine = this.CreateAxisLine(); this._scrollBar = this.CreateScrollBar(); this._scrollBar.ValueChanged += new RoutedPropertyChangedEventHandler<double>(this.ScrollBar_ValueChanged); this._scrollBar.ViewportSizeChangeCompleted += new RoutedPropertyChangedEventHandler<double>(this.ScrollBar_ViewportSizeDragCompleted); this.Axis.ScaleChanged += new EventHandler(this.Axis_ScaleChanged); }
internal XYAxisTickMarksPanel(XYAxisPresenter presenter) : base(presenter) { this._majorTickMarkPool = new PanelElementPool <RotatableControl, Axis>((Panel)this, (Func <RotatableControl>)(() => this.CreateTickMark(true)), (Action <RotatableControl, Axis>)((item, axis) => this.PrepareTickMark(item)), (Action <RotatableControl>)null) { ReservedTopElements = 1 }; this._minorTickMarkPool = new PanelElementPool <RotatableControl, Axis>((Panel)this, (Func <RotatableControl>)(() => this.CreateTickMark(false)), (Action <RotatableControl, Axis>)((item, axis) => this.PrepareTickMark(item)), (Action <RotatableControl>)null) { ReservedTopElements = 1 }; this._axisLine = this.CreateAxisLine(); this._scrollBar = this.CreateScrollBar(); this._scrollBar.ValueChanged += new RoutedPropertyChangedEventHandler <double>(this.ScrollBar_ValueChanged); this._scrollBar.ViewportSizeChangeCompleted += new RoutedPropertyChangedEventHandler <double>(this.ScrollBar_ViewportSizeDragCompleted); this.Axis.ScaleChanged += new EventHandler(this.Axis_ScaleChanged); }
public PolylineControl() { this._polylinePool = new PanelElementPool <Polyline, PolylineSegmentDefinition>((Panel)this, (Func <Polyline>)(() => this.CreatePolylineSegment()), (Action <Polyline, PolylineSegmentDefinition>)((polyline, segment) => this.InitilizePolylineSegment(polyline, segment)), (Action <Polyline>)null); }
public PolylineControl() { this._polylinePool = new PanelElementPool<Polyline, PolylineSegmentDefinition>((Panel)this, (Func<Polyline>)(() => this.CreatePolylineSegment()), (Action<Polyline, PolylineSegmentDefinition>)((polyline, segment) => this.InitilizePolylineSegment(polyline, segment)), (Action<Polyline>)null); }
internal XYLabelsPanel(XYAxisPresenter presenter) : base(presenter) { this._axisLabelsPool = new PanelElementPool<AxisLabelControl, Axis>((Panel)this, (Func<AxisLabelControl>)(() => this.CreateLabel()), (Action<AxisLabelControl, Axis>)((label, a) => this.ResetLabel(label)), (Action<AxisLabelControl>)null); this._axisLabelLinesPool = new PanelElementPool<Line, Axis>((Panel)this, (Func<Line>)(() => this.CreateLabelLine()), (Action<Line, Axis>)((line, axis) => this.PrepareLabelLine(line)), (Action<Line>)null); }