< prev index next >

src/java.desktop/macosx/classes/sun/java2d/CRenderer.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2011, 2014, 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) 2011, 2018, 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
*** 228,238 **** surfaceData.doArc(this, sg2d, x, y, width, height, startAngle, arcAngle, type, true); } native void doPoly(SurfaceData sData, int[] xpoints, int[] ypoints, int npoints, boolean ispolygon, boolean isfill); ! public void drawPolyline(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) { OSXSurfaceData surfaceData = (OSXSurfaceData) sg2d.getSurfaceData(); if ((sg2d.strokeState != SunGraphics2D.STROKE_CUSTOM) && (OSXSurfaceData.IsSimpleColor(sg2d.paint))) { surfaceData.doPolygon(this, sg2d, xpoints, ypoints, npoints, false, false); } else { GeneralPath polyToShape = new GeneralPath(); --- 228,238 ---- surfaceData.doArc(this, sg2d, x, y, width, height, startAngle, arcAngle, type, true); } native void doPoly(SurfaceData sData, int[] xpoints, int[] ypoints, int npoints, boolean ispolygon, boolean isfill); ! public void drawPolyline(SunGraphics2D sg2d, int[] xpoints, int[] ypoints, int npoints) { OSXSurfaceData surfaceData = (OSXSurfaceData) sg2d.getSurfaceData(); if ((sg2d.strokeState != SunGraphics2D.STROKE_CUSTOM) && (OSXSurfaceData.IsSimpleColor(sg2d.paint))) { surfaceData.doPolygon(this, sg2d, xpoints, ypoints, npoints, false, false); } else { GeneralPath polyToShape = new GeneralPath();
*** 242,252 **** } drawfillShape(sg2d, sg2d.stroke.createStrokedShape(polyToShape), true, true); } } ! public void drawPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) { OSXSurfaceData surfaceData = (OSXSurfaceData) sg2d.getSurfaceData(); if ((sg2d.strokeState != SunGraphics2D.STROKE_CUSTOM) && (OSXSurfaceData.IsSimpleColor(sg2d.paint))) { surfaceData.doPolygon(this, sg2d, xpoints, ypoints, npoints, true, false); } else { GeneralPath polyToShape = new GeneralPath(); --- 242,252 ---- } drawfillShape(sg2d, sg2d.stroke.createStrokedShape(polyToShape), true, true); } } ! public void drawPolygon(SunGraphics2D sg2d, int[] xpoints, int[] ypoints, int npoints) { OSXSurfaceData surfaceData = (OSXSurfaceData) sg2d.getSurfaceData(); if ((sg2d.strokeState != SunGraphics2D.STROKE_CUSTOM) && (OSXSurfaceData.IsSimpleColor(sg2d.paint))) { surfaceData.doPolygon(this, sg2d, xpoints, ypoints, npoints, true, false); } else { GeneralPath polyToShape = new GeneralPath();
*** 257,267 **** polyToShape.lineTo(xpoints[0], ypoints[0]); drawfillShape(sg2d, sg2d.stroke.createStrokedShape(polyToShape), true, true); } } ! public void fillPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) { OSXSurfaceData surfaceData = (OSXSurfaceData) sg2d.getSurfaceData(); surfaceData.doPolygon(this, sg2d, xpoints, ypoints, npoints, true, true); } native void doShape(SurfaceData sData, int length, FloatBuffer coordinates, IntBuffer types, int windingRule, boolean isfill, boolean shouldApplyOffset); --- 257,267 ---- polyToShape.lineTo(xpoints[0], ypoints[0]); drawfillShape(sg2d, sg2d.stroke.createStrokedShape(polyToShape), true, true); } } ! public void fillPolygon(SunGraphics2D sg2d, int[] xpoints, int[] ypoints, int npoints) { OSXSurfaceData surfaceData = (OSXSurfaceData) sg2d.getSurfaceData(); surfaceData.doPolygon(this, sg2d, xpoints, ypoints, npoints, true, true); } native void doShape(SurfaceData sData, int length, FloatBuffer coordinates, IntBuffer types, int windingRule, boolean isfill, boolean shouldApplyOffset);
< prev index next >