Rogue Wave Views
Gantt Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvGanttAbstractObject Class Reference

Gantt chart abstract object class. More...

#include <ilviews/gantt/gantt.h>

Inheritance diagram for IlvGanttAbstractObject:
IlvValueInterface IlvGanttLine IlvGanttLink IlvGanttNode IlvGanttSubNode

Public Member Functions

 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 abstract object class.

Library: ilvgantt
This abstract class is the base class for classes that implement the lines, nodes, subnodes, and links used in the Gantt library (library gantt).

See also
IlvGanttChart, IlvGanttLine, IlvGanttSubNode, IlvGanttNode, IlvGanttLink.

Constructor & Destructor Documentation

§ IlvGanttAbstractObject()

IlvGanttAbstractObject::IlvGanttAbstractObject ( const char *  name = 0,
IlBoolean  copy = IlTrue,
IlvGraphic graphic = 0 
)

Initializes a new IlvGanttAbstractObject.

Parameters
nameThe name of the object. This name must be unique in the scope of the Gantt chart.
copySet to IlFalse if you do not want the name of the object to be copied.
graphicSet to an IlvGraphic object if you want to have a specific representation for this Gantt object.

§ ~IlvGanttAbstractObject()

virtual IlvGanttAbstractObject::~IlvGanttAbstractObject ( )
virtual

Destructor.

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

Member Function Documentation

§ getClientData()

IlAny IlvGanttAbstractObject::getClientData ( ) const

Gets the client data if any has been set.

Returns
The client data if any has been set.

§ getGraphic()

IlvGraphic* IlvGanttAbstractObject::getGraphic ( ) const

Gets the graphic object stored in the Gantt object.

Returns
The graphic object stored in the Gantt object.

§ getName()

const char* IlvGanttAbstractObject::getName ( ) const
virtual

Gets the name stored in the Gantt object.

Returns
The name stored in the Gantt object.

Reimplemented from IlvValueInterface.

§ setClientData()

void IlvGanttAbstractObject::setClientData ( IlAny  data)

Sets the new client data in this Gantt object.

Parameters
dataThe client data.

§ setGraphic()

virtual void IlvGanttAbstractObject::setGraphic ( IlvGraphic graphic,
IlBoolean  destroyOld = IlTrue,
IlBoolean  redraw = IlTrue 
)
virtual

Sets the graphic object displayed by this Gantt object to graphic.

The previous graphic object stored will be destroyed unless the parameter destroyOld is set to IlFalse.

Parameters
graphicThe graphic object to display.
destroyOldSet to IlTrue to destroy the previous graphic object.
redrawIlTrue if the subnode is to be redrawn.

Reimplemented in IlvGanttSubNode.

§ setName()

void IlvGanttAbstractObject::setName ( const char *  name,
IlBoolean  copy = IlTrue 
)

Sets the name of the Gantt object.

Parameters
nameThe new name to give the object. This name must be unique in the scope of the Gantt chart.
copyIlTrue to replace the name with a copy of name, or IlFalse to replace it with the name itself.

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