@Override
public void mapChanged(MapEvent e) {
vv.repaint();
}
});
MapGraphMouse egm = new MapGraphMouse(owner, vv.getRenderContext(), new DeviceFactory(), new ConnectionFactory());
egm.setMode(ModalGraphMouse.Mode.PICKING);
vv.setGraphMouse(egm);
vv.setBackground(Color.white);
vv.addGraphMouseListener(this);
vv.getRenderer().getVertexLabelRenderer().setPosition(edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel.Position.S);