Package timeflow.data.time

Examples of timeflow.data.time.Interval


        public void adjustmentValueChanged(AdjustmentEvent e) {
          visuals.grid.setDY(bar.getValue());
         
          // set time in model.
          RoughTime startTime=visuals.grid.getFirstDrawnTime();
          Interval viewInterval=getModel().getViewInterval();
          if (viewInterval!=null)
          {
            viewInterval.translateTo(startTime.getTime());
          }
         
          calendarPanel.drawVisualization();
          calendarPanel.repaint();
        }
View Full Code Here


      if (desired>height)
      {
        bar.setMinimum(0);
        bar.setMaximum(desired);
        bar.setVisibleAmount(height);
        Interval view=getModel().getViewInterval();
        if (view!=null && forceValue)
        {         
          double s=visuals.grid.getScrollFraction();
          double maxFraction=(desired-height)/(double)desired;
          int value=(int)((s/maxFraction)*desired);
 
View Full Code Here

      g.fillRect(x0, y, x1-x0-1, h);
      g.setColor(Color.white);
      g.drawLine(x1-1, y, x1-1, y+h);
      g.drawLine(x0,y+h,x1,y+h);
      objectLocations.add(new Mouseover(new Interval(start,end), x0, y, x1-x0-1, h));
     
      g.setFont(model.getDisplay().timeLabel());
      String label=full? t.unit.formatFull(start) : t.unit.format(new Date(start));
      int tx=x0+3;
      int ty=y+h-5;
View Full Code Here

TOP

Related Classes of timeflow.data.time.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.