void processMouseReleased(MouseEvent e) {
		getModel().runMouseScript(MouseEvent.MOUSE_RELEASED, e.getX(), e.getY());
		if (energizerOn) {
			energizerButtonPressed = false;
		}
		if (selectedComponent instanceof TextBoxComponent) {
			((TextBoxComponent) selectedComponent).setChangingCallOut(false);
		}
		switch (actionID) {
		case WHAT_ID:
			if (tipPopupMenu != null)
				tipPopupMenu.setVisible(false);
			break;
		case LINE_ID:
			if (dragging) {
				if (selectedComponent != null)
					selectedComponent.setSelected(false);
				LineComponent lc = new LineComponent();
				lc.setLine(mousePressedPoint.x, mousePressedPoint.y, dragPoint.x, dragPoint.y);
				addLayeredComponent(lc);
				repaint();
				dragging = false;
			}
			break;
		case RECT_ID:
			if (selectedArea.width > 0 && selectedArea.height > 0) {
				if (selectedComponent != null)
					selectedComponent.setSelected(false);
				RectangleComponent rc = new RectangleComponent();
				rc.setRect(selectedArea.x, selectedArea.y, selectedArea.width, selectedArea.height);
				addLayeredComponent(rc);
				selectedArea.setSize(0, 0);
				repaint();
			}
			break;
		case ELLI_ID:
			if (selectedArea.width > 0 && selectedArea.height > 0) {
				if (selectedComponent != null)
					selectedComponent.setSelected(false);
				EllipseComponent ec = new EllipseComponent();
				ec.setOval(selectedArea.x, selectedArea.y, selectedArea.width, selectedArea.height);
				addLayeredComponent(ec);
				selectedArea.setSize(0, 0);
				repaint();
			}
			break;
		case TRIA_ID:
			if (selectedArea.width > 0 && selectedArea.height > 0) {
				if (selectedComponent != null)
					selectedComponent.setSelected(false);
				TriangleComponent tc = new TriangleComponent();
				tc.setVertex(0, selectedArea.x + selectedArea.width / 2, selectedArea.y);
				tc.setVertex(1, selectedArea.x, selectedArea.y + selectedArea.height);
				tc.setVertex(2, selectedArea.x + selectedArea.width, selectedArea.y + selectedArea.height);
				addLayeredComponent(tc);
				selectedArea.setSize(0, 0);
				repaint();
			}
			break;
		}
	}