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