Rogue Wave Views Gantt Package API Reference Guide |
Rogue Wave Views Documentation Home |
Interactor to add links to a Gantt chart. More...
#include <ilviews/gantt/ganttint.h>
Public Member Functions | |
IlvGanttAddLinkInteractor (IlvGanttChart *gantt, IlvView *view, IlBoolean oriented=IlTrue) | |
Constructor. More... | |
virtual void | doIt (IlvGraphic *gfrom, IlvGraphic *gto) |
Creates and adds the link. More... | |
IlvGanttChart * | getGanttChart () const |
Returns the Gantt chart with which this interactor is associated. More... | |
virtual IlvGanttLink * | makeLink (IlvGanttNode *from, IlvGanttNode *to) |
Creates the link instance. More... | |
Interactor to add links to a Gantt chart.
Library: ilvgantt
An IlvGanttAddLinkInteractor
interactor lets you interactively add a Gantt link to the Gantt chart.
IlvGanttChart
, IlvGanttLink
, IlvGanttNode
, IlvMakeLinkInteractor
. IlvGanttAddLinkInteractor::IlvGanttAddLinkInteractor | ( | IlvGanttChart * | gantt, |
IlvView * | view, | ||
IlBoolean | oriented = IlTrue |
||
) |
Constructor.
Initializes a new instance of the IlvGanttAddLinkInteractor
class that enables to interactively create links between two nodes of the Gantt chart gantt.
gantt | The gantt to which the interactor is attached. |
view | The gantt chart view to which the interactor is attached. This view must be one of the Gantt grapher view where activities (nodes) are displayed. |
oriented | IlTrue if created links are oriented and IlFalse otherwise. |
|
virtual |
Creates and adds the link.
Retrieves the start and end Gantt nodes from the given graphic objects, before calling the member function IlvGanttAddLinkInteractor::makeLink
.
gfrom | The graphic object representing the starting node of the link |
gto | The graphic object representing the ending node of the link. |
Reimplemented from IlvMakeLinkInteractor.
IlvGanttChart* IlvGanttAddLinkInteractor::getGanttChart | ( | ) | const |
Returns the Gantt chart with which this interactor is associated.
|
virtual |
Creates the link instance.
Returns an IlvGanttLink
instance created from the Gantt node from to the Gantt node to. You can overload this method to create your own type of link.
from | The starting Gantt node. |
to | The ending Gantt node. |
© Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.