Chapter Contents |
Previous |
Next |
Organizational Chart: _setColor |
Syntax | |
Details | |
Example |
Syntax |
CALL NOTIFY (orgchart-name, '_setColor', color-var, color<, nodetype<, node-id>>); |
Argument | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
color-var | C | specifies the node variable to be assigned the color:
|
||||||||
color |
C | specifies a color | ||||||||
nodetype |
N | specifies the index of the node type. If node-id is specified, specify a missing value for nodetype. If omitted, missing, or 0, all existing node types use the specified color. | ||||||||
node-id |
N | specifies the numeric identifier of a single node whose color you want to set. Ignored if nodetype is given. |
Details |
If you omit both the nodetype and the node-id arguments from the _setColor method, the default value for all node types are changed. If you omit the node-id argument, then the default color for the particular node type is changed.
If a node-id is included in the arguments, then the node-specific color values are changed, overriding any default value.
Example |
This example sets the colors of all nodes of type 1:
call notify('org1','_set_color_', 'background_color','black',1); call notify('org1','_set_color_', 'foreground_color','white',1); call notify('org1','_set_color_', 'border_color', 'gray', 1); call notify('org1','_set_color_', 'line_color', 'red', 1);
This example sets the background color for the node whose identifier is stored in the variable NODEID. Because this statement assigns a color to a specific node, a missing value is given for nodetype:
call notify('org1', '_set_color_', 'background_color', 'blue', . ,nodeid);
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.