Java by API/javax.print.attribute.standard/OrientationRequested — различия между версиями

Материал из Java эксперт
Перейти к: навигация, поиск
м (1 версия)
 
м (1 версия)
 
(нет различий)

Текущая версия на 17:33, 31 мая 2010

OrientationRequested.PORTRAIT

   <source lang="java">
 

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);
 }

}


 </source>