protected ConnectionFigure createConnection() { try { Class cLayer = Class.forName(objType); LayerConnection lc = (LayerConnection) cLayer.newInstance(); lc.setParams(params); // Each component is provided with a pointer to the parent NeuralNet object NeuralNetDrawing nnd = (NeuralNetDrawing) view.drawing(); lc.setParam("NeuralNet", nnd.getNeuralNet()); return lc; } catch (ClassNotFoundException cnfe) { log.warn( "ClassNotFoundException exception thrown while ConnectionFigure. Message is : " + cnfe.getMessage(), cnfe); } catch (InstantiationException ie) { log.warn( "InstantiationException exception thrown while ConnectionFigure. Message is : " + ie.getMessage(), ie); } catch (IllegalAccessException iae) { log.warn( "IllegalAccessException exception thrown while ConnectionFigure. Message is : " + iae.getMessage(), iae); } return null; }