Ejemplo n.º 1
0
 public override void ObjectAdded(PlotObject value)
 {
     base.ObjectAdded(value);
     if (value is PlotLegendBase && value.Name == this.m_LegendName)
     {
         this.m_CachedLegend = (value as PlotLegendBase);
     }
 }
Ejemplo n.º 2
0
 public override void ObjectRemoved(PlotObject value)
 {
     base.ObjectRemoved(value);
     if (value == this.m_CachedLegend)
     {
         this.m_CachedLegend = null;
     }
 }
Ejemplo n.º 3
0
        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;
                }
            }
        }
Ejemplo n.º 4
0
 public bool Contains(PlotLegendBase value)
 {
     return(base.List.Contains(value));
 }
Ejemplo n.º 5
0
 public int IndexOf(PlotLegendBase value)
 {
     return(base.List.IndexOf(value));
 }
Ejemplo n.º 6
0
 public void Remove(PlotLegendBase value)
 {
     base.List.Remove(value);
 }
Ejemplo n.º 7
0
 public void Insert(int index, PlotLegendBase value)
 {
     base.List.Insert(index, value);
 }
Ejemplo n.º 8
0
 public int Add(PlotLegendBase value)
 {
     return(base.List.Add(value));
 }