Package net.sf.nfp.mini.misc

Examples of net.sf.nfp.mini.misc.Interval


      case AdditionalInfo.DAY_LINE:
        x = tx.get(info.a);
        g.drawLine(x, 0, x, height);
        break;
      case AdditionalInfo.INTERVAL:
        drawInterval(g, new Interval(info.a, info.b), info.color, false);
        break;
      case AdditionalInfo.TEMP_LINE:
        y = ty.get(info.a);
        g.drawLine(margin, y, getWidth(), y);
        break;
View Full Code Here


    boolean lastIsBleeding = true;
    for (int day = 0; day < observations.size(); day++) {
      Observation observation = (Observation) observations.elementAt(day);
      if(observation == null) {
        if(lastIsBleeding)
          drawInterval(g, new Interval(day, day+1), 0xff6060, true);
        continue;
      }
      if(observation.isBleeding()) {
        drawInterval(g, new Interval(day, day+1), 0x800000, true);
        if(day == selectedDay)
          drawInterval(g, new Interval(day, day+1), 0xff0000, true);
        continue;
      }else lastIsBleeding = false;
      if(!observation.hasTemperature())
        continue;
      int x = tx.get(day) + offset;
View Full Code Here

TOP

Related Classes of net.sf.nfp.mini.misc.Interval

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.