// High level all for top dictionary public NSMutableDictionary thePlotData() { NSMutableDictionary myPlot = new NSMutableDictionary(); NSMutableArray subPlotDict = new NSMutableArray(); Enumeration enumer = plots.objectEnumerator(); while (enumer.hasMoreElements()) { SubPlot currSubPlot = (SubPlot) enumer.nextElement(); subPlotDict.addObject(currSubPlot.toDictionary()); } // Title = "Defect Trends"; if (title != null) { myPlot.setObjectForKey(title, "Title"); } myPlot.setObjectForKey(subPlotDict, "Plots"); return (myPlot); }