java-org.hwo.ui/src/org/hwo/ui/gantt/TestGantt.java

35 lines
1.0 KiB
Java
Raw Permalink Normal View History

2015-08-12 22:27:20 +02:00
package org.hwo.ui.gantt;
2015-06-24 23:32:14 +02:00
import java.io.Console;
import javax.swing.JApplet;
import javax.swing.JDialog;
import javax.swing.JScrollPane;
import org.hwo.datetime.Date;
import org.hwo.datetime.DateTime;
import org.hwo.datetime.TimeOfDay;
2015-08-12 22:27:20 +02:00
public class TestGantt {
2015-06-24 23:32:14 +02:00
public static void main(String[] args) {
ResourceAvailability ra = ResourceAvailability.generateWeekly(new Date(), 60, new boolean[]{false,true,true,true,true,true,false}, new TimeOfDay(8, 0, 0),new TimeOfDay(16, 59, 59));
ra.makeAvailable(new DateTime(new Date(2015,8,8),new TimeOfDay(8,0,0)),new DateTime(new Date(2015,8,8),new TimeOfDay(22, 0, 0)));
ra.makeAvailable(new DateTime(new Date(2015,8,9),new TimeOfDay(8,0,0)),new DateTime(new Date(2015,8,9),new TimeOfDay(12, 0, 0)));
ra.makeUnAvailable(new DateTime(new Date(2015,8,10),new TimeOfDay(0,0,0)),new DateTime(new Date(2015,8,11),new TimeOfDay(23, 59, 59)));
System.err.println(ra.toString());
2015-08-12 22:27:20 +02:00
JGanttTestDialog dialog = new JGanttTestDialog();
2015-06-24 23:32:14 +02:00
dialog.setVisible(true);
System.exit(0);
}
}