Examples of drawPolyline()


Examples of java.awt.Graphics2D.drawPolyline()

            x = x2;
            y = y2;
            i++;
          }
          if(points > 1) {
            g2.drawPolyline(pointsx, pointsy, points);
          }
        }
      }
    }
View Full Code Here

Examples of java.awt.Graphics2D.drawPolyline()

        x = x2;
        y = y2;
        i++;
      }
      if(points > 1) {
        g2.drawPolyline(pointsx, pointsy, points);
      }
    }

    if(pointFill != null || pointOutline != null || pointIcon != null) {
      int oldx = 0;
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawPolyline()

    py += 4;
    polyline2 = new int [] {
        px,py-1, px,py, px+1,py, px+1,py+1, px+2,py+1, px+2,py+2, px+3,py+2, px+3,py+3,
        px+3,py+2, px+4,py+2, px+4,py+1,  px+5,py+1, px+5,py, px+6,py, px+6,py-1};
    gc.setForeground(new Color(getDisplay(), 0, 64, 64));
    gc.drawPolyline(polyline1);
    gc.drawPolyline(polyline2);
   
    if(areaMenu){
      gc.setForeground(lastColor);
      gc.drawRoundRectangle(rect.width - 35, 4, 25, rect.height - 9, 6, 6);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawPolyline()

    polyline2 = new int [] {
        px,py-1, px,py, px+1,py, px+1,py+1, px+2,py+1, px+2,py+2, px+3,py+2, px+3,py+3,
        px+3,py+2, px+4,py+2, px+4,py+1,  px+5,py+1, px+5,py, px+6,py, px+6,py-1};
    gc.setForeground(new Color(getDisplay(), 0, 64, 64));
    gc.drawPolyline(polyline1);
    gc.drawPolyline(polyline2);
   
    if(areaMenu){
      gc.setForeground(lastColor);
      gc.drawRoundRectangle(rect.width - 35, 4, 25, rect.height - 9, 6, 6);
    }
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawPolyline()

      }
     
      //draw 1 pixel border
      if (borderLeft > 0) {
        gc.setForeground(borderColor);
        gc.drawPolyline(shape);
      }
      return;
    }
   
    int x = Math.max(0, borderLeft - 1);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawPolyline()

    // Draw border line
    if (borderLeft > 0) {
      RGB outside = getParent().getBackground().getRGB();
      antialias(shape, borderColor.getRGB(), null, outside, gc);
      gc.setForeground(borderColor);
      gc.drawPolyline(shape);
   
  }
  /**
   * Returns <code>true</code> if the receiver's border is visible.
   *
 
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawPolyline()

      private void drawErnie( GC gc ) {
        int oldLineWidth = currentLineWidth;
        gc.setLineWidth( 8 );
        gc.fillPolygon( transform( getHair( ERNIE ) ) );
        gc.drawPolyline( transform( getNeck( ERNIE ) ) );
        gc.fillPolygon( transform( getRightEye( ERNIE ) ) );
        gc.fillPolygon( transform( getLeftEye( ERNIE ) ) );
        gc.drawPolyline( transform( getMouth( ERNIE ) ) );
        drawDots( gc, ERNIE );
        gc.setLineWidth( oldLineWidth );
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawPolyline()

        gc.setLineWidth( 8 );
        gc.fillPolygon( transform( getHair( ERNIE ) ) );
        gc.drawPolyline( transform( getNeck( ERNIE ) ) );
        gc.fillPolygon( transform( getRightEye( ERNIE ) ) );
        gc.fillPolygon( transform( getLeftEye( ERNIE ) ) );
        gc.drawPolyline( transform( getMouth( ERNIE ) ) );
        drawDots( gc, ERNIE );
        gc.setLineWidth( oldLineWidth );
      }

      private int[] getLeftEye( List<int[]> dotInfos ) {
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawPolyline()

        new Point2D.Double(250,200)
      }
      );

    // 3.2. Polyline.
    composer.drawPolyline(
      new Point2D[]
      {
        new Point2D.Double(300,200),
        new Point2D.Double(350,150),
        new Point2D.Double(400,150),
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawPolyline()

        {
          new Point2D.Double(120,y+25),
          new Point2D.Double(150,y-25),
          new Point2D.Double(180,y+25)
        };
      composer.drawPolyline(points);
      composer.stroke();

      composer.beginLocalState();
      composer.setLineWidth(1);
      composer.setStrokeColor(DeviceRGBColor.White);
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.