![]() |
![]() |
Node Properties |
|||||||||||||||
A node is the basic item that shows up in the toolbox. It is the base class for all neurons and other draggable items like graphics, text, and subsystems. Therefore, all items that inherit from node also contain all of its properties. The following is a list of those properties. AlignmentSets the text alignment style. Default value: CenterMiddle. Acceptable Values:
AutoSize This property allows to adjust node size to picture size or adjust picture size to node size. Default value: None. Acceptable Values:
Back Mode If applied to a node or a link, it determines whether the background remains untouched or if the background is filled with the current background color before the text.
Acceptable Values:
Dash Style Sets the pen style used to draw the border of the node. Default value: Solid. Acceptable Values:
Draw Color Sets the pen color used to draw the border of the node. Default value: Black. Acceptable Values: Any Color from the drop-down box. Draw Width Sets the width of the line used to draw the border of the node. Default value: 1. Acceptable Values:Any Positive Integer value. Fill Color Sets the pen color used to draw the inside of the node. Default value: Different for each node. Acceptable Values: Any Color from the drop-down box. Font Sets the font used for the text in the node. Default value: Arial 14 point. Acceptable Values: Any font that can be configured using the font editor dialog. Gradient Determines whether the fill color of the node uses a gradient. If this is true then the node is filled using a gradient that starts with the fill color and goes to the gradient color using the gradient mode to specify the direction of the fill.
Default value: No Gradient. Gradient Color Sets the color used fill a node with a gradient. This value is only used if Gradient is set to true. Default value: Different for each node. Acceptable Values: Any Color from the drop-down box. Gradient Mode Determines the direction that a gradient will be filled in the node. Default value: BackwardDiagonal. Acceptable Values:
Image This property allows the user to add a image to the node. The way the image is displayed is determined by the Autosize feature. Once an image has been added the original image file is no longer needed. The binary data for the image is stored in the configuration file. This means that you can put an image in your diagram and you do not have to worry about distributing the linked jpeg or gif file along with your project files. Since it is made a part of the project then when someone else opens it on a new computer that does not have those image files they will still appear correctly in the diagram. Default value: No Image. Location This is a read-only property that tells you the (x, y) coordinates of this node. If you want to change the location of the node you need to select it on the diagram and drag it to a new location. Default value: Different for each node. Acceptable Values: Any Color from the drop-down box. Shadow Color If a shadow has been specified then this determines the color used for the shadow. Default value: Black. Acceptable Values: Any Color from the drop-down box. Shadow Size If a shadow has been specified then this tells how many pixels to use for the width and height when drawing the shadow. Default value: (0, 0). Acceptable Values: Any positive integers. Shadow Style Determines the whether to use a shadow for the node and if so then where the shadow should be located.
Default value: None. Acceptable Values:
Shape Determines the geometrical shape of this node.
Default value: None. Acceptable Values: See figure 5. Shape Orientation This property allows rotating some node shapes (not all shapes). Only 4 angle values are accepted: 0°, 90°, 180°, 270°. This property has no effect if the shape is one of the following:
Default value: Angle0. Acceptable Values:
Size This is a read-only property that tells you the (width, height) size of this node. If you want to change the size of the node you need to select it on the diagram and then drag the edges to make it bigger. Default value: Different for each node. Acceptable Values: Any Color from the drop-down box. Text Color Specifies the color of the text in the node. Default value: Black. Acceptable Values: Any Color from the drop-down box. Text Margin Sets the size of the margins for the text of the node. The margin is expressed in percentage of the size of the node.
Default value: (0, 0). Acceptable Values: Positive integer values. Transparent Determines whether the node transparent or not. Default value: False.
|