AgNode-class            package:Rgraphviz            R Documentation

_C_l_a_s_s "_A_g_N_o_d_e": _A _c_l_a_s_s _t_o _d_e_s_c_r_i_b_e _a _n_o_d_e _f_o_r _a _R_a_g_r_a_p_h _o_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     This class is used to represent nodes for the 'Ragraph' class. 
     One can retrieve various pieces of information as well as draw
     them.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("AgNode", ...)'.

_S_l_o_t_s:

     '_c_e_n_t_e_r': Object of class '"xyPoint"': The center point of the
          node

     '_n_a_m_e': Object of class '"character"': The name of the node, used
          to reference it

     '_t_x_t_l_a_b_e_l': Object of class '"AgTextLabel"': Label for this edge

     '_h_e_i_g_h_t': Object of class '"integer"': Height of the node in
          points

     '_r_W_i_d_t_h': Object of class '"integer"': The right half of the node
          in points.

     '_l_W_i_d_t_h': Object of class '"integer"': The left half of the node
          in points.

     '_c_o_l_o_r': Object of class '"character"': The drawing color of the
          node.

     '_f_i_l_l_c_o_l_o_r': Object of class '"character"': The color to fill in
          the node with.

     '_s_h_a_p_e': Object of class '"character"': The shape of the node.

     '_s_t_y_l_e': Object of class '"character"': The style of the node.

_M_e_t_h_o_d_s:

     _c_o_l_o_r 'signature(object = "AgNode")': Retrieves the drawing color
          for the node.

     _f_i_l_l_c_o_l_o_r 'signature(object = "AgNode")': Retrieves the color to
          fill in the node image with.

     _g_e_t_N_o_d_e_C_e_n_t_e_r 'signature(object = "AgNode")': Returns the center
          point of the node.

     _g_e_t_N_o_d_e_X_Y 'signature(object = "AgNode")': Returns the center as a
          two element list, with the first element containing the 'x'
          value and the second element containing the 'y' value.

     _g_e_t_N_o_d_e_H_e_i_g_h_t 'signature(object = "AgNode")': Returns the height
          of the node. 

     _g_e_t_N_o_d_e_L_W 'signature(object = "AgNode")': Returns the left width
          of the node.

     _g_e_t_N_o_d_e_R_W 'signature(object = "AgNode")': Returns the right width
          of the node.

     _n_a_m_e 'signature(object = "AgNode")': Retrieves the name of the
          node.

     _s_h_a_p_e 'signature(object = "AgNode")': Returns the shape of the
          node.

     _s_t_y_l_e 'signature(object = "AgNode")': Returns the style of the
          node.

     _t_x_t_L_a_b_e_l 'signature(object = "AgNode")': Retrieves the node label.

_A_u_t_h_o_r(_s):

     Jeff Gentry

_S_e_e _A_l_s_o:

     'Ragraph'

_E_x_a_m_p_l_e_s:

     V <- letters[1:10]
     M <- 1:4
     g1 <- randomGraph(V, M, .2)
     z <- agopen(g1,name="foo")
     x <- AgNode(z) ## list of AgNode objects
     vv <- x[[1]]

     ## The methods in use
     color(vv)
     fillcolor(vv)
     getNodeCenter(vv)
     getNodeXY(vv)
     getNodeHeight(vv)
     getNodeLW(vv)
     getNodeRW(vv)
     name(vv)
     shape(vv)
     style(vv)
     txtLabel(vv)

