0N/A/*
2362N/A * Copyright (c) 1996, 1999, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage java.awt;
0N/A
0N/A/**
0N/A * The <code>Stroke</code> interface allows a
0N/A * {@link Graphics2D} object to obtain a {@link Shape} that is the
0N/A * decorated outline, or stylistic representation of the outline,
0N/A * of the specified <code>Shape</code>.
0N/A * Stroking a <code>Shape</code> is like tracing its outline with a
0N/A * marking pen of the appropriate size and shape.
0N/A * The area where the pen would place ink is the area enclosed by the
0N/A * outline <code>Shape</code>.
0N/A * <p>
0N/A * The methods of the <code>Graphics2D</code> interface that use the
0N/A * outline <code>Shape</code> returned by a <code>Stroke</code> object
0N/A * include <code>draw</code> and any other methods that are
0N/A * implemented in terms of that method, such as
0N/A * <code>drawLine</code>, <code>drawRect</code>,
0N/A * <code>drawRoundRect</code>, <code>drawOval</code>,
0N/A * <code>drawArc</code>, <code>drawPolyline</code>,
0N/A * and <code>drawPolygon</code>.
0N/A * <p>
0N/A * The objects of the classes implementing <code>Stroke</code>
0N/A * must be read-only because <code>Graphics2D</code> does not
0N/A * clone these objects either when they are set as an attribute
0N/A * with the <code>setStroke</code> method or when the
0N/A * <code>Graphics2D</code> object is itself cloned.
0N/A * If a <code>Stroke</code> object is modified after it is set in
0N/A * the <code>Graphics2D</code> context then the behavior
0N/A * of subsequent rendering would be undefined.
0N/A * @see BasicStroke
0N/A * @see Graphics2D#setStroke
0N/A */
0N/Apublic interface Stroke {
0N/A /**
0N/A * Returns an outline <code>Shape</code> which encloses the area that
0N/A * should be painted when the <code>Shape</code> is stroked according
0N/A * to the rules defined by the
0N/A * object implementing the <code>Stroke</code> interface.
0N/A * @param p a <code>Shape</code> to be stroked
0N/A * @return the stroked outline <code>Shape</code>.
0N/A */
0N/A Shape createStrokedShape (Shape p);
0N/A}