/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* 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.
*/
public class X11Renderer implements
{
return (GraphicsPrimitive.tracingEnabled()
? new X11TracingRenderer()
: new X11Renderer());
}
// NOTE: getCompClip() will revalidateAll() if the
// surfaceData is invalid. This should ensure that
// the clip and pixel that we are validating against
// are the most current.
//
// The assumption is that the pipeline after that
// revalidation will either be another X11 pipe
// (because the drawable format never changes on X11)
// or a null pipeline if the surface is disposed.
//
// Since we do not get the ops structure of the SurfaceData
// until the actual call down to the native level we will
// pick up the most recently validated copy.
// Note that if the surface is disposed, a NullSurfaceData
// (with null native data structure) will be set in
// sg2d, so we have to protect against it in native code.
}
try {
} finally {
}
}
int x, int y, int w, int h);
{
try {
} finally {
}
}
int x, int y, int w, int h,
{
try {
} finally {
}
}
int x, int y, int w, int h);
{
try {
} finally {
}
}
int x, int y, int w, int h,
int angleStart, int angleExtent);
int startAngle, int arcAngle)
{
try {
} finally {
}
}
int npoints)
{
try {
} finally {
}
}
int npoints)
{
try {
} finally {
}
}
int x, int y, int w, int h);
{
try {
} finally {
}
}
int x, int y, int w, int h,
{
try {
} finally {
}
}
int x, int y, int w, int h);
{
try {
} finally {
}
}
int x, int y, int w, int h,
int angleStart, int angleExtent);
int startAngle, int arcAngle)
{
try {
} finally {
}
}
int npoints);
int npoints)
{
try {
} finally {
}
}
boolean isFill);
} else {
}
} else {
transx = 0;
transy = 0;
}
try {
} finally {
}
}
// Delegate to drawPolygon() if possible...
if (s instanceof Polygon &&
{
return;
}
// Otherwise we will use drawPath() for
// high-quality thin paths.
// REMIND: X11 can handle uniform scaled wide lines
// and dashed lines itself if we set the appropriate
// XGC attributes (TBD).
try {
try {
0, 0);
} finally {
}
} finally {
}
} else {
}
}
// Delegate to fillPolygon() if possible...
if (s instanceof Polygon &&
{
return;
}
// Otherwise we will use fillPath() for
// high-quality fills.
return;
}
// Transform (translation) will be done by XFillSpans
} else {
// Transform will be done by the PathIterator
}
try {
// Subtract transx/y from the SSI clip to match the
// (potentially untranslated) geometry fed to it
try {
} finally {
}
} finally {
}
}
int w, int h);
{
}
int x, int y, int w, int h)
{
}
int x, int y, int w, int h,
{
}
int x, int y, int w, int h)
{
}
int x, int y, int w, int h,
int angleStart, int angleExtent)
{
x, y, w, h, angleStart, angleExtent);
}
{
}
boolean isFill)
{
"X11FillPath" :
"X11DrawPath");
}
int x, int y, int w, int h)
{
}
int x, int y, int w, int h,
{
}
int x, int y, int w, int h)
{
}
int x, int y, int w, int h,
int angleStart, int angleExtent)
{
x, y, w, h, angleStart, angleExtent);
}
int npoints)
{
}
{
}
int w, int h)
{
}
}
}