public DragDirection isInsideBorder(Point2D.Float point)
	{
		if (objectType == EditorObjectType.SPIKE)
		{
			if (point.x >= position.x && point.x <= position.x + width)
			{
				if (point.y >= position.y && point.y <= position.y + height)
					return DragDirection.INSIDE;
			}
		}
		else if (objectType == EditorObjectType.PC)
		{
			if (point.x >= position.x - width / 2 && point.x <= position.x + width / 2)
			{
				if (point.y >= position.y - height / 2 && point.y <= position.y + height / 2)
					return DragDirection.INSIDE;
			}
		}
		else
		{
			// west side
			if (point.x >= position.x - 4 - (width / 2) && point.x < position.x + 4 - (width / 2))
			{
				if (point.y >= position.y - 4 - (height / 2) && point.y < position.y + 4 - (height / 2))
				{
					return DragDirection.NORTHWEST;
				}
				else if (point.y >= position.y + 4 - (height / 2) && point.y <= position.y - 4 + (height / 2))
				{
					return DragDirection.WEST;
				}
				else if (point.y > position.y - 4 + (height / 2) && point.y <= position.y + 4 + (height / 2))
				{
					return DragDirection.SOUTHWEST;
				}
			}
			// center
			else if (point.x >= position.x + 4 - (width / 2) && point.x <= position.x - 4 + (width / 2))
			{
				if (point.y >= position.y - 4 - (height / 2) && point.y < position.y + 4 - (height / 2))
				{
					return DragDirection.NORTH;
				}
				else if (point.y >= position.y + 4 - (height / 2) && point.y <= position.y - 4 + (height / 2))
				{
					return DragDirection.INSIDE;
				}
				else if (point.y > position.y - 4 + (height / 2) && point.y <= position.y + 4 + (height / 2))
				{
					return DragDirection.SOUTH;
				}
			}
			// east side
			else if (point.x > position.x - 4 + (width / 2) && point.x <= position.x + 4 + (width / 2))
			{
				if (point.y >= position.y - 4 - (height / 2) && point.y < position.y + 4 - (height / 2))
				{
					return DragDirection.NORTHEAST;
				}
				else if (point.y >= position.y + 4 - (height / 2) && point.y <= position.y - 4 + (height / 2))
				{
					return DragDirection.EAST;
				}
				else if (point.y > position.y - 4 + (height / 2) && point.y <= position.y + 4 + (height / 2))
				{
					return DragDirection.SOUTHEAST;
				}
			}
		}
		return DragDirection.OUTSIDE;
	}