@@ -0,0 +1,2172 @@
+/*%0A *                      Nividic development code%0A *%0A * This code may be freely distributed and modified under the%0A * terms of the GNU Lesser General Public Licence.  This should%0A * be distributed with the code.  If you do not have a copy,%0A * see:%0A *%0A *      http://www.gnu.org/copyleft/lesser.html%0A *%0A * Copyright for this code is held jointly by the microarray platform%0A * of the cole Normale Suprieure and the individual authors.%0A * These should be listed in @author doc comments.%0A *%0A * For more information on the Nividic project and its aims,%0A * or to join the Nividic mailing list, visit the home page%0A * at:%0A *%0A *      http://www.transcriptome.ens.fr/nividic%0A *%0A */%0A%0Apackage fr.ens.transcriptome.nividic.om;%0A%0Aimport java.util.List;%0A%0Aimport fr.ens.transcriptome.nividic.om.impl.SlideDescription;%0A%0A/**%0A * Utils methods for Design.%0A * @author Laurent Jourdren%0A */%0Apublic final class DesignUtils %7B%0A%0A  /**%0A   * Show a design%0A   * @param design Design to show%0A   */%0A  public static void showDesign(final Design design) %7B%0A%0A    List%3CString%3E labels = design.getLabelsNames();%0A    List%3CString%3E descriptionFields = design.getDescriptionFieldsNames();%0A%0A    StringBuffer sb = new StringBuffer();%0A%0A    // Write header%0A    sb.append(%22SlideNumber%22);%0A    sb.append(%22%5Ct%22);%0A%0A    sb.append(%22FileName%22);%0A%0A    for (String l : labels) %7B%0A      sb.append(%22%5Ct%22);%0A      sb.append(l);%0A    %7D%0A%0A    for (String f : descriptionFields) %7B%0A%0A      sb.append(%22%5Ct%22);%0A      sb.append(f);%0A    %7D%0A%0A    System.out.println(sb.toString());%0A%0A    // Write data%0A    List%3CSlide%3E slides = design.getSlides();%0A%0A    for (Slide s : slides) %7B%0A%0A      sb.setLength(0);%0A%0A      sb.append(s.getName());%0A      sb.append(%22%5Ct%22);%0A%0A      String sourceInfo = s.getSourceInfo();%0A      if (sourceInfo != null)%0A        sb.append(sourceInfo);%0A%0A      for (String l : labels) %7B%0A        sb.append(%22%5Ct%22);%0A        sb.append(s.getTarget(l));%0A      %7D%0A%0A      for (String f : descriptionFields) %7B%0A%0A        sb.append(%22%5Ct%22);%0A        sb.append(s.getDescription().getDescription(f));%0A      %7D%0A%0A      System.out.println(sb.toString());%0A    %7D%0A%0A  %7D%0A%0A  //%0A  // Constructor%0A  //%0A%0A  /**%0A   * Private constructor.%0A   */%0A  private DesignUtils() %7B%0A  %7D%0A%0A%7D%0A

Add DesignUtils class Add a method to show a design