Examples of curveTo()


Examples of java.awt.geom.GeneralPath.curveTo()

                            _coordinate[c + 2], _coordinate[c + 3]);
                    c += 4;
                    break;

                case PathIterator.SEG_CUBICTO:
                    p.curveTo(_coordinate[c], _coordinate[c + 1],
                            _coordinate[c + 2], _coordinate[c + 3],
                            _coordinate[c + 4], _coordinate[c + 5]);
                    c += 6;
                    break;
                }
View Full Code Here

Examples of java.awt.geom.GeneralPath.curveTo()

                                cp2Y = (float)( scaleY * ( vpY + mr.ElementAt( j*6+6 ).intValue()));

                                endX = (float)( scaleX * ( vpX + mr.ElementAt( j*6+7 ).intValue()));
                                endY = (float)( scaleY * ( vpY + mr.ElementAt( j*6+8 ).intValue()));

                                gp.curveTo( cp1X, cp1Y, cp2X, cp2Y, endX, endY );
                                _startX = endX;
                                _startY = endY;
                            }
                                //gp.closePath();
                            g2.setStroke( solid );
View Full Code Here

Examples of java.awt.geom.GeneralPath.curveTo()

            }
            midx = (curx + prevx) / 2.0f;
            midy = (cury + prevy) / 2.0f;
            float x2 = (prevx + midx) / 2.0f;
            float y2 = (prevy + midy) / 2.0f;
            gp.curveTo(x1, y1, x2, y2, midx, midy);
        }
        gp.closePath();
        if (doDraw) {
            g2.setPaint(drawPaint);
            g2.setStroke(stroke);
View Full Code Here

Examples of java.awt.geom.GeneralPath.curveTo()


    public void render(int w, int h, Graphics2D g2) {
        GeneralPath p = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
        p.moveTo(w*.2f, h*.25f);
        p.curveTo(w*.4f, h*.5f, w*.6f, 0.0f, w*.8f, h*.25f);
        p.moveTo(w*.2f, h*.6f);
        p.quadTo(w*.5f, h*1.0f, w*.8f, h*.6f);
        g2.setColor(LIGHT_GRAY);
        g2.fill(p);
        g2.setColor(BLACK);
View Full Code Here

Examples of java.awt.geom.GeneralPath.curveTo()

                }
                midx = (curx + prevx) / 2.0f;
                midy = (cury + prevy) / 2.0f;
                float x2 = (prevx + midx) / 2.0f;
                float y2 = (prevy + midy) / 2.0f;
                gp.curveTo(x1, y1, x2, y2, midx, midy);
            }
            gp.closePath();

            g2.setColor(blueBlend);
            g2.setStroke(bs);
View Full Code Here

Examples of java.awt.geom.GeneralPath.curveTo()

     
      Component unitEventHandlerPanel = handlerActivityPanel.getComponent(scopeActivity.getEventHandlers().length - i -1);
     
      int y = unitEventHandlerPanel.getY() + unitEventHandlerPanel.getHeight()/2;
      shape.lineTo(x, y-10);
      shape.curveTo(x, y-10, x, y, x+10, y);
     
      int handlerPanelX = handlerActivityPanel.getX() + 10;
     
      shape.lineTo(handlerPanelX, y);
View Full Code Here

Examples of java.awt.geom.GeneralPath.curveTo()

        int roundCornerDiff = (endY-startY)/2;
        if(roundCornerDiff < -10) roundCornerDiff = -10;
        if(roundCornerDiff > 10) roundCornerDiff = 10;     

        if(roundCornerDiff!=0){
          path.curveTo(startX, startY, startX+10, startY, startX+10, startY+roundCornerDiff);
          path.lineTo(startX+10, endY-roundCornerDiff);
          path.curveTo(startX+10, endY-roundCornerDiff, startX+10, endY, startX+20, endY);
        }

        path.lineTo(endX, endY);
View Full Code Here

Examples of java.awt.geom.GeneralPath.curveTo()

        if(roundCornerDiff > 10) roundCornerDiff = 10;     

        if(roundCornerDiff!=0){
          path.curveTo(startX, startY, startX+10, startY, startX+10, startY+roundCornerDiff);
          path.lineTo(startX+10, endY-roundCornerDiff);
          path.curveTo(startX+10, endY-roundCornerDiff, startX+10, endY, startX+20, endY);
        }

        path.lineTo(endX, endY);
       
        if((latter instanceof ArrowReceiver && ((ArrowReceiver)latter).receiveArrow()) || latter instanceof ActivityLabel){
View Full Code Here

Examples of java.awt.geom.GeneralPath.curveTo()

            area.add(new Area(c));
            return area;
        } else {
            GeneralPath cloud = new GeneralPath();
            cloud.moveTo(25.53f, 25.00f);
            cloud.curveTo(25.18f, 23.42f, 25.0f, 21.75f, 25.0f, 20.0f);
            cloud.curveTo(25.0f, 8.28f, 33.28f, 0.0f, 45.0f, 0.0f);
            cloud.curveTo(54.65f, 0.0f, 61.97f, 5.62f, 64.25f, 14.15f);
            cloud.curveTo(66.90f, 11.53f, 70.63f, 10.0f, 75.0f, 10.0f);
            cloud.curveTo(83.78f, 10.0f, 90.0f, 16.21f, 90.0f, 25.0f);
            cloud.curveTo(90.0f, 27.46f, 89.51f, 29.72f, 88.61f, 31.70f);
View Full Code Here

Examples of java.awt.geom.GeneralPath.curveTo()

            return area;
        } else {
            GeneralPath cloud = new GeneralPath();
            cloud.moveTo(25.53f, 25.00f);
            cloud.curveTo(25.18f, 23.42f, 25.0f, 21.75f, 25.0f, 20.0f);
            cloud.curveTo(25.0f, 8.28f, 33.28f, 0.0f, 45.0f, 0.0f);
            cloud.curveTo(54.65f, 0.0f, 61.97f, 5.62f, 64.25f, 14.15f);
            cloud.curveTo(66.90f, 11.53f, 70.63f, 10.0f, 75.0f, 10.0f);
            cloud.curveTo(83.78f, 10.0f, 90.0f, 16.21f, 90.0f, 25.0f);
            cloud.curveTo(90.0f, 27.46f, 89.51f, 29.72f, 88.61f, 31.70f);
            cloud.curveTo(95.57f, 34.70f, 100.0f, 41.43f, 100.0f, 50.0f);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.