@Override
	public void mouseClicked(MouseEvent e) {
		if(e.getClickCount() == 2 && e.getButton() == MouseEvent.BUTTON1){

			if(working_layer == -1){
				JOptionPane.showMessageDialog(null, "Fonctionnalité non implementée.");
			}else{
				new FigureEditor(this.p, this.working_layer);
			}
		}else if(e.getButton() == MouseEvent.BUTTON3){
			if(working_layer == -1){
				new DrawPopup(p).show(d, e.getX(), e.getY());
			}else{
				new DrawPopup(p, p.getDrawables().get(working_layer)).show(d, e.getX(), e.getY());
				working_layer = -1;
				p.setWorkingLayer(working_layer);
			}
		}
	}