Example #1
0
 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);
 }
Example #2
0
 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();
 }
Example #3
0
 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();
 }
Example #4
0
 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);
 }
Example #5
0
 internal virtual void EnsureRootPanelsCreated()
 {
     if (this.ChartArea == null)
     {
         return;
     }
     Panel rootPanel = this.RootPanel;
     PanelElementPool <LabelControl, DataPoint> labelsPool = this.LabelPresenter.LabelsPool;
 }
Example #6
0
 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);
 }
Example #7
0
 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);
 }
Example #8
0
 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);
 }
Example #9
0
 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);
 }
Example #10
0
 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);
 }