Fixed the UI classes to support the new Funcion and JGrafica objects.

Signed-off-by: Jedabero <jedabero@hotmail.com>