public void drawNode(Graphics g,int w,int h){
  if ((m_type & OUTPUT) == OUTPUT) {
    g.setColor(Color.orange);
  }
 else {
    g.setColor(Color.red);
  }
  g.fillOval((int)(m_x * w) - 9,(int)(m_y * h) - 9,19,19);
  g.setColor(Color.gray);
  g.fillOval((int)(m_x * w) - 5,(int)(m_y * h) - 5,11,11);
}

public void drawNode ( Graphics g , int w , int h ) { if ( ( m_type & OUTPUT ) == OUTPUT ) { g . setColor ( Color . orange ) ; } else { g . setColor ( Color . red ) ; } g . fillOval ( ( int ) ( m_x * w ) - 9 , ( int ) ( m_y * h ) - 9 , 19 , 19 ) ; g . setColor ( Color . gray ) ; g . fillOval ( ( int ) ( m_x * w ) - 5 , ( int ) ( m_y * h ) - 5 , 11 , 11 ) ; }
call this function to draw the node .
