本文整理汇总了Java中org.jfree.data.gantt.TaskSeriesCollection.getStartValue方法的典型用法代码示例。如果您正苦于以下问题:Java TaskSeriesCollection.getStartValue方法的具体用法?Java TaskSeriesCollection.getStartValue怎么用?Java TaskSeriesCollection.getStartValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.data.gantt.TaskSeriesCollection
的用法示例。
在下文中一共展示了TaskSeriesCollection.getStartValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: test800324
import org.jfree.data.gantt.TaskSeriesCollection; //导入方法依赖的package包/类
/**
* A test for bug report 800324.
*/
public void test800324() {
final 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())));
final TaskSeriesCollection tsc = new TaskSeriesCollection();
tsc.add(s1);
// these methods should return null since the column number is too high...
final Number start = tsc.getStartValue(0, 3);
assertEquals(start, null);
final Number end = tsc.getEndValue(0, 3);
assertEquals(end, null);
final int count = tsc.getSubIntervalCount(0, 3);
assertEquals(0, count);
}
示例2: testGetStartValue3
import org.jfree.data.gantt.TaskSeriesCollection; //导入方法依赖的package包/类
/**
* A check for a null task duration.
*/
public void testGetStartValue3() {
TaskSeriesCollection c = new TaskSeriesCollection();
TaskSeries s = new TaskSeries("Series 1");
s.add(new Task("Task with null duration", null));
c.add(s);
Number millis = c.getStartValue("Series 1", "Task with null duration");
assertTrue(millis == null);
}