rwlogo

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:
IlvGanttLine IlvGanttLink IlvGanttNode IlvGanttSubNode

Public Member Functions

 IlvGanttAbstractObject (const char *name=0, IlBoolean copy=IlTrue, IlvGraphic *graphic=0)
 Constructor. 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 (libgantt library in the $ILVHOME/lib/<machine> directory).

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

Constructor & Destructor Documentation

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

Constructor.

The constructor initializes a new instance of the IlvGanttAbstractObject class with the parameters you provide. The object will store a copy of the string name.

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.
virtual IlvGanttAbstractObject::~IlvGanttAbstractObject ( )
virtual

Destructor.

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

Member Function Documentation

IlAny IlvGanttAbstractObject::getClientData ( ) const

Gets the client data if any has been set.

Returns
The client data if any has been set.
IlvGraphic* IlvGanttAbstractObject::getGraphic ( ) const

Gets the graphic object stored in the Gantt object.

Returns
The graphic object stored in the Gantt object.
const char* IlvGanttAbstractObject::getName ( ) const

Gets the name stored in the Gantt object.

Returns
The name stored in the Gantt object.
void IlvGanttAbstractObject::setClientData ( IlAny  data)

Sets the new client data in this Gantt object.

Parameters
dataThe client data.
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.

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

Sets the name of the Gantt object.

Calls delete for the current object name and then replaces it.

Parameters
nameThe 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 2014, 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.