rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Gantt Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvGanttLink Class Reference

Gantt chart link class. More...

#include <ilviews/gantt/gantt.h>

Inheritance diagram for IlvGanttLink:
IlvGanttAbstractObject

List of all members.

Public Member Functions

 IlvGanttLink (IlvGanttNode *from, IlvGanttNode *to, IlvGanttLinkType type=IlvStartsAfterEnd, IlInt delay=0, IlvGraphic *graphic=0)
 Constructor.
IlInt getDelay () const
 Gets the precedence delay.
IlvGanttNodegetFrom () const
 Gets the start node.
IlvGanttNodegetTo () const
 Gets the end node.
IlvGanttLinkType getType () const
 Gets the link type.
void setDelay (IlInt delay, IlBoolean redraw=IlTrue)
 Sets the precedence delay.
void setFrom (IlvGanttNode *from, IlBoolean redraw=IlTrue)
 Sets the start node.
void setTo (IlvGanttNode *to, IlBoolean redraw=IlTrue)
 Sets the end node.
void setType (IlvGanttLinkType type, IlBoolean redraw=IlTrue)
 Sets the link type.

Detailed Description

Gantt chart link class.

Library: ilvgantt

An IlvGanttLink object describes a Gantt precedence constraint. Precedence means one activity occurring before another. It defines the order in which two activities are executed.

See also:
IlvGanttChart, IlvGanttAbstractObject, IlvGanttNode.

Constructor & Destructor Documentation

IlvGanttLink::IlvGanttLink ( IlvGanttNode from,
IlvGanttNode to,
IlvGanttLinkType  type = IlvStartsAfterEnd,
IlInt  delay = 0,
IlvGraphic graphic = 0 
)

Constructor.

The constructor initializes an IlvGanttLink object with the parameters you provide.

You can set the type parameter to one of the eight values given in IlvGanttLinkType. Set the graphic parameter to an IlvGraphic object to have a specific representation for this Gantt object.

Parameters:
from The start Gantt node.
to The end Gantt node.
type The type of the Gantt link. It can be one of the following eight values: IlvStartsAfterEnd, IlvStartsAfterStart, IlvEndsAfterStart, IlvEndsAfterEnd,IlvStartsAtEnd, IlvStartsAtStart, IlvEndsAtStart, IlvEndsAtEnd.
delay Indicates the time between the two nodes.
graphic The IlvGraphic that represents the object.

Member Function Documentation

IlInt IlvGanttLink::getDelay (  )  const

Gets the precedence delay.

Returns:
The precedence delay.
IlvGanttNode* IlvGanttLink::getFrom (  )  const

Gets the start node.

Returns:
The start node.
IlvGanttNode* IlvGanttLink::getTo (  )  const

Gets the end node.

Returns:
The end node.
IlvGanttLinkType IlvGanttLink::getType (  )  const

Gets the link type.

Returns:
The type of the link.
void IlvGanttLink::setDelay ( IlInt  delay,
IlBoolean  redraw = IlTrue 
)

Sets the precedence delay.

Parameters:
delay The precedence delay.
redraw Indicates whether the link should be refreshed.
void IlvGanttLink::setFrom ( IlvGanttNode from,
IlBoolean  redraw = IlTrue 
)

Sets the start node.

Parameters:
from The start node.
redraw Indicates whether the link should be refreshed.
void IlvGanttLink::setTo ( IlvGanttNode to,
IlBoolean  redraw = IlTrue 
)

Sets the end node.

Parameters:
to The end node.
redraw Indicates whether the link should be refreshed.
void IlvGanttLink::setType ( IlvGanttLinkType  type,
IlBoolean  redraw = IlTrue 
)

Sets the link type.

Parameters:
type The link type.
redraw Indicates whether the link should be refreshed.

© Copyright 2012, 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.