Package org.jfree.data.time

Examples of org.jfree.data.time.SimpleTimePeriod


     * A test for bug report 800324.
     */
    public void test800324() {
        TaskSeries s1 = new TaskSeries("S1");
        s1.add(
            new Task("Task 1", new SimpleTimePeriod(new Date(), new Date()))
        );
        s1.add(
            new Task("Task 2", new SimpleTimePeriod(new Date(), new Date()))
        );
        s1.add(
            new Task("Task 3", new SimpleTimePeriod(new Date(), new Date()))
        );
               
        TaskSeriesCollection tsc = new TaskSeriesCollection();
        tsc.add(s1);

View Full Code Here


        t1.setDescription("X");
        assertFalse(t1.equals(t2));
        t2.setDescription("X");
        assertTrue(t1.equals(t2));
       
        t1.setDuration(new SimpleTimePeriod(new Date(2), new Date(3)));
        assertFalse(t1.equals(t2));
        t2.setDuration(new SimpleTimePeriod(new Date(2), new Date(3)));
        assertTrue(t1.equals(t2));
       
        t1.setPercentComplete(0.5);
        assertFalse(t1.equals(t2));
        t2.setPercentComplete(0.5);
View Full Code Here

TOP

Related Classes of org.jfree.data.time.SimpleTimePeriod

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.