Lines Matching defs:width

73     native void doRect(SurfaceData sData, float x, float y, float width, float height, boolean isfill);
75 public void drawRect(SunGraphics2D sg2d, int x, int y, int width, int height) {
76 drawRect(sg2d, (float) x, (float) y, (float) width, (float) height);
81 public void drawRect(SunGraphics2D sg2d, float x, float y, float width, float height) {
82 if ((width < 0) || (height < 0)) return;
86 surfaceData.doRect(this, sg2d, x, y, width, height, false);
96 rectToShape.setRect(x, y, width, height);
102 public void fillRect(SunGraphics2D sg2d, int x, int y, int width, int height) {
103 fillRect(sg2d, (float) x, (float) y, (float) width, (float) height);
106 public void fillRect(SunGraphics2D sg2d, float x, float y, float width, float height) {
107 if ((width >= 0) && (height >= 0)) {
109 surfaceData.doRect(this, sg2d, x, y, width, height, true);
113 native void doRoundRect(SurfaceData sData, float x, float y, float width, float height, float arcW, float arcH, boolean isfill);
115 public void drawRoundRect(SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight) {
116 drawRoundRect(sg2d, (float) x, (float) y, (float) width, (float) height, (float) arcWidth, (float) arcHeight);
121 public void drawRoundRect(SunGraphics2D sg2d, float x, float y, float width, float height, float arcWidth, float arcHeight) {
122 if ((width < 0) || (height < 0)) return;
126 surfaceData.doRoundRect(this, sg2d, x, y, width, height, arcWidth, arcHeight, false);
136 roundrectToShape.setRoundRect(x, y, width, height, arcWidth, arcHeight);
142 public void fillRoundRect(SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight) {
143 fillRoundRect(sg2d, (float) x, (float) y, (float) width, (float) height, (float) arcWidth, (float) arcHeight);
146 public void fillRoundRect(SunGraphics2D sg2d, float x, float y, float width, float height, float arcWidth, float arcHeight) {
147 if ((width < 0) || (height < 0)) return;
149 surfaceData.doRoundRect(this, sg2d, x, y, width, height, arcWidth, arcHeight, true);
152 native void doOval(SurfaceData sData, float x, float y, float width, float height, boolean isfill);
154 public void drawOval(SunGraphics2D sg2d, int x, int y, int width, int height) {
155 drawOval(sg2d, (float) x, (float) y, (float) width, (float) height);
160 public void drawOval(SunGraphics2D sg2d, float x, float y, float width, float height) {
161 if ((width < 0) || (height < 0)) return;
165 surfaceData.doOval(this, sg2d, x, y, width, height, false);
175 ovalToShape.setFrame(x, y, width, height);
181 public void fillOval(SunGraphics2D sg2d, int x, int y, int width, int height) {
182 fillOval(sg2d, (float) x, (float) y, (float) width, (float) height);
185 public void fillOval(SunGraphics2D sg2d, float x, float y, float width, float height) {
186 if ((width < 0) || (height < 0)) return;
188 surfaceData.doOval(this, sg2d, x, y, width, height, true);
191 native void doArc(SurfaceData sData, float x, float y, float width, float height, float angleStart, float angleExtent, int type, boolean isfill);
193 public void drawArc(SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle) {
194 drawArc(sg2d, x, y, width, height, startAngle, arcAngle, Arc2D.OPEN);
199 public void drawArc(SunGraphics2D sg2d, float x, float y, float width, float height, float startAngle, float arcAngle, int type) {
200 if ((width < 0) || (height < 0)) return;
204 surfaceData.doArc(this, sg2d, x, y, width, height, startAngle, arcAngle, type, false);
214 arcToShape.setArc(x, y, width, height, startAngle, arcAngle, type);
220 public void fillArc(SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle) {
221 fillArc(sg2d, x, y, width, height, startAngle, arcAngle, Arc2D.PIE);
224 public void fillArc(SunGraphics2D sg2d, float x, float y, float width, float height, float startAngle, float arcAngle, int type) {
225 if ((width < 0) || (height < 0)) return;
228 surfaceData.doArc(this, sg2d, x, y, width, height, startAngle, arcAngle, type, true);
392 // Copy img to scaled sg2d @ x,y with width height
393 public boolean scaleImage(SunGraphics2D sg2d, Image img, int x, int y, int width, int height, Color bgColor) {
401 return scaleImage(sg2d, img, x, y, x + width, y + height, sx, sy, sx + iw, sy + ih, bgColor);
471 int width = img.getWidth(null);
474 return blitImage(sg2d, img, false, false, sx, sy, width, height, dx, dy, width, height, bgColor);
477 // Copy img, clipped to sx, sy with width, height to sg2d @ dx, dy
478 protected boolean copyImage(SunGraphics2D sg2d, Image img, int dx, int dy, int sx, int sy, int width, int height, Color bgColor) {
479 return blitImage(sg2d, img, false, false, sx, sy, width, height, dx, dy, width, height, bgColor);
542 public boolean copyImage(SunGraphics2D sg2d, Image img, int dx, int dy, int sx, int sy, int width, int height, Color bgColor, ImageObserver observer) {
545 if (!(img instanceof sun.awt.image.ToolkitImage)) { return copyImage(sg2d, img, dx, dy, sx, sy, width, height, bgColor); }
550 return ir.drawToBufImage(sg2d, sunimg, dx, dy, (dx + width), (dy + height), sx, sy, (sx + width), (sy + height), null, observer);
554 public boolean scaleImage(SunGraphics2D sg2d, Image img, int x, int y, int width, int height, Color bgColor, ImageObserver observer) {
557 if (!(img instanceof sun.awt.image.ToolkitImage)) { return scaleImage(sg2d, img, x, y, width, height, bgColor); }
562 return ir.drawToBufImage(sg2d, sunimg, x, y, width, height, bgColor, observer);
611 void doRect(SurfaceData sData, float x, float y, float width, float height, boolean isfill) {
613 super.doRect(sData, x, y, width, height, isfill);
616 void doRoundRect(SurfaceData sData, float x, float y, float width, float height, float arcW, float arcH, boolean isfill) {
618 super.doRoundRect(sData, x, y, width, height, arcW, arcH, isfill);
621 void doOval(SurfaceData sData, float x, float y, float width, float height, boolean isfill) {
623 super.doOval(sData, x, y, width, height, isfill);
626 void doArc(SurfaceData sData, float x, float y, float width, float height, float angleStart, float angleExtent, int type, boolean isfill) {
628 super.doArc(sData, x, y, width, height, angleStart, angleExtent, type, isfill);