Example #1
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 #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 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 #4
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 #5
0
 internal XYAxisTitle(XYAxisPresenter presenter)
 {
     this.Presenter = presenter;
     this.Presenter.PropertyChanged += new PropertyChangedEventHandler(this.OnPresenterPropertyChanged);
     this.SetBinding(ContentControl.ContentProperty, (BindingBase)new Binding("Title")
     {
         Source = (object)this.Axis
     });
     this.SetBinding(FrameworkElement.StyleProperty, (BindingBase)new Binding("TitleStyle")
     {
         Source = (object)this.Axis
     });
     this.SetBinding(UIElement.VisibilityProperty, (BindingBase)new Binding("ShowTitles")
     {
         Source = (object)this.Axis,
         Converter = (IValueConverter)new BooleanToVisibilityConverter()
     });
 }
Example #6
0
 internal XYAxisTitle(XYAxisPresenter presenter)
 {
     this.Presenter = presenter;
     this.Presenter.PropertyChanged += new PropertyChangedEventHandler(this.OnPresenterPropertyChanged);
     this.SetBinding(ContentControl.ContentProperty, (BindingBase) new Binding("Title")
     {
         Source = (object)this.Axis
     });
     this.SetBinding(FrameworkElement.StyleProperty, (BindingBase) new Binding("TitleStyle")
     {
         Source = (object)this.Axis
     });
     this.SetBinding(UIElement.VisibilityProperty, (BindingBase) new Binding("ShowTitles")
     {
         Source    = (object)this.Axis,
         Converter = (IValueConverter) new BooleanToVisibilityConverter()
     });
 }
Example #7
0
 internal XYAxisElementsPanel(XYAxisPresenter presenter)
     : base(presenter)
 {
 }
Example #8
0
 internal XYAxisBasePanel(XYAxisPresenter presenter)
 {
     this.UseLayoutRounding = true;
     this.Presenter = presenter;
     this.Axis = this.Presenter.Axis;
 }
Example #9
0
 internal XYAxisElementsPanel(XYAxisPresenter presenter)
     : base(presenter)
 {
 }
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);
 }
Example #11
0
 internal XYAxisBasePanel(XYAxisPresenter presenter)
 {
     this.UseLayoutRounding = true;
     this.Presenter         = presenter;
     this.Axis = this.Presenter.Axis;
 }