<<<<<<<<<<<<<<<<

widget_edge(layout) Layout widget_edge(layout)

NAME

widget_edge - an edge connecting the nodes in the Network Editor

DESCRIPTION

Widget_edge provides a logical and physical connection between nodes instantiated in in the Network Editor. The logical connection is made by setting the "data_in" instance variable of the object created by the editor. The physical connection is made by drawing a link between the nodes which are motif widget trees that represent the object created by the editor.

SUPERCLASS

object

INSTANCE VARIABLES

sink_node is the name of the node that is to be the sink node. If the edge has has a direction, the sink is the node the edge is incident on. The widget_edge class recognizes nodes by their motif_frames, so sink_node is actually the name of the motif_frame that belongs to the node.

source_node is the name of the node that is to be the source node. If the edge has has a direction, the source is the node the edge emanates from. The widget_edge class recognizes nodes by their motif_frames, so source_node is actually the name of the motif_frame that belongs to the node.

connection_type is the type of connection: uni-directional or no direction. No direction is represented by 0, single direction is represented by 1.

graphic_rep currently is simply the width of the edge. This may be changed to allow edges to be represented different, e.g. using pipes instead of lines and arrows.

xdrawable_name is the name of the xdrawable object on which the graph is drawn.

connect_direction is the direction of the connection ("horizontal or "vertical").

arrowhead_length is the length of the arrowhead (in pixels).

arrowhead_width is the width of the arrowhead (in pixels).

color is the color of the edge.

points is the name of a vector that contains a list of points. This is how bends are inserted into edges.

MESSAGES

source_node? returns the name of the source node (which is actually a the name of a motif_frame object).

sink_node? returns the name of the sink node (which is actually a the name of a motif_frame object).

connection_type? returns the value of the connection type. 0 for no direction, 1 for uni-direction.

graphic_rep? returns the width of the arrow.

xdrawable_name? returns the name of the xdrawable of the Network Editor containing the graph.

connect_direction? returns the connection direction (either "horizontal" or "vertical").

arrowhead_length? returns the length of the arrowhead.

arrowhead_width? returns the width of the arrowhead.

color? returns the color of the arrowhead.

points? returns the name of the vector containing the (x,y) values of the bends in the edge.

returns the name of the vector containing the (x,y) values of the bends in the edge.

EXAMPLE

widget_edge new : [edge_name value?] xdrawable_name = win connect_direction = "horizontal" graphic_rep = 2 connection_type = 1 source_node = frame_one sink_node = frame_two connect! ;

SEE ALSO

partition_algorithm stt


Please send comments and suggestions to
consult@rpi.edu