java.lang.Cloneablepublic class GanttConnection
extends java.lang.Object
implements java.lang.Cloneable
GanttChart.addConnection(GanttEvent, GanttEvent) on the GanttChart.| Constructor | Description |
|---|---|
GanttConnection(GanttChart parent,
GanttEvent source,
GanttEvent target) |
Creates a new connection between two events.
|
GanttConnection(GanttChart parent,
GanttEvent source,
GanttEvent target,
org.eclipse.swt.graphics.Color lineColor) |
Creates a new connection between two events and gives the connecting line a specific color.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
clone() |
Clones the GanttConnection (and adds the clone to the parent)
|
void |
dispose() |
Disposes this connection
|
boolean |
equals(java.lang.Object obj) |
|
org.eclipse.swt.graphics.Color |
getColor() |
Returns the color of the line drawn in the connection.
|
GanttEvent |
getSource() |
Returns the source event of this connection.
|
GanttEvent |
getTarget() |
Returns the target event of this connection.
|
void |
setColor(org.eclipse.swt.graphics.Color color) |
Sets the color of the line drawn in the connection.
|
void |
setSource(GanttEvent source) |
Sets the source event of this connection.
|
void |
setTarget(GanttEvent target) |
Sets the target event of this connection.
|
public GanttConnection(GanttChart parent, GanttEvent source, GanttEvent target)
parent - Gantt Chart parentsource - Source eventtarget - Target eventpublic GanttConnection(GanttChart parent, GanttEvent source, GanttEvent target, org.eclipse.swt.graphics.Color lineColor)
parent - Gantt Chart parentsource - Source eventtarget - Target eventlineColor - Color of line and arrowhead drawn between the eventspublic GanttEvent getSource()
public void setSource(GanttEvent source)
source - Source eventpublic GanttEvent getTarget()
public void setTarget(GanttEvent target)
target - Target eventpublic org.eclipse.swt.graphics.Color getColor()
public void setColor(org.eclipse.swt.graphics.Color color)
color - Color or null for default color.public void dispose()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object