Click for image我正在尝试使用甘特图在两个事件之间建立连接。箭头的默认连接是从右到左。我想从右到右。
我尝试了默认方法addConnection(source,target)方法显示从右到左的连接,我无法从右到右
GanttChart ganttChart = new GanttChart(shell, SWT.NONE);
Calendar sdEventOne = Calendar.getInstance();
Calendar edEventOne = Calendar.getInstance();
edEventOne.add(Calendar.DATE, 10);
Calendar sdEventTwo = Calendar.getInstance();
Calendar edEventTwo = Calendar.getInstance();
sdEventTwo.add(Calendar.DATE, 11);
edEventTwo.add(Calendar.DATE, 15);
Calendar cpDate = Calendar.getInstance();
cpDate.add(Calendar.DATE, 16);
GanttEvent eventOne = new GanttEvent(ganttChart, "Scope Event 1", sdEventOne, edEventOne, 35);
GanttEvent eventTwo = new GanttEvent(ganttChart, "Scope Event 2", sdEventTwo, edEventTwo, 10);
GanttEvent eventThree = new GanttEvent(ganttChart, "Checkpoint", cpDate, cpDate, 75);
eventThree.setCheckpoint(true);[enter image description here][1]
ganttChart.addConnection(eventOne, eventTwo);
除了建立从右到右的连接