public DefaultPieDataset(KeyedValues data)
 {
   DefaultPieDataset defaultPieDataset = this;
   if (data == null)
   {
     string str = "Null 'data' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.data = new DefaultKeyedValues();
     for (int i = 0; i < data.getItemCount(); ++i)
       this.data.addValue(data.getKey(i), data.getValue(i));
   }
 }