public Point getLocation() {
		if (layout == Port.RELATIVE)
			return new Point(rx, ry);
		if (layout == Port.NORTH)
			return new Point(parent.getWidth() / 2, 0);
		if (layout == Port.EAST)
			return new Point(parent.getWidth(), parent.getHeight() / 2);
		if (layout == Port.WEST)
			return new Point(0, parent.getHeight() / 2);
		if (layout == Port.SOUTH)
			return new Point(parent.getWidth() / 2, parent.getHeight());
		if (layout == Port.TOP_LEFT)
			return new Point(0, 0);
		if (layout == Port.TOP_RIGHT)
			return new Point(parent.getWidth(), 0);
		if (layout == Port.BOTTOM_LEFT)
			return new Point(0, parent.getHeight());
		if (layout == Port.BOTTOM_RIGHT)
			return new Point(parent.getWidth(), parent.getHeight());
		return new Point(100, 100);
	}