Views
Gantt Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvGanttLine Class Reference

Gantt chart line class. More...

#include <ilviews/gantt/gantt.h>

Inheritance diagram for IlvGanttLine:
IlvGanttAbstractObject IlvValueInterface

Public Member Functions

 IlvGanttLine (const char *name, IlUShort capacity=1, IlBoolean copy=IlTrue, IlvGraphic *graphic=0)
 Initializes a new IlvGanttLine. More...
 
 ~IlvGanttLine ()
 Destructor. More...
 
IlUShort getCapacity () const
 Gets the capacity of the Gantt line. More...
 
void setCapacity (IlUShort capacity)
 Sets the capacity of the Gantt line to capacity. More...
 
- Public Member Functions inherited from IlvGanttAbstractObject
 IlvGanttAbstractObject (const char *name=0, IlBoolean copy=IlTrue, IlvGraphic *graphic=0)
 Initializes a new IlvGanttAbstractObject. More...
 
virtual ~IlvGanttAbstractObject ()
 Destructor. More...
 
IlAny getClientData () const
 Gets the client data if any has been set. More...
 
IlvGraphicgetGraphic () const
 Gets the graphic object stored in the Gantt object. More...
 
const char * getName () const
 Gets the name stored in the Gantt object. More...
 
void setClientData (IlAny data)
 Sets the new client data in this Gantt object. More...
 
virtual void setGraphic (IlvGraphic *graphic, IlBoolean destroyOld=IlTrue, IlBoolean redraw=IlTrue)
 Sets the graphic object displayed by this Gantt object to graphic. More...
 
void setName (const char *name, IlBoolean copy=IlTrue)
 Sets the name of the Gantt object. More...
 

Detailed Description

Gantt chart line class.

Library: ilvgantt

An IlvGanttLine object describes a Gantt resource.

See also
IlvGanttChart.

Constructor & Destructor Documentation

◆ IlvGanttLine()

IlvGanttLine::IlvGanttLine ( const char *  name,
IlUShort  capacity = 1,
IlBoolean  copy = IlTrue,
IlvGraphic graphic = 0 
)

Initializes a new IlvGanttLine.

Parameters
nameThe name of the Gantt line. This name must be unique in the scope of the Gantt chart.
capacityIndicates the capacity of this Gantt line.
copyIndicates (if IlTrue) whether the object stores a copy of name or the string name itself.
graphicThe IlvGraphic that represents the line.

◆ ~IlvGanttLine()

IlvGanttLine::~IlvGanttLine ( )

Destructor.

The destructor deletes the graphic object and the string name stored in this Gantt line.

Member Function Documentation

◆ getCapacity()

IlUShort IlvGanttLine::getCapacity ( ) const

Gets the capacity of the Gantt line.

Returns the capacity of the Gantt line.

Returns
The capacity of the Gantt line.

◆ setCapacity()

void IlvGanttLine::setCapacity ( IlUShort  capacity)

Sets the capacity of the Gantt line to capacity.

Parameters
capacityThe capacity of the line.