OrientationRequested.PORTRAIT : OrientationRequested « javax.print.attribute.standard « Java by API






OrientationRequested.PORTRAIT

  

import javax.print.attribute.HashPrintRequestAttributeSet;
import javax.print.attribute.PrintRequestAttributeSet;
import javax.print.attribute.standard.OrientationRequested;

public class Main {
  public static void main(String[] argv) throws Exception {
    // Set up the attribute set
    PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
    aset.add(OrientationRequested.PORTRAIT);
    // aset.add(OrientationRequested.LANDSCAPE);

  }
}       

   
    
  








Related examples in the same category