Searched refs:npoints (Results 1 - 18 of 18) sorted by relevance

/openjdk7/jdk/src/share/classes/java/awt/
H A DPolygon.java61 * The total number of points. The value of <code>npoints</code>
71 public int npoints; field in class:Polygon
78 * array. The value of {@link #npoints npoints} is equal to the
92 * array. The value of <code>npoints</code> is equal to the
136 * @param npoints the total number of points in the
139 * <code>npoints</code> is negative.
140 * @exception IndexOutOfBoundsException if <code>npoints</code> is
147 public Polygon(int xpoints[], int ypoints[], int npoints) { argument
149 // of OutofMemoryException if npoints i
229 calculateBounds(int xpoints[], int ypoints[], int npoints) argument
[all...]
H A DGraphics.java732 drawPolygon(p.xpoints, p.ypoints, p.npoints);
768 fillPolygon(p.xpoints, p.ypoints, p.npoints);
/openjdk7/jdk/src/solaris/native/sun/java2d/x11/
H A DX11Renderer.c59 jint npoints; member in struct:__anon1032
66 (PTR)->npoints = 0; \
74 (PTR)->npoints = 0; \
81 jint _npnts = (PTR)->npoints; \
97 (PTR)->npoints = _npnts + 1; \
151 int npoints = *pNpoints; local
169 close = (xcoords[npoints - 1] != xcoords[0] ||
170 ycoords[npoints - 1] != ycoords[0]);
172 npoints++;
175 if (npoints > POLYTEMPSIZ
436 Java_sun_java2d_x11_X11Renderer_XDrawPoly(JNIEnv *env, jobject xr, jlong pXSData, jlong xgc, jint transx, jint transy, jintArray xcoordsArray, jintArray ycoordsArray, jint npoints, jboolean isclosed) argument
865 Java_sun_java2d_x11_X11Renderer_XFillPoly(JNIEnv *env, jobject xr, jlong pXSData, jlong xgc, jint transx, jint transy, jintArray xcoordsArray, jintArray ycoordsArray, jint npoints) argument
[all...]
/openjdk7/jdk/src/windows/native/sun/java2d/windows/
H A DGDIRenderer.cpp65 int npoints = *pNpoints; local
66 int outpoints = npoints;
81 BOOL isclosed = (xpoints[npoints-1] == mx && ypoints[npoints-1] == my);
90 for (int i = 0; i < npoints; i++) {
98 pPoints[npoints] = pPoints[0];
106 pPoints[npoints] = pPoints[npoints-1];
107 pPoints[npoints].x++;
359 jint npoints, jboolea
353 Java_sun_java2d_windows_GDIRenderer_doDrawPoly(JNIEnv *env, jobject wr, jobject sData, jobject clip, jobject comp, jint color, jint transx, jint transy, jintArray xpointsarray, jintArray ypointsarray, jint npoints, jboolean isclosed) argument
621 Java_sun_java2d_windows_GDIRenderer_doFillPoly(JNIEnv *env, jobject wr, jobject sData, jobject clip, jobject comp, jint color, jint transx, jint transy, jintArray xpointsarray, jintArray ypointsarray, jint npoints) argument
[all...]
/openjdk7/jdk/src/solaris/classes/sun/java2d/x11/
H A DX11Renderer.java170 int npoints, boolean isclosed);
174 int npoints)
181 xpoints, ypoints, npoints, false);
189 int npoints)
196 xpoints, ypoints, npoints, true);
275 int npoints);
279 int npoints)
285 sg2d.transX, sg2d.transY, xpoints, ypoints, npoints);
332 drawPolygon(sg2d, p.xpoints, p.ypoints, p.npoints);
369 fillPolygon(sg2d, p.xpoints, p.ypoints, p.npoints);
167 XDrawPoly(long pXSData, long xgc, int transx, int transy, int[] xpoints, int[] ypoints, int npoints, boolean isclosed) argument
172 drawPolyline(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) argument
187 drawPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) argument
272 XFillPoly(long pXSData, long xgc, int transx, int transy, int[] xpoints, int[] ypoints, int npoints) argument
277 fillPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) argument
455 XDrawPoly(long pXSData, long xgc, int transx, int transy, int[] xpoints, int[] ypoints, int npoints, boolean isclosed) argument
500 XFillPoly(long pXSData, long xgc, int transx, int transy, int[] xpoints, int[] ypoints, int npoints) argument
[all...]
/openjdk7/jdk/src/solaris/classes/sun/java2d/xr/
H A DXRRenderer.java95 int xpoints[], int ypoints[], int npoints) {
97 if (npoints > 1) {
99 for (int i = 1; i < npoints; i++) {
108 int xpoints[], int ypoints[], int npoints) {
109 draw(sg2d, new Polygon(xpoints, ypoints, npoints));
132 int xpoints[], int ypoints[], int npoints) {
133 fill(sg2d, new Polygon(xpoints, ypoints, npoints));
94 drawPolyline(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) argument
107 drawPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) argument
131 fillPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) argument
/openjdk7/jdk/src/windows/classes/sun/java2d/windows/
H A DGDIRenderer.java141 int npoints, boolean isclosed);
145 int npoints)
150 sg2d.transX, sg2d.transY, xpoints, ypoints, npoints, false);
158 int npoints)
163 sg2d.transX, sg2d.transY, xpoints, ypoints, npoints, true);
243 int npoints);
247 int npoints)
252 sg2d.transX, sg2d.transY, xpoints, ypoints, npoints);
382 int npoints, boolean isclosed)
386 xpoints, ypoints, npoints, isclose
137 doDrawPoly(GDIWindowSurfaceData sData, Region clip, Composite comp, int color, int transx, int transy, int[] xpoints, int[] ypoints, int npoints, boolean isclosed) argument
143 drawPolyline(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) argument
156 drawPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) argument
239 doFillPoly(GDIWindowSurfaceData sData, Region clip, Composite comp, int color, int transx, int transy, int[] xpoints, int[] ypoints, int npoints) argument
245 fillPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) argument
378 doDrawPoly(GDIWindowSurfaceData sData, Region clip, Composite comp, int color, int transx, int transy, int[] xpoints, int[] ypoints, int npoints, boolean isclosed) argument
420 doFillPoly(GDIWindowSurfaceData sData, Region clip, Composite comp, int color, int transx, int transy, int[] xpoints, int[] ypoints, int npoints) argument
[all...]
/openjdk7/jdk/src/macosx/classes/sun/java2d/
H A DCompositeCRenderer.java87 public synchronized void drawPolyline(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) { argument
88 doPolygon(sg2d, xpoints, ypoints, npoints, false, false);
91 public synchronized void drawPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) { argument
92 doPolygon(sg2d, xpoints, ypoints, npoints, true, false);
123 public synchronized void fillPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) { argument
124 doPolygon(sg2d, xpoints, ypoints, npoints, true, true);
127 public synchronized void doPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints, boolean ispolygon, boolean isfill) { argument
128 GeneralPath gp = new GeneralPath(Path2D.WIND_NON_ZERO, npoints);
130 for (int i = 1; i < npoints; i++) {
135 if ((xpoints[0] != xpoints[npoints
[all...]
H A DCRenderer.java231 native void doPoly(SurfaceData sData, int[] xpoints, int[] ypoints, int npoints, boolean ispolygon, boolean isfill); argument
233 public void drawPolyline(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) { argument
236 surfaceData.doPolygon(this, sg2d, xpoints, ypoints, npoints, false, false);
240 for (int i = 1; i < npoints; i++) {
247 public void drawPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) { argument
250 surfaceData.doPolygon(this, sg2d, xpoints, ypoints, npoints, true, false);
254 for (int i = 1; i < npoints; i++) {
262 public void fillPolygon(SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints) { argument
264 surfaceData.doPolygon(this, sg2d, xpoints, ypoints, npoints, true, true);
631 void doPoly(SurfaceData sData, int[] xpoints, int[] ypoints, int npoints, boolea argument
[all...]
H A DOSXSurfaceData.java952 public void doPolygon(CRenderer renderer, SunGraphics2D sg2d, int xpoints[], int ypoints[], int npoints, boolean ispolygon, boolean isfill) { argument
960 for (int i = 1; i < npoints; i++) {
979 renderer.doPoly(this, xpoints, ypoints, npoints, ispolygon, isfill);
/openjdk7/jdk/src/share/classes/java/awt/geom/
H A DPath2D.java2412 int npoints;
2416 npoints = 1;
2422 npoints = 1;
2428 npoints = 2;
2434 npoints = 3;
2440 npoints = 0;
2449 while (--npoints >= 0) {
2492 int npoints;
2499 npoints = 1;
2504 npoints
[all...]
/openjdk7/jdk/test/sun/java2d/SunGraphics2D/
H A DPolyVertTest.java208 int npoints = xpoints.length;
210 g2d.drawPolyline(xpoints, ypoints, npoints);
212 g2d.drawPolygon(xpoints, ypoints, npoints);
214 g2d.draw(new Polygon(xpoints, ypoints, npoints));
223 int npoints = xpoints.length;
225 g2d.drawPolyline(xpoints, ypoints, npoints);
227 g2d.drawPolygon(xpoints, ypoints, npoints);
229 g2d.draw(new Polygon(xpoints, ypoints, npoints));
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DMap.java373 npoints = coords.length / 2;
374 xpoints = new int[npoints];
375 ypoints = new int[npoints];
377 for (int counter = 0; counter < npoints; counter++) {
/openjdk7/jdk/src/macosx/native/sun/awt/
H A DQuartzRenderer.m437 QUARTZ_RENDERER_INLINE SDRenderType doPolyUsingCG(JNIEnv *env, CGContextRef cgRef, jintArray xpointsarray, jintArray ypointsarray, jint npoints, BOOL polygon, BOOL fill, CGFloat offsetX, CGFloat offsetY)
441 if (npoints > 1)
459 for (i=1; i<npoints; i++)
466 if ((xpoints[0] != xpoints[npoints-1]) || (ypoints[0] != ypoints[npoints-1])) // according to the specs (only applies to polygons, not polylines)
478 QUARTZ_RENDERER_INLINE SDRenderType doPoly(JNIEnv *env, QuartzSDOps *qsdo, jintArray xpointsarray, jintArray ypointsarray, jint npoints, BOOL polygon, BOOL fill)
483 return doPolyUsingCG(env, qsdo->cgRef, xpointsarray, ypointsarray, npoints, polygon, fill,
730 (JNIEnv *env, jobject jthis, jobject jsurfacedata, jintArray xpointsarray, jintArray ypointsarray, jint npoints, jboolean ispolygon, jboolean isfill)
740 doPoly(env, qsdo, xpointsarray, ypointsarray, npoints, ispolygon, isfill);
/openjdk7/jdk/src/share/native/sun/font/
H A DfreetypeScaler.c1055 static int allocateSpaceForGP(GPData* gpdata, int npoints, int ncontours) { argument
1062 maxTypes = 2*npoints + 2*ncontours;
1063 maxCoords = 4*(npoints + 2*ncontours); //we may need to insert
/openjdk7/jdk/src/share/demo/applets/GraphicsTest/
H A DGraphicsTest.java387 for (int i = 0; i < pBase.npoints; ++i) {
/openjdk7/jdk/test/java/awt/Graphics2D/RenderClipTest/
H A DRenderClipTest.java851 if (p.npoints > 0) {
890 if (p.npoints < 3) {
922 for (int i = 0; i < poly.npoints; i++) {
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/
H A DBufferedRenderPipe.java515 drawPolygon(sg2d, p.xpoints, p.ypoints, p.npoints);

Completed in 135 milliseconds