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();
   }
 }