Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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()
     });
 }
Exemplo n.º 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()
     });
 }
Exemplo n.º 7
0
 internal XYAxisElementsPanel(XYAxisPresenter presenter)
     : base(presenter)
 {
 }
Exemplo n.º 8
0
 internal XYAxisBasePanel(XYAxisPresenter presenter)
 {
     this.UseLayoutRounding = true;
     this.Presenter = presenter;
     this.Axis = this.Presenter.Axis;
 }
Exemplo n.º 9
0
 internal XYAxisElementsPanel(XYAxisPresenter presenter)
     : base(presenter)
 {
 }
Exemplo n.º 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);
 }
Exemplo n.º 11
0
 internal XYAxisBasePanel(XYAxisPresenter presenter)
 {
     this.UseLayoutRounding = true;
     this.Presenter         = presenter;
     this.Axis = this.Presenter.Axis;
 }