NodeInfo



Release:

4.6  •  5.0  •  5.1  •  5.2  •  5.3  •  5.4  •  6.0  •  6.1  •  6.2  •  6.3  •  6.4  •  6.5


NodeInfo Attribute

The NodeInfo attribute encodes various style information about how a node displays on an influence diagram. Many of these styles appear on the Node Style dialog. The attribute value consists of a comma-separated list of numbers (fields), most being 0,1-boolean flags.

Fields can be blank, in which case they are inherited from the NodeInfo attribute of the object's class. For example, a Button inherits its NodeInfo values from NodeInfo of Button.

Fields

The general form of the attribute value is

version, showinputs, showoutputs, showlabel, showborder, fill, usenodefont, formwidth, showbevel, showformicon, embed, visibility, justification, control on left, tab advance on enter, vertical justification of lable, vertical alignment of button, corner radius
  1. version indicates the version of this attribute's format; 1 in the current version of Analytica
  2. showinputs
  3. showoutputs
  4. showlabel
  5. showborder
  6. fill
  7. usenodefont
  8. formwidth specifies the width of an input node’s or output node’s field (0 is the default, which means the actual width will be computed based on the font size).
  9. showbevel
  10. showformicon have values of 0 (for off) or 1 (for on). Showformicon only applies to output nodes.
  11. embed: (Not yet implemented) For an input node with an underlying table, a value 0 indicates that a button should appear to bring the edit table up in a separate window. A value 1 indicates that the edit table should be embedded in the diagram. For an output variable with an array result, 0 indicates that a Calc or Result button should appear that opens the result in a separate window, 1 indicates that the result should be embedded. If you embed a table or graph, you need to size your control to be large enough to accommodate it. If this is unset, Analytica and ACP will assume the intention is to embed when the control is taller than 5 lines of text, or about 60 pixels.
  12. Visibility: (requires Analytica 5.0) 0=(default) Visible, 1 = Hidden, 2 = Very hidden, 3 = Extremely hidden, 4 = Hidden in browse mode, 5 = Visible but disabled (in both edit and browse mode), 6 = Visible but disabled in Browse mode.
    When Hidden, you can still select the node rectangle in edit mode, see it in the Outliner window, and find it when searching. Extremely hidden hides the object in all parts of the user interface, which makes it really hard to access the object.
  13. Justification: (requires Analytica 5.0) 0 = Left align text, 1 = Center align text, 2 = Right align text.
  14. Control on left: (requires Analytica 5.0) 0 = (default) Control is to the right of the label text, 1 = Control is on the left of the label text. Starting with Analytica 6.0, in a tall Formnode with Vertical Justification of label = top, a value of 2=center is also allowed.
  15. Tab advance on Enter: (requires Analytica 5.0) Applies to an input control. 0 = Focus stays on control after changing the value, 1 = Focus moves to the next control in tab-order after changing the value.
  16. Vertical justification of label: (requires Analytica 6.0). Vertical location of label. Applies to tall Formnodes only. 1=Top, 2=Middle.
  17. Vertical alignment of button: (new to Analytica 6.0). Applies to tall Formnodes. Unset=button on same line as label. 1=button in middle.
  18. Corner radius: (new to Analytica 6.0). Text nodes, form nodes, frame nodes and picture nodes now display with rounded corners (for a more modern look). This field specifies the radius of the corners in pixels. 0 means no rounding. Non-rectangular node shapes ignore this.
  19. truncationLength: (new to Analytica 6.5). Excessively long text nodes on a diagram can take a long time to render. The default is to truncate text node text at 5000 characters. Set this to a larger number for a larger maximum number of characters (which may display more slowly), or to zero to eliminate truncation entirely.
  20. lock: (new to Analytica 6.5) When set, the node behaves as if you have browse-only turned on. Prevents the node from accidentally being moved when in edit more.
  21. duplicateOnDrag: (new to Analytica 6.5) When set, when you drag the node, instead of moving it creates a duplicate node, leaving the original in its original location.
  22. noMultiSelect: (new to Analytica 6.5) Excludes this node from rubber-band selects or multiple nodes or Select All selections on the same diagram. Also, prevents it from being selected with other nodes (i.e., either it is the only node selected, or it is unselected).
  23. adjToText: (new to Analytica 6.5): When set to 0, suppresses the UI's "automatic adjust to text" feature when the content changes.

See Also

Comments


You are not allowed to post comments.