Her early interest in airplanes foreshadowed her later career as a pilot. The hero's predicament is foreshadowed in the first chapter.
He treats Caliban cruelly by cursing him with pains and speaking condescendingly to him.
By saying that it is foreshadowing as for shadowing means looking over it