public override LegendItemCollection getLegendItems()
 {
   LegendItemCollection legendItemCollection = this.getFixedLegendItems();
   if (legendItemCollection == null)
   {
     legendItemCollection = new LegendItemCollection();
     if (this.subplots != null)
     {
       Iterator iterator = this.subplots.iterator();
       while (iterator.hasNext())
       {
         LegendItemCollection legendItems = ((XYPlot) iterator.next()).getLegendItems();
         legendItemCollection.addAll(legendItems);
       }
     }
   }
   return legendItemCollection;
 }
 public virtual LegendItemCollection getLegendCollection()
 {
   LegendItemCollection legendItemCollection = new LegendItemCollection();
   if (this.paintIndex != null && this.paintIndex.size() > 0)
   {
     if (this.paintIndex.size() <= this.paintLimit)
     {
       Iterator iterator = this.paintIndex.entrySet().iterator();
       while (iterator.hasNext())
       {
         Map.Entry entry = (Map.Entry) iterator.next();
         string label = Object.instancehelper_toString(entry.getKey());
         string description = label;
         Rectangle2D.Double @double = new Rectangle2D.Double(1.0, 1.0, 1.0, 1.0);
         Paint fillPaint = this.lookupSeriesPaint(((Integer) entry.getValue()).intValue());
         Color color = (Color) Color.black;
         Stroke outlineStroke = AbstractRenderer.__\u003C\u003EDEFAULT_STROKE;
         legendItemCollection.add(new LegendItem(label, description, (string) null, (string) null, (Shape) @double, fillPaint, outlineStroke, (Paint) color));
       }
     }
     else
     {
       HashSet hashSet = new HashSet();
       Iterator iterator = this.paintIndex.entrySet().iterator();
       while (iterator.hasNext())
       {
         Map.Entry entry = (Map.Entry) iterator.next();
         if (((Set) hashSet).add(entry.getValue()))
         {
           string label = new StringBuffer().append(Object.instancehelper_toString((object) this.getMinPaintValue((Integer) entry.getValue()))).append(" - ").append(Object.instancehelper_toString((object) this.getMaxPaintValue((Integer) entry.getValue()))).toString();
           string description = label;
           Rectangle2D.Double @double = new Rectangle2D.Double(1.0, 1.0, 1.0, 1.0);
           Paint seriesPaint = this.getSeriesPaint(((Integer) entry.getValue()).intValue());
           Color color = (Color) Color.black;
           Stroke outlineStroke = AbstractRenderer.__\u003C\u003EDEFAULT_STROKE;
           legendItemCollection.add(new LegendItem(label, description, (string) null, (string) null, (Shape) @double, seriesPaint, outlineStroke, (Paint) color));
         }
       }
     }
   }
   return legendItemCollection;
 }