Examples of drawPolygon()


Examples of java.awt.Graphics2D.drawPolygon()

        }
       
        LineSegment2D l2 = new LineSegment2D(
                new Vector2D(minX - epsilon, this.getGridHeight() - epsilon),
                new Vector2D(maxX + epsilon, this.getGridHeight() - epsilon));
        g.drawPolygon(this.getPolygonInVisualization(l2.toPol2D()).toPol());
       
        // Show text.
        if (this.showText != null) {
            this.showCyclesText = 20 + this.showText.length() * 2;
            this.showNewText = this.showText;
View Full Code Here

Examples of java.awt.Graphics2D.drawPolygon()

           
            Polygon2D line2 = new Polygon2D();
            line2.add(new Vector2D(-epsilon, bombpos.y - this.bombs + epsilon));
            line2.add(new Vector2D(this.getGridWidth() - epsilon, bombpos.y - this.bombs + epsilon));
           
            g.drawPolygon(this.getPolygonInVisualization(line1).toPol());
            g.drawPolygon(this.getPolygonInVisualization(line2).toPol());
        }
       
        return img;
    }
View Full Code Here

Examples of java.awt.Graphics2D.drawPolygon()

            Polygon2D line2 = new Polygon2D();
            line2.add(new Vector2D(-epsilon, bombpos.y - this.bombs + epsilon));
            line2.add(new Vector2D(this.getGridWidth() - epsilon, bombpos.y - this.bombs + epsilon));
           
            g.drawPolygon(this.getPolygonInVisualization(line1).toPol());
            g.drawPolygon(this.getPolygonInVisualization(line2).toPol());
        }
       
        return img;
    }
View Full Code Here

Examples of java.awt.Graphics2D.drawPolygon()

                   
                    g2.fillPolygon((Polygon) obj);
                }
                if (rahmenDrucken) {
                    g2.setColor(rahmenFarbe);
                    g2.drawPolygon((Polygon) obj);
                }
            } else if (obj.getClass().equals(Circle2D.class)) {
                kreis = (Circle2D) obj;
                if (fuellungDrucken) {
                    if (gp == null) {
View Full Code Here

Examples of java.awt.Graphics2D.drawPolygon()

                   
                    g2.fillPolygon((Polygon) obj);
                }
                if (rahmenDrucken) {
                    g2.setColor(rahmenFarbe);
                    g2.drawPolygon((Polygon) obj);
                }
            } else if (obj.getClass().equals(Kreis2D.class)) {
                kreis = (Kreis2D) obj;
                if (fuellungDrucken) {
                    if (gp == null) {
View Full Code Here

Examples of java.awt.Graphics2D.drawPolygon()

                        ArrowMaster.EINFACHE_SPITZE_1, new Vector2D(1, 1),
                        new Vector2D(1, 1));
                g.setColor(color);
                g.fillPolygon(arrow.toPol());
                g.setColor(Color.black);
                g.drawPolygon(arrow.toPol());
                g.drawString(StaticMethods.round(currentNeuron.getInput(), 2)
                        + "", (float) startPoint.x, (float) startPoint.y - 5);
            }

            if (currentNeuron.isOutput()) {
View Full Code Here

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

                int[] points = { 1,14, 3,9, 4,66,49,3, 14,1, 14,14 };

                gc.setAlpha(f.getAlpha());
                gc.fillPolygon(points);
                gc.setAlpha(c.getAlpha());
                gc.drawPolygon(points);
               
                ImageData clone = (ImageData) swtImage.getImageData().clone();
                swtImage.dispose();
                return clone;
                } finally {
View Full Code Here

Examples of org.geomajas.gwt.client.gfx.GraphicsContext.drawPolygon()

      } else if (geometry instanceof MultiPolygon) {
        MultiPolygon m = (MultiPolygon) geometry;
        String gfxId = gfxGeometry.getId();
        GraphicsContext gc = context.getVectorContext();
        for (int i = 0; i < m.getNumGeometries(); i++) {
          gc.drawPolygon(group, gfxId + "." + i, (Polygon) m.getGeometryN(i), shapeStyle);
        }
      } else if (geometry instanceof Point) {
        context.getVectorContext().drawSymbolDefinition(group, gfxGeometry.getId() + ".def",
            gfxGeometry.getSymbolInfo(), shapeStyle, null);
        context.getVectorContext().drawSymbol(group, gfxGeometry.getId(), geometry.getCoordinate(), shapeStyle,
View Full Code Here

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

        72
        );
    }
    catch(Exception e)
    {}
    composer.drawPolygon(
      composer.showText(
        "Text frame",
        new Point2D.Double(150,360),
        AlignmentXEnum.Left,
        AlignmentYEnum.Middle,
View Full Code Here

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

        102
        );
    }
    catch(Exception e)
    {}
    composer.drawPolygon(
      composer.showText(
        "Text frame",
        new Point2D.Double(300,600),
        AlignmentXEnum.Center,
        AlignmentYEnum.Middle,
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.