Changeset 253


Ignore:
Timestamp:
Apr 10, 2007, 4:51:49 PM (16 years ago)
Author:
Johan Enell
Message:

BASEFile prints spot data

Location:
trunk/se/lu/onk/BaseFile/src/basefile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/se/lu/onk/BaseFile/src/basefile/BASEFile.java

    r250 r253  
    305305        for (int i = 0; i < assaySection.getHeight(); ++i)
    306306        {
    307           assaySection.getDataLine(i);
     307          out.println(assaySection.getDataLine(i));
    308308        }
    309309        out.println();
     
    312312      {
    313313        out.println(bfss.toString());
    314         out.println("DATA");
     314        for (int i = 0; i < bfss.getHeight(); ++i)
     315        {
     316          out.println(bfss.getDataLine(i));
     317        }
    315318        out.println();
    316319      }
  • trunk/se/lu/onk/BaseFile/src/basefile/BASEFileSpotSection.java

    r250 r253  
    176176    return spotData.get(i);
    177177  }
     178 
     179  public S getSpot(int x, int y)
     180  {
     181    return getSpot(y * getWidth() + x);
     182  }
    178183
    179184  public List<S> spotSubList(int fromIndex, int toIndex)
     
    238243  public String getDataLine(int i)
    239244  {
    240    
    241     return null;
     245    String line = getReporter(i).toString();
     246    for (int j = 0; j < getWidth(); ++j)
     247    {
     248      line += "\t"+getSpot(i, j);
     249    }
     250    return line;
    242251  }
    243252
Note: See TracChangeset for help on using the changeset viewer.