Changeset 3543
- Timestamp:
- Oct 14, 2015, 2:11:57 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/pdf/PilotReportWorker.java
r3542 r3543 90 90 private static final float PLOT_START_Y = 474.5f; 91 91 // Distance between plots 92 private static final float PLOT_DELTA_Y = 89. 5f;92 private static final float PLOT_DELTA_Y = 89.3f; 93 93 // Size of plots 94 94 private static final float PLOT_WIDTH = 160; … … 96 96 // Text releated to plot 97 97 private static final float PLOT_TEXT_X = 214; 98 private static final float PLOT_TEXT_START_Y = 5 10;98 private static final float PLOT_TEXT_START_Y = 509.5f; 99 99 100 100 private PilotReport script; … … 200 200 String subtypeClass = parsePam50(new File(workDir, "PAM50.txt"), subtypeNames, subtypeScores); 201 201 pdfUtil.addText(subtypeClass, 14, Element.ALIGN_LEFT, SUBTYPE_X1, SUBTYPE_Y1); 202 // Find max score 203 float maxScore = subtypeScores[0]; 204 for (int scoreNo = 1; scoreNo < subtypeScores.length; scoreNo++) 205 { 206 if (subtypeScores[scoreNo] > maxScore) maxScore = subtypeScores[scoreNo]; 207 } 208 // Print scores 202 209 for (int scoreNo = 0; scoreNo < subtypeScores.length; scoreNo++) 203 210 { 204 if ( subtypeClass.equals(subtypeNames[scoreNo]))211 if (Float.compare(subtypeScores[scoreNo], maxScore) == 0) 205 212 { 206 213 pdfUtil.addBoldText(twoDecimals.format(subtypeScores[scoreNo]), 12, Element.ALIGN_LEFT, SUBTYPE_X2+scoreNo*SUBTYPE_XX, SUBTYPE_Y2);
Note: See TracChangeset
for help on using the changeset viewer.