public class GanttConnection
extends java.lang.Object
implements java.lang.Cloneable
GanttChart.addConnection(GanttEvent, GanttEvent)
on the GanttChart
.Constructor and Description |
---|
GanttConnection() |
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.
|
GanttConnection(GanttEvent source,
GanttEvent target,
org.eclipse.swt.graphics.Color color) |
Modifier and Type | Method and 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.
|
(package private) void |
setParentComposite(GanttComposite _parent)
Set the parent composite
|
void |
setSource(GanttEvent source)
Sets the source event of this connection.
|
void |
setTarget(GanttEvent target)
Sets the target event of this connection.
|
GanttConnection()
GanttConnection(GanttEvent source, GanttEvent target, org.eclipse.swt.graphics.Color color)
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()
void setParentComposite(GanttComposite _parent)
_parent
- public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object