return events;
}
private void addEvent(List<Event> events, String name, long t1, long t2,
long startTime, Color color) {
Event event = new Event();
event.setFamily(name);
event.setBegin(t1);
event.setEnd(t2);
int xPos = (int) getScaledXValue((t2 - startTime))
+ GraFixConstants.xOffset;
int width = (int) getScaledXValue(((t1 - startTime) - (t2 - startTime)));
event.setLayout(new Rectangle(xPos, ypos, width, 15));
event.setColor(color);
events.add(event);
}