jdk-24/test/jdk/java/awt/print/PageFormat/SetOrient.html
2017-09-12 19:03:39 +02:00

49 lines
1.8 KiB
HTML

<!--
Copyright (c) 2007, 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.
This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).
You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
or visit www.oracle.com if you need additional information or have any
questions.
-->
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<!--
@test
@bug 4186119
@summary Confirm that the clip and transform of the Graphics2D is
affected by the landscape orientation of the PageFormat.
@run applet/manual=yesno SetOrient.html
-->
<html>
<head>
<title>SetOrient</title>
</head>
<body>
This test prints two pages and sends them to the printer.
One page is in PORTRAIT orientation and the other is in LANDSCAPE
orientation. On each page it draws an ellipse inscribed in the clip
boundary established by the PrinterJob. The ellipse should fill the
page within the bounds established by the default margins and not
extend off any end or side of the page. Also, the string "Portrait"
or "Landscape" should be oriented correctly.
<applet code="SetOrient.class" width=200 height=200></applet>
</body>
</html>