~tiagoantao/ogarak/devel

« back to all changes in this revision

Viewing changes to core/src/malaria/StatusPane.groovy

  • Committer: Tiago Antao
  • Date: 2010-12-15 14:26:26 UTC
  • Revision ID: tiagoantao@gmail.com-20101215142626-1oluwv3ndby4wpte
window positioning on mac

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
            }
93
93
        }
94
94
        cost = (BigInteger.ONE.plus(BigInteger.ONE)).pow(loci).pow(maxMults)
95
 
        println cost
 
95
        //println cost
96
96
        int drugEnvs = ui.epistasis.selectedIndex <2 ? 1 : 2
97
97
        if (ui.policy.selectedIndex == 1) { //MFT
98
98
            envs = 1 + numDrugs * drugEnvs
104
104
        sims = getRangeLen(ui.usage.text) * getRangeLen(ui.fitness.text)
105
105
 
106
106
        pane.setText(template(cost, loci, sims, envs))
107
 
        //pane.paintImmediately(0,0,pane.getWidth(),pane.getHeight())
 
107
        pane.paintImmediately(0,0,pane.getWidth(),pane.getHeight())
108
108
    }
109
109
 
110
110
    int getRangeLen(String range) {