public GraphicalComponents(JFrame frame, List<StrasseComponentDTO> str, List<OrtDTO> orte2) {
		super();
		pmenu.add(newPoint);
		this.strassen = str;
		this.orte = orte2;
		
		pa = new PaintAction(orte, strassen, pb, frame);
		newPoint.addActionListener(pa);

		this.addMouseListener(new MouseAdapter() {
			public void mouseReleased(MouseEvent me) {
				if (me.isPopupTrigger()) {
					for(OrtDTO ort : orte) {
						if(ort.getPointX()<me.getX() && (ort.getPointX()+75) > me.getX()
							&& ort.getPointY()<me.getY() && (ort.getPointY()+75) > me.getY()) {
							newPoint.setText(GraphicalUtils.DELETE);
							pb.setPointId(ort.getPointId());
							break;
						}
						else {
							newPoint.setText(GraphicalUtils.NEWPOINT);
						}
					}
					pmenu.show(me.getComponent(), me.getX(), me.getY());
					pb.setxAxis(me.getX());
					pb.setyAxis(me.getY());
 
					try {
						Thread.sleep(100);
					} catch (InterruptedException e1) {
						e1.printStackTrace();
					}
				}
				else if(isMousePressed) {
					isMousePressed = false;
					pb.setxAxisEnd(me.getX());
					pb.setyAxisEnd(me.getY());
					pa.actionPerformed(null);
				}
				
			}
			public void mousePressed(MouseEvent me) {
				if (!me.isPopupTrigger()) {
					isMousePressed = true;
					pb.setxAxis(me.getX());
					pb.setyAxis(me.getY());
				}
			}
		});

	}