src/java.desktop/share/classes/java/awt/print/PageFormat.java

Print this page




  54      *  paper.
  55      */
  56     @Native public static final int PORTRAIT = 1;
  57 
  58     /**
  59      *  The origin is at the top right of the paper with x
  60      *  running top to bottom and y running right to left.
  61      *  Note that this is the Macintosh landscape.
  62      */
  63     @Native public static final int REVERSE_LANDSCAPE = 2;
  64 
  65  /* Instance Variables */
  66 
  67     /**
  68      * A description of the physical piece of paper.
  69      */
  70     private Paper mPaper;
  71 
  72     /**
  73      * The orientation of the current page. This will be
  74      * one of the constants: PORTRIAT, LANDSCAPE, or
  75      * REVERSE_LANDSCAPE,
  76      */
  77     private int mOrientation = PORTRAIT;
  78 
  79  /* Constructors */
  80 
  81     /**
  82      * Creates a default, portrait-oriented
  83      * <code>PageFormat</code>.
  84      */
  85     public PageFormat()
  86     {
  87         mPaper = new Paper();
  88     }
  89 
  90  /* Instance Methods */
  91 
  92     /**
  93      * Makes a copy of this <code>PageFormat</code> with the same
  94      * contents as this <code>PageFormat</code>.




  54      *  paper.
  55      */
  56     @Native public static final int PORTRAIT = 1;
  57 
  58     /**
  59      *  The origin is at the top right of the paper with x
  60      *  running top to bottom and y running right to left.
  61      *  Note that this is the Macintosh landscape.
  62      */
  63     @Native public static final int REVERSE_LANDSCAPE = 2;
  64 
  65  /* Instance Variables */
  66 
  67     /**
  68      * A description of the physical piece of paper.
  69      */
  70     private Paper mPaper;
  71 
  72     /**
  73      * The orientation of the current page. This will be
  74      * one of the constants: PORTRAIT, LANDSCAPE, or
  75      * REVERSE_LANDSCAPE,
  76      */
  77     private int mOrientation = PORTRAIT;
  78 
  79  /* Constructors */
  80 
  81     /**
  82      * Creates a default, portrait-oriented
  83      * <code>PageFormat</code>.
  84      */
  85     public PageFormat()
  86     {
  87         mPaper = new Paper();
  88     }
  89 
  90  /* Instance Methods */
  91 
  92     /**
  93      * Makes a copy of this <code>PageFormat</code> with the same
  94      * contents as this <code>PageFormat</code>.