示例#1
0
文件: Plots.java 项目: avoy/Tracker
 public SubPlot getSubPlot(String pTitle) {
   SubPlot currSubPlot = null;
   Enumeration enumer = plots.objectEnumerator();
   while (enumer.hasMoreElements()) {
     currSubPlot = (SubPlot) enumer.nextElement();
     if (currSubPlot.title().equals(pTitle)) {
       break;
     }
   }
   return currSubPlot;
 }
示例#2
0
文件: Plots.java 项目: avoy/Tracker
  // 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);
  }