请知道如何将自定义鼠标事件添加到graphics2D对象中?
image = ImageIO.read(map_file);
logo_maps = ImageIO.read(map_file_logo);
Graphics2D test;
test = image.createGraphics();
test.setColor(Color.red);
test.drawImage(logo_maps,l.getX(),l.getY(), 20, 20,this);
test.drawString(l.getLibelle(), l.getX(),l.getY());