When Raffles wrote his landmark publication The History of Java in 1817, ruin sentiment was a fashionable if rather wistful turn of mind that had a considerable influence on British art and…