227228229230231232233234235
protected GraphLayout2D createLayout() { return new DefaultGraphLayout2D(this); } private void registerInputHandler() { GraphInputListener h = new InternalInputListener(); canvas.addMouseListener(h); canvas.addMouseMotionListener(h); }