public virtual void remove(XYPlot subplot)
 {
   if (subplot == null)
   {
     string str = " Null 'subplot' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     int num1 = -1;
     int num2 = this.subplots.size();
     for (int index = 0; num1 == -1 && index < num2; ++index)
     {
       if (this.subplots.get(index) == subplot)
         num1 = index;
     }
     if (num1 == -1)
       return;
     this.subplots.remove(num1);
     subplot.setParent((Plot) null);
     subplot.removeChangeListener((PlotChangeListener) this);
     ValueAxis domainAxis = this.getDomainAxis();
     if (domainAxis != null)
       domainAxis.configure();
     this.fireChangeEvent();
   }
 }
 public virtual void add(XYPlot subplot, int weight)
 {
   if (subplot == null)
   {
     string str = "Null 'subplot' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (weight <= 0)
   {
     string str = "Require weight >= 1.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     subplot.setParent((Plot) this);
     subplot.setWeight(weight);
     subplot.setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0), false);
     subplot.setDomainAxis((ValueAxis) null);
     subplot.addChangeListener((PlotChangeListener) this);
     this.subplots.add((object) subplot);
     ValueAxis domainAxis = this.getDomainAxis();
     if (domainAxis != null)
       domainAxis.configure();
     this.fireChangeEvent();
   }
 }
 public virtual void add(XYPlot subplot, int weight)
 {
   if (weight <= 0)
   {
     string str = "The 'weight' must be positive.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     subplot.setParent((Plot) this);
     subplot.setWeight(weight);
     subplot.setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));
     subplot.setRangeAxis((ValueAxis) null);
     subplot.addChangeListener((PlotChangeListener) this);
     this.subplots.add((object) subplot);
     this.configureRangeAxes();
     this.fireChangeEvent();
   }
 }