Rogue Wave Views Gantt Package API Reference Guide |
Rogue Wave Views Documentation Home |
Gantt chart abstract object class. More...
#include <ilviews/gantt/gantt.h>
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... | |
IlvGraphic * | getGraphic () 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... | |
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).
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.
name | The name of the object. This name must be unique in the scope of the Gantt chart. |
copy | Set to IlFalse if you do not want the name of the object to be copied. |
graphic | Set to an IlvGraphic object if you want to have a specific representation for this Gantt object. |
|
virtual |
Destructor.
The destructor deletes the graphic object and the name string stored in this Gantt object.
IlAny IlvGanttAbstractObject::getClientData | ( | ) | const |
Gets the client data if any has been set.
IlvGraphic* IlvGanttAbstractObject::getGraphic | ( | ) | const |
Gets the graphic object stored in the Gantt object.
|
virtual |
Gets the name stored in the Gantt object.
Reimplemented from IlvValueInterface.
void IlvGanttAbstractObject::setClientData | ( | IlAny | data | ) |
Sets the new client data in this Gantt object.
data | The client data. |
|
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
.
graphic | The graphic object to display. |
destroyOld | Set to IlTrue to destroy the previous graphic object. |
redraw | IlTrue if the subnode is to be redrawn. |
Reimplemented in IlvGanttSubNode.
Sets the name of the Gantt object.
Calls delete
for the current object name and then replaces it.
name | The name to give the object. This name must be unique in the scope of the Gantt chart. |
copy | IlTrue to replace the name with a copy of name, or IlFalse to replace it with the name itself. |
© 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.