src/share/classes/java/awt/print/PageFormat.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 27,44 ****
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
! import javax.tools.annotation.GenerateNativeHeader;
/**
* The <code>PageFormat</code> class describes the size and
* orientation of a page to be printed.
*/
- /* No native methods here, but the constants are needed in the supporting JNI code */
- @GenerateNativeHeader
public class PageFormat implements Cloneable
{
/* Class Constants */
--- 27,42 ----
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
! import java.lang.annotation.Native;
/**
* The <code>PageFormat</code> class describes the size and
* orientation of a page to be printed.
*/
public class PageFormat implements Cloneable
{
/* Class Constants */
*** 46,70 ****
* The origin is at the bottom left of the paper with
* x running bottom to top and y running left to right.
* Note that this is not the Macintosh landscape but
* is the Window's and PostScript landscape.
*/
! public static final int LANDSCAPE = 0;
/**
* The origin is at the top left of the paper with
* x running to the right and y running down the
* paper.
*/
! public static final int PORTRAIT = 1;
/**
* The origin is at the top right of the paper with x
* running top to bottom and y running right to left.
* Note that this is the Macintosh landscape.
*/
! public static final int REVERSE_LANDSCAPE = 2;
/* Instance Variables */
/**
* A description of the physical piece of paper.
--- 44,68 ----
* The origin is at the bottom left of the paper with
* x running bottom to top and y running left to right.
* Note that this is not the Macintosh landscape but
* is the Window's and PostScript landscape.
*/
! @Native public static final int LANDSCAPE = 0;
/**
* The origin is at the top left of the paper with
* x running to the right and y running down the
* paper.
*/
! @Native public static final int PORTRAIT = 1;
/**
* The origin is at the top right of the paper with x
* running top to bottom and y running right to left.
* Note that this is the Macintosh landscape.
*/
! @Native public static final int REVERSE_LANDSCAPE = 2;
/* Instance Variables */
/**
* A description of the physical piece of paper.