setOrientation(int orientation) throws IllegalArgumentException { if ((orientation != PORTRAIT) && (orientation != LANDSCAPE) && (orientation != REVERSE_LANDSCAPE)) throw new IllegalArgumentException("Bad page orientation value: " + orientation);
public void setOrientation(int orientation) throws IllegalArgumentException { if ((orientation != PORTRAIT) && (orientation != LANDSCAPE) && (orientation != REVERSE_LANDSCAPE)) throw new IllegalArgumentException("Bad page orientation value: " + orientation);
setOrientation(int orientation) throws IllegalArgumentException{  if ((orientation != PORTRAIT) &&      (orientation != LANDSCAPE) &&      (orientation != REVERSE_LANDSCAPE))    throw new IllegalArgumentException("Bad page orientation value: " +                                       orientation);  this.orientation = orientation;}