|
| | IliDbGrapher (IlvDisplay *display, const IlvRect &rect, IlvPalette *palette=0) |
| | Initializes an IliDbGrapher object. More...
|
| |
| void | addErrorSink (IliErrorSink *sink, IlBoolean forNode) |
| | Adds an error sink. More...
|
| |
| IlBoolean | areOutOfOrderEventsSupported () const |
| | Returns IlTrue if the out of order events are supported. More...
|
| |
| IlvLinkImage * | createDefaultObjectLink (IliTableBuffer *buff) |
| | Returns the default object created for a link. More...
|
| |
| IlvGraphic * | createDefaultObjectNode (IliTableBuffer *buff) |
| | Returns the default object created for a node. More...
|
| |
|
void | dontDeleteObject () |
| | Call this member function from the onPrepareDeleteObject() virtual member function or from the corresponding callback to cancel the object deletion.
|
| |
| const char * | getBackgroundPictureName () const |
| | Returns the background picture name. More...
|
| |
| const char * | getBitmapName () |
| | Returns the default bitmap name for nodes. More...
|
| |
| IlvColor * | getColor (IliGrapherColor tag) const |
| | Returns a grapher color. More...
|
| |
| IlInt | getColumnIndex (IliGrapherColumn tag) const |
| | Returns the column index for a grapher column. More...
|
| |
| const char * | getColumnName (IliGrapherColumn tag) const |
| | Returns the column name for a grapher column. More...
|
| |
| IliCreateObjectCallback | getCreateObjectCallback (IlBoolean forNode=IlTrue) const |
| | Returns the callback to create an object. More...
|
| |
| IlAny | getCreateObjectData (IlBoolean forNode=IlTrue) const |
| | Returns the user data to create an object. More...
|
| |
| IliDefineObjectCallback | getDefineObjectCallback (IlBoolean forNode=IlTrue) const |
| | Returns the callback to define the object parameter just before appending into the data source. More...
|
| |
| IlAny | getDefineObjectData (IlBoolean forNode=IlTrue) const |
| | Returns the user data to define an object. More...
|
| |
| IliErrorReporter * | getErrorReporter () const |
| | Returns the error reporter that is used by the reportErrors() member functions. More...
|
| |
| IliDataSource * | getLinkDataSource () const |
| | Returns the data source for links. More...
|
| |
| const char * | getLinkDataSourceName () const |
| | Returns the data source name for links. More...
|
| |
| IliGrapherLinkType | getLinkType () const |
| | Returns the link type. More...
|
| |
| IliDataSource * | getNodeDataSource () const |
| | Returns the data source for nodes. More...
|
| |
| const char * | getNodeDataSourceName () const |
| | Returns the data source name for nodes. More...
|
| |
| const char * | getObjectNameDoubleClicked () const |
| | Returns the object name that has been double-clicked. More...
|
| |
| const char * | getObjectNameMoved () const |
| | Returns the object name that has been moved. More...
|
| |
| const char * | getObjectNamePrepareDeleted () const |
| | Returns the object name that will be deleted. More...
|
| |
| IliUpdateObjectCallback | getUpdateObjectCallback (IlBoolean forNode=IlTrue) const |
| | Returns the callback to update an object. More...
|
| |
| IlAny | getUpdateObjectData (IlBoolean forNode=IlTrue) const |
| | Returns the user data to update an object. More...
|
| |
| IlBoolean | isLinkOriented () const |
| | Returns IlTrue if the links are oriented. More...
|
| |
| IlBoolean | isNameDisplayed () const |
| | Returns IlTrue if the name display of nodes is on. More...
|
| |
| IlBoolean | isNodeDeletetionPropagated () const |
| | Returns IlTrue if the node deletion events are propagated. More...
|
| |
| IlBoolean | isNodeRenamePropagated () const |
| | Returns IlTrue if the node rename events are propagated. More...
|
| |
| virtual IlvLinkImage * | onCreateObjectLink (IliTableBuffer *buff) |
| | Called to create a node. More...
|
| |
| virtual IlvGraphic * | onCreateObjectNode (IliTableBuffer *buff) |
| | Called to create a node. More...
|
| |
| virtual IlBoolean | onDefineLink (IliTableBuffer *buff, IlvGraphic *g=0) |
| | Called to define the parameter of the link just before appending into the data source. More...
|
| |
| virtual IlBoolean | onDefineNode (IliTableBuffer *buff, IlvGraphic *g=0) |
| | Called to define the parameter of the node just before appending into the data source. More...
|
| |
| virtual void | onLinkDoubleClicked () |
| | Called just after a link has been double-clicked. More...
|
| |
| virtual void | onNodeDoubleClicked () |
| | Called just after a node has been double-clicked. More...
|
| |
| virtual void | onNodeMoved () |
| | Called just after a node has been moved. More...
|
| |
| virtual void | onPrepareDeleteObject () |
| | Called just before the deletion of an object. More...
|
| |
| virtual IlvGraphic * | onUpdateObjectLink (IlvGraphic *g, IliTableBuffer *buff) |
| | Called to update a link. More...
|
| |
| virtual IlvGraphic * | onUpdateObjectNode (IlvGraphic *g, IliTableBuffer *buff) |
| | Called to update a node. More...
|
| |
| void | propagateNodeDeletion (IlBoolean propagate) |
| | Enables or disables the option to propagate node deletion events. More...
|
| |
| void | propagateNodeRename (IlBoolean propagate) |
| | Enables or disables the option to propagate node rename events. More...
|
| |
|
void | refreshAll () |
| | Refreshes the display of all nodes and all links.
|
| |
| void | refreshAllLinks (IlBoolean del=IlFalse) |
| | Refreshes the display of all links. More...
|
| |
|
void | refreshAllNodes () |
| | Refreshes the display of all nodes.
|
| |
| void | removeErrorSink (IliErrorSink *sink, IlBoolean forNode) |
| | Removes an error sink from this grapher. More...
|
| |
| void | reportErrors (const IliErrorList &list) const |
| | Reports the errors that are contained in a list error. More...
|
| |
| void | setBackgroundPictureName (const char *name, IlBoolean reload=IlFalse) |
| | Sets the background picture name. More...
|
| |
| void | setBitmapName (const char *name) |
| | Sets the default bitmap name for nodes. More...
|
| |
| void | setColor (IliGrapherColor tag, IlvColor *color) |
| | Sets a grapher color. More...
|
| |
| void | setColumnName (IliGrapherColumn tag, const char *col) |
| | Sets the column name for a grapher column. More...
|
| |
| void | setCreateObjectCallback (IliCreateObjectCallback cb, IlAny arg, IlBoolean forNode=IlTrue) |
| | Sets a callback to create a node or a link. More...
|
| |
| void | setDefineObjectCallback (IliDefineObjectCallback cb, IlAny arg, IlBoolean forNode=IlTrue) |
| | Sets a callback to define the node (or link) parameter just before appending into the data source. More...
|
| |
| void | setDisplayName (IlBoolean flag) |
| | Enables or disables the name display of nodes. More...
|
| |
| void | setErrorReporter (IliErrorReporter *reporter) |
| | Sets the error reporter. More...
|
| |
| void | setLinkDataSource (IliDataSource *ds) |
| | Sets the data source for links. More...
|
| |
| void | setLinkDataSourceName (const char *name) |
| | Sets the data source name for links. More...
|
| |
| void | setLinkType (IliGrapherLinkType type, IlBoolean oriented=IlFalse) |
| | Sets the link type and indicates if the links are oriented or not. More...
|
| |
| void | setNodeDataSource (IliDataSource *ds) |
| | Sets the data source for nodes. More...
|
| |
| void | setNodeDataSourceName (const char *name) |
| | Sets the data source name for nodes. More...
|
| |
| void | setUpdateObjectCallback (IliUpdateObjectCallback cb, IlAny arg, IlBoolean forNode=IlTrue) |
| | Sets a callback to update a node or link. More...
|
| |
| void | supportsOutOfOrderEvents (IlBoolean support) |
| | Enables or disables the option to support out of order events (creating a link before a node). More...
|
| |
Gadget.
Library: dbgraphe
The IliDbGrapher class defines a grapher gadget connected to two data sources (one for nodes and one for links). The following function keys are predefined:
-
The F9 key refreshes all nodes and links.
-
The Insert key adds a new node.
-
The Delete key deletes the selected node or selected link.
-
A drag between two nodes creates a link.
- See also
IliGrapher.
Accessors\nAccessors provide a scriptable and uniform way to inspect and modify an object by using its base class methods <tt>IlvValueInterface::queryValue()</tt>, <tt>IlvValueInterface::queryValues()</tt>, <tt>IlvValueInterface::changeValue()</tt>, <tt>IlvValueInterface::changeValues()</tt>.\n\n\nThis class inherits the accessors of its superclass \c IlvSCGrapherRectangle and adds the following ones:
Data accessors
| Name | Type | Equivalent methods |
backgroundPictureName | String | getBackgroundPictureName(), setBackgroundPictureName(., IlFalse) |
defaultBackgroundLabelColor | Color | getColor(IliGrapherBackgroundLabelColor), setColor(IliGrapherBackgroundLabelColor, .) |
defaultBitmapName | String | setBitmapName(). See [defaultBitmapName] below. |
defaultForegroundLabelColor | Color | getColor(IliGrapherForegroundLabelColor), setColor(IliGrapherForegroundLabelColor, .) |
defaultLinkColor | Color | getColor(IliGrapherLinkColor), setColor(IliGrapherLinkColor, .) |
defaultLinkType | Object | getLinkType(), setLinkType() |
displayName | String | isNameDisplayed(), setDisplayName() |
linkColorColumnName | String | getColumnName(IliGrapherLinkColorColumn), setColumnName(IliGrapherLinkColor, .) |
linkDataSourceName | String | getLinkDataSourceName(), setLinkDataSourceName() |
linkFromColumnName | String | getColumnName(IliGrapherLinkFromColumn), setColumnName(IliGrapherLinkFromColumn) |
linkOriented | Boolean | isLinkOriented(), setLinkType(getLinkType(), .) |
linkOrientedColumnName | String | getColumnName(IliGrapherLinkOrientedColumn), setColumnName(IliGrapherLinkOrientedColumn) |
linkToColumnName | String | getColumnName(IliGrapherLinkToColumn), setColumnName(IliGrapherLinkToColumn) |
linkTypeColumnName | String | getColumnName(IliGrapherLinkTypeColumn), setColumnName(IliGrapherLinkTypeColumn) |
nodeBackgroundColumnName | String | getColumnName(IliGrapherNodeBackgroundColumn), setColumnName(IliGrapherNodeBackgroundColumn) |
nodeBitmapColumnName | String | getColumnName(IliGrapherNodeBitmapColumn), setColumnName(IliGrapherNodeBitmapColumn) |
nodeDataSourceName | String | getNodeDataSourceName(), setNodeDataSourceName() |
nodeForegroundColumnName | String | getColumnName(IliGrapherNodeForegroundColumn), setColumnName(IliGrapherNodeForegroundColumn) |
nodeIdColumnName | String | getColumnName(IliGrapherNodeIdColumn), setColumnName(IliGrapherNodeIdColumn) |
nodeLabelColumnName | String | getColumnName(IliGrapherNodeLabelColumn), setColumnName(IliGrapherNodeLabelColumn) |
nodeXColumnName | String | getColumnName(IliGrapherNodeXColumn), setColumnName(IliGrapherNodeXColumn) |
nodeYColumnName | String | getColumnName(IliGrapherNodeYColumn), setColumnName(IliGrapherNodeYColumn) |
propagateNodeDeletion | Boolean | isNodeDeletetionPropagated(), propagateNodeDeletion() |
propagateNodeRename | Boolean | isNodeRenamePropagated(), propagateNodeRename() |
supportsOutOfOrderEvents | Boolean | areOutOfOrderEventsSupported(), supportsOutOfOrderEvents() |
[defaultBitmapName] The default bitmap of the node. The default value is null. This value is used when the property nodeBitmapColumnName is null.
Method accessors
| Name | Return type | Equivalent methods |
refreshAll() | Void | refreshAll() |