public override void ObjectAdded(PlotObject value) { base.ObjectAdded(value); if (value is PlotLegendBase && value.Name == this.m_LegendName) { this.m_CachedLegend = (value as PlotLegendBase); } }
public override void ObjectRemoved(PlotObject value) { base.ObjectRemoved(value); if (value == this.m_CachedLegend) { this.m_CachedLegend = null; } }
protected override void SetupObjectBeforeAmbientControlBaseConnection(object value) { base.SetupObjectBeforeAmbientControlBaseConnection(value); PlotLegendBase plotLegendBase = value as PlotLegendBase; Plot plot = ((IPlotObject)plotLegendBase).Plot; if (plot != null && plotLegendBase is PlotLegendChannelImage) { PlotLegendChannelImage plotLegendChannelImage = plotLegendBase as PlotLegendChannelImage; if (plotLegendChannelImage.ChannelName == "" && plot.Channels.Count != 0) { plotLegendChannelImage.ChannelName = plot.Channels[0].Name; } } }
public bool Contains(PlotLegendBase value) { return(base.List.Contains(value)); }
public int IndexOf(PlotLegendBase value) { return(base.List.IndexOf(value)); }
public void Remove(PlotLegendBase value) { base.List.Remove(value); }
public void Insert(int index, PlotLegendBase value) { base.List.Insert(index, value); }
public int Add(PlotLegendBase value) { return(base.List.Add(value)); }