private Panel GetHostPanel(Plotter plotter) { if (placement == AxisPlacement.Bottom) return plotter.BottomPanel; else return plotter.TopPanel; }
protected void RaisePlotterDetaching(Plotter plotter) { if (PlotterDetaching != null) { PlotterDetaching(this, new PlotterConnectionEventArgs(plotter)); } }
protected void RaisePlotterAttached(Plotter plotter) { if (PlotterAttached != null) { PlotterAttached(this, new PlotterConnectionEventArgs(plotter)); } }
private Panel GetHostPanel(Plotter plotter) { if (placement == AxisPlacement.Left) return plotter.LeftPanel; else return plotter.RightPanel; }
public void OnPlotterAttached(Plotter plotter) { if (this.plotter == null) { this.plotter = plotter; plotter.BottomPanel.Children.Add(this); } }
public override void OnPlotterDetaching(Plotter plotter) { Plotter2D.CentralGrid.Children.Remove(grid); grid = null; canvas = null; base.OnPlotterDetaching(plotter); }
public void OnPlotterDetaching(Plotter plotter) { this.plotter = null; var hostPanel = GetHostPanel(plotter); hostPanel.Children.Remove(this); }
public void OnPlotterDetaching(Plotter plotter) { if (this.plotter != null) { this.plotter = null; plotter.BottomPanel.Children.Remove(this); } }
public void OnPlotterAttached(Plotter plotter) { this.plotter = plotter; var hostPanel = GetHostPanel(plotter); var index = GetInsertPosition(hostPanel); hostPanel.Children.Insert(index, this); }
protected override void OnPlotterAttached(Plotter plotter) { base.OnPlotterAttached(plotter); plotter2D = (Plotter2D)plotter; GetHostPanel(plotter).Children.Add(this); viewport = plotter2D.Viewport; viewport.PropertyChanged += OnViewportPropertyChanged; }
protected override void OnPlotterDetaching(Plotter plotter) { base.OnPlotterDetaching(plotter); viewport.PropertyChanged -= OnViewportPropertyChanged; viewport = null; GetHostPanel(plotter).Children.Remove(this); plotter2D = null; }
public static void AddToPlotter(this IPlotterElement element, Plotter plotter) { if (element == null) throw new ArgumentNullException("element"); if (plotter == null) throw new ArgumentNullException("plotter"); plotter.Children.Add(element); }
public override void OnPlotterAttached(Plotter plotter) { base.OnPlotterAttached(plotter); grid = new Grid(); canvas = new Canvas { ClipToBounds = true }; grid.Children.Add(canvas); Plotter2D.CentralGrid.Children.Add(grid); }
void IPlotterElement.OnPlotterAttached(Plotter plotter) { plotter.MainCanvas.Children.Add(this); Plotter2D plotter2d = (Plotter2D)plotter; this.plotter = plotter2d; plotter2d.Viewport.PropertyChanged += Viewport_PropertyChanged; UpdateUIRepresentation(); }
void IPlotterElement.OnPlotterDetaching(Plotter plotter) { this.plotter.Viewport.PropertyChanged -= OnViewportPropertyChanged; this.plotter.Viewport.DomainChanged -= OnViewportDomainChanged; GetHostPanel(plotter).Children.Remove(scrollBar); UpdateScrollBar(null); this.plotter = null; }
public override void OnPlotterAttached(Plotter plotter) { if (Plotter2D == null) { base.OnPlotterAttached(plotter); plotter2D = (Plotter2D)plotter; viewport = plotter2D.Viewport; viewport.OutputChanged += new EventHandler<RectChangedEventArgs>(viewport_OutputChanged); viewport.VisibleChanged += new EventHandler<RectChangedEventArgs>(viewport_VisibleChanged); } }
public virtual void OnPlotterDetaching(Plotter plotter) { this.plotter.Viewport.PropertyChanged -= Viewport_PropertyChanged; if (!IsMarkersHost) { plotter.CentralGrid.Children.Remove(hostingCanvas); } hostingCanvas.Children.Remove(this); this.plotter = null; }
void IPlotterElement.OnPlotterAttached(Plotter plotter) { GetHostPanel(plotter).Children.Add(scrollBar); Plotter2D plotter2d = (Plotter2D)plotter; this.plotter = plotter2d; var viewport = plotter2d.Viewport; viewport.PropertyChanged += OnViewportPropertyChanged; viewport.DomainChanged += OnViewportDomainChanged; UpdateScrollBar(viewport); }
public IValueConverter TryBuildConverter(Type dataType, Plotter plotter) { IValueConverter result = null; IValueConversionContext context = new ValueConversionContext { Plotter = plotter }; foreach (var factory in factories) { result = factory.TryBuildConverter(dataType, context); if (result != null) return result; } return result; }
public void OnPlotterAttached(Plotter plotter) { if (parentPlotter == null) { if (content == null) throw new Exception("Content of the Vertical axis should be set befor adding vertical axis to the plotter"); if (!alreadyLoaded) { canvas.Children.Add(content); alreadyLoaded = true; } parentPlotter = plotter; plotter.LeftPanel.Children.Insert(0,this); } }
private static void OnIsDefaultAxisChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Plotter parentPlotter = null; IPlotterElement plotterElement = d as IPlotterElement; if (plotterElement != null) { parentPlotter = plotterElement.Plotter; if (parentPlotter != null) { parentPlotter.OnIsDefaultAxisChangedCore(d, e); } } }
public virtual void OnPlotterAttached(Plotter plotter) { this.plotter = (Plotter2D)plotter; viewport = this.plotter.Viewport; if (!IsMarkersHost) { plotter.CentralGrid.Children.Add(hostingCanvas); } if (Parent == null) { hostingCanvas.Children.Add(this); } this.plotter.Viewport.PropertyChanged += Viewport_PropertyChanged; }
public void OnPlotterAttached(Plotter plotter) { if (parentPlotter == null) { if (content == null) { throw new Exception("Content of the Vertical axis should be set befor adding vertical axis to the plotter"); } if (!alreadyLoaded) { canvas.Children.Add(content); alreadyLoaded = true; } parentPlotter = plotter; plotter.LeftPanel.Children.Insert(0, this); } }
private static void OnIsDefaultAxisChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { //<function summary> // Perform the following when the default axis changes //</function summary> Plotter parentPlotter = null; IPlotterElement plotterElement = d as IPlotterElement; if (plotterElement != null) { parentPlotter = plotterElement.Plotter; if (parentPlotter != null) { parentPlotter.OnIsDefaultAxisChangedCore(d, e); } } }
public override void OnPlotterAttached(Plotter plotter) { if (parentPlotter == null) { base.OnPlotterAttached(plotter); parentPlotter = plotter; Plotter.MainCanvas.SizeChanged += new SizeChangedEventHandler(MainCanvas_SizeChanged); Plotter.MainCanvas.Children.Add(path); if (IsTooltipEnabled) { tooltip = new ToolTip { Content = Description }; path.MouseEnter += new MouseEventHandler(LineGraph_MouseEnter); path.MouseLeave += new MouseEventHandler(LineGraph_MouseLeave); ToolTipService.SetToolTip(path, tooltip); } } UpdateCore(); }
void IPlotterElement.OnPlotterAttached(Plotter plotter) { this.plotter = (Plotter2D)plotter; plotter.MainGrid.Children.Add(ViewportPanel); HeaderPanel = plotter.HeaderPanel; FooterPanel = plotter.FooterPanel; LeftPanel = plotter.LeftPanel; BottomPanel = plotter.BottomPanel; RightPanel = plotter.RightPanel; TopPanel = plotter.BottomPanel; MainCanvas = plotter.MainCanvas; CentralGrid = plotter.CentralGrid; MainGrid = plotter.MainGrid; ParallelCanvas = plotter.ParallelCanvas; OnLoaded(); }
/// <summary>This method is invoked when element is being detached from plotter. If additional /// controls were put on plotter in OnPlotterAttached method, they should be removed here</summary> /// <remarks>This method is always called in pair with OnPlotterAttached</remarks> public virtual void OnPlotterDetaching(Plotter plotter) { RaisePlotterDetaching(plotter); this.plotter = null; }
/// <summary>This method is invoked when element is attached to plotter. It is the place /// to put additional controls to Plotter</summary> /// <param name="plotter">Plotter for this element</param> public virtual void OnPlotterAttached(Plotter plotter) { this.plotter = plotter; RaisePlotterAttached(plotter); }
public void OnPlotterDetaching(Plotter plotter) { parentPlotter = null; plotter.FooterPanel.Children.Remove(this); }
protected virtual Panel GetHostPanel(Plotter plotter) { return(plotter.MainGrid); }
public void OnPlotterAttached(Plotter plotter) { this.plotter = plotter; plotter.FooterPanel.Children.Add(this); }
void IPlotterElement.OnPlotterDetaching(Plotter plotter) { OnPlotterDetaching(plotter); }
public void OnPlotterAttached(Plotter plotter) { this.plotter = plotter; plotter.BottomPanel.Children.Add(this); }
void IPlotterElement.OnPlotterDetaching(Plotter plotter) { plotter.CentralGrid.Children.Remove(this); this.plotter = null; }
void IPlotterElement.OnPlotterAttached(Plotter plotter) { this.plotter = plotter; plotter.CentralGrid.Children.Add(this); }
void IPlotterElement.OnPlotterDetaching(Plotter plotter) { plotter.FooterPanel.Children.Remove(this); this.plotter = null; }
public static void SetPlotter(DependencyObject obj, Plotter value) { obj.SetValue(PlotterProperty, value); }
protected abstract Panel GetHostPanel(Plotter plotter);
void IPlotterElement.OnPlotterDetaching(Plotter plotter) { if (!insideViewportListView) plotter.CentralGrid.Children.Remove(this); this.plotter.Viewport.PropertyChanged -= Viewport_PropertyChanged; this.plotter = null; }
void IPlotterElement.OnPlotterAttached(Plotter plotter) { this.plotter = plotter; plotter.FooterPanel.Children.Add(this); }
public override void OnPlotterDetaching(Plotter plotter) { Plotter.Viewport.FittedToView -= Viewport_FittedToView; base.OnPlotterDetaching(plotter); }
public override void OnPlotterAttached(Plotter plotter) { base.OnPlotterAttached(plotter); UpdateBounds(DataSource); }
void IPlotterElement.OnPlotterAttached(Plotter plotter) { OnPlotterAttached(plotter); }
public void OnPlotterAttached(Plotter plotter) { this.plotter = plotter; AddToPlotter(); }
protected virtual Panel GetHostPanel(Plotter plotter) { return(plotter.CentralGrid); }
public void OnPlotterDetaching(Plotter plotter) { RemoveFromPlotter(); this.plotter = null; }
public void OnPlotterDetaching(Plotter plotter) { plotter.FooterPanel.Children.Remove(this); this.plotter = null; }
protected override void OnPlotterAttached(Plotter plotter) { base.OnPlotterAttached(plotter); grid = new Grid(); canvas = new Canvas {ClipToBounds = true}; grid.Children.Add(canvas); Plotter2D.CentralGrid.Children.Add(grid); Panel.SetZIndex(grid, base.ZIndex); }
public override void OnPlotterDetaching(Plotter plotter) { if (parentPlotter != null) { Plotter.MainCanvas.SizeChanged -= MainCanvas_SizeChanged; plotter.MainCanvas.Children.Remove(path); parentPlotter = null; base.OnPlotterDetaching(plotter); } }
public override void OnPlotterAttached(d3.Plotter plotter) { }
void IPlotterElement.OnPlotterAttached(Plotter plotter) { this.plotter = plotter; plotter.Children.CollectionChanged += OnPlotterChildrenChanged; plotter.CentralGrid.Children.Add(this); SubscribeOnEvents(); PopulateLegend(); }
public PlotterConnectionEventArgs(Plotter plotter) { this.plotter = plotter; }
void IPlotterElement.OnPlotterDetaching(Plotter plotter) { UnsubscribeFromEvents(); plotter.CentralGrid.Children.Remove(this); plotter.Children.CollectionChanged -= OnPlotterChildrenChanged; this.plotter = null; PopulateLegend(); }
void IPlotterElement.OnPlotterAttached(Plotter plotter) { this.plotter = (Plotter2D)plotter; this.plotter.Viewport.PropertyChanged += Viewport_PropertyChanged; if (!insideViewportListView) plotter.CentralGrid.Children.Add(this); }
/// <summary>This method is invoked when element is attached to plotter. It is the place /// to put additional controls to Plotter</summary> /// <param name="plotter">Plotter for this element</param> protected virtual void OnPlotterAttached(Plotter plotter) { this.plotter = plotter; }
public void OnPlotterAttached(Plotter plotter) { parentPlotter = plotter; parentPlotter.FooterPanel.Children.Add(this); }
/// <summary>This method is invoked when element is being detached from plotter. If additional /// controls were put on plotter in OnPlotterAttached method, they should be removed here</summary> /// <remarks>This method is always called in pair with OnPlotterAttached</remarks> protected virtual void OnPlotterDetaching(Plotter plotter) { this.plotter = null; }
void IPlotterElement.OnPlotterDetaching(Plotter plotter) { plotter.MainGrid.Children.Remove(ViewportPanel); this.plotter = null; }
public void OnPlotterDetaching(Plotter plotter) { this.plotter = null; plotter.BottomPanel.Children.Remove(this); }