Package java.awt

Examples of java.awt.Graphics2D.fillPolygon()


            g2d.drawLine(x, height - insets.bottom, x, y);
            polygon = new Polygon();
            polygon.addPoint(x - BOX, height - insets.bottom);
            polygon.addPoint(x + BOX - 1, height - insets.bottom);
            polygon.addPoint(x, height - BOX - insets.bottom);
            g2d.fillPolygon(polygon);
          }
        }
      }
      g2d.setStroke(old);
      WidgetAdapter containerAdapter = WidgetAdapter.getWidgetAdapter(container);
View Full Code Here


                af.translate(-viewCoordUL.x,-viewCoordUL.y);
                g2d.setTransform(af);
                g2d.setColor(Color.GRAY);
                g2d.scale(scaleFactor, scaleFactor);
//                g2d.transform(af);
                g2d.fillPolygon(borderPoly);
               
                // LEVEL 2
                g2d.setTransform(new AffineTransform());
                g2d.setColor(Color.GRAY);
                g2d.translate(-viewCoordUL.x,-viewCoordUL.y);
View Full Code Here

                // LEVEL 2
                g2d.setTransform(new AffineTransform());
                g2d.setColor(Color.GRAY);
                g2d.translate(-viewCoordUL.x,-viewCoordUL.y);
                g2d.scale(scaleFactor, scaleFactor);
                g2d.fillPolygon(levelPoly01);
               
                g2d.setStroke(new BasicStroke(1.0f));
               
                r.EndRender();
            } catch (InterruptedException ex) {
View Full Code Here

        int dx = baseIcon.getIconWidth()/2 - 2;
        int y = baseIcon.getIconHeight()/2;
        int dy = baseIcon.getIconHeight()/4 - 1;
        int[] xx = new int[] { x, x+dx, x };
        int[] yy = new int[] { y, y+dy, y+2*dy };
        g.fillPolygon(xx, yy, 3);

        return result;
    }


View Full Code Here

                    p.add(new Vector2D(v1.x + this.heightProfileGridWidth, v1.y));
                    p = this.getPolygonInVisualization(p);
                    Polygon pol = p.toPol();
                   
                    g.drawPolygon(pol);
                    g.fillPolygon(pol);
                    g.drawLine(pol.xpoints[0], pol.ypoints[0], pol.xpoints[2], pol.ypoints[2]);
                }
            }
           
            if (this.getParCollection().getParValueString("showAdditionalInfo").contains("gradients")) {
View Full Code Here

                        g2.setColor(fuellungFarbe);
                    } else {
                        g2.setPaint(gp);
                    }
                   
                    g2.fillPolygon((Polygon) obj);
                }
                if (rahmenDrucken) {
                    g2.setColor(rahmenFarbe);
                    g2.drawPolygon((Polygon) obj);
                }
View Full Code Here

            Polygon2D x2v = this.getPolygonInVisualization(x2);
            Polygon2D i7v = this.getPolygonInVisualization(i7);
           
            g.setColor(Color.GRAY);

            g.fillPolygon(x1v.toPol());
            g.fillPolygon(i1v.toPol());
            g.fillPolygon(i2v.toPol());
           
            g.fillPolygon(i3v.toPol());
            g.fillPolygon(i4v.toPol());
View Full Code Here

            Polygon2D i7v = this.getPolygonInVisualization(i7);
           
            g.setColor(Color.GRAY);

            g.fillPolygon(x1v.toPol());
            g.fillPolygon(i1v.toPol());
            g.fillPolygon(i2v.toPol());
           
            g.fillPolygon(i3v.toPol());
            g.fillPolygon(i4v.toPol());
            g.fillPolygon(i5v.toPol());
View Full Code Here

           
            g.setColor(Color.GRAY);

            g.fillPolygon(x1v.toPol());
            g.fillPolygon(i1v.toPol());
            g.fillPolygon(i2v.toPol());
           
            g.fillPolygon(i3v.toPol());
            g.fillPolygon(i4v.toPol());
            g.fillPolygon(i5v.toPol());
           
View Full Code Here

            g.fillPolygon(x1v.toPol());
            g.fillPolygon(i1v.toPol());
            g.fillPolygon(i2v.toPol());
           
            g.fillPolygon(i3v.toPol());
            g.fillPolygon(i4v.toPol());
            g.fillPolygon(i5v.toPol());
           
            g.fillPolygon(i6v.toPol());
            g.fillPolygon(vv.toPol());
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.