<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet type="text/xsl" href="../style/class_view.xsl"?>
<Node>
===============================================
  Node - class to represent node
===============================================
This class is Multiple Master - compatible

<CONSTRUCTOR>
  Node() - generic constructor, creates an empty node
  Node(Node) - copy constructor
  Node(intteger type, <cl>Point</cl> p) - creates a Node and assigns type and coordinates of the final point

</CONSTRUCTOR>
	<ATTRIBUTES>
  parent (read-only) - Node's parent object, <cl>Glyph</cl>
  type (integer) - type of the node, values are: nMOVE, nLINE, nCURVE or nOFF
  count (integer, read-only) - number of points in the node. 3 for curves and 1 for all other types of nodes
  alignment (integer) - type of primitive connection, possible values are: 
                        nSHARP, nSMOOTH, nFIXED
  selected (integer) - True if node is selected
  point (<cl>Point</cl>) - position of the final point of the first master
  points [(<cl>Point</cl>s)] - positions of all points of the first master
  x (integer) - horizontal position of the final point of the node
  y (integer) - vertical position of the final point of the node

</ATTRIBUTES>
	<OPERATIONS>
  len() - returns number of points in the node, same as count attribute
  [] - can be used to access individial points of the first master
  multiply - second operand must be <cl>Matrix</cl>, applies matrix transformation to a node

</OPERATIONS>
	<METHODS>
  Assign - assigns new values to a Node, refer to constructor for a description of possible options
  SetAllLayers(pointindex, <cl>Point</cl> p) - assigns position of the point p to all 
                                               masters of the point number 'pointindex'
  Layer(masterindex) - returns list of points for the master 'masterindex'
  Section(pointindex) - returns list of points for all layers and point number 'pointindex'
  Shift(<cl>Point</cl> p, masterindex) - shifts position of all points for the master 'masterindex'
  ExpandLayer(masterindex) - copies positions of all points in the master 'masterindex' to other masters
  Transform(<cl>Matrix</cl> m) - applies Matrix transformation to the Node (see Matrix().__doc__)

</METHODS>
</Node>
