Package java.awt

Examples of java.awt.Graphics2D.fillPolygon()


    public OutlineFieldUI(OutlineFieldJTree pTree) {
        // Create the collapsed (right arrow) icon
        BufferedImage image = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
        Graphics2D g = image.createGraphics();
        g.setColor(Color.black);
        g.fillPolygon(new int[] {8, 14, 8}, new int[] {2, 8, 14}, 3);
        g.dispose();
        collapsedIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(image.getSource()), "collapsed");

        // Create the expanded (down arrow) icon
        image = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
View Full Code Here


        // Create the expanded (down arrow) icon
        image = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
        g = image.createGraphics();
        g.setColor(Color.black);
        g.fillPolygon(new int[] {2, 14, 8}, new int[] {8, 8, 14}, 3);
        g.dispose();
        expandedIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(image.getSource()), "expanded");

        emptyIcon = new ImageIcon();
View Full Code Here

    public OutlineFieldUI(OutlineFieldJTree pTree) {
        // Create the collapsed (right arrow) icon
        BufferedImage image = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
        Graphics2D g = image.createGraphics();
        g.setColor(Color.black);
        g.fillPolygon(new int[] {8, 14, 8}, new int[] {2, 8, 14}, 3);
        g.dispose();
        collapsedIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(image.getSource()), "collapsed");

        // Create the expanded (down arrow) icon
        image = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
View Full Code Here

        // Create the expanded (down arrow) icon
        image = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
        g = image.createGraphics();
        g.setColor(Color.black);
        g.fillPolygon(new int[] {2, 14, 8}, new int[] {8, 8, 14}, 3);
        g.dispose();
        expandedIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(image.getSource()), "expanded");

        emptyIcon = new ImageIcon();
View Full Code Here

            }
            Polygon poly = new Polygon();
            for (int j = 0; j < 6; ++j) { // alle Eckpunkte
                poly.addPoint(dx * (polysx[i][j] + 1), dy * (polysy[i][j] + 1));
            }
            g2d.fillPolygon(poly);
        }
        // Trennlinien
        g2d.setColor(background);
        g2d.drawLine(0, 0, dx * 10, dy * 10);
        g2d.drawLine(0, 8 * dy, 10 * dx, 18 * dy);
 
View Full Code Here

        if (displayPeriod) {
            Polygon poly = new Polygon();
            for (int i = 0; i < periodx.length; ++i) {
                poly.addPoint(dx * periodx[i], dy * periody[i]);
            }
            g2d.fillPolygon(poly);
        }

    }

    public int getValue() {
View Full Code Here

    // Disegna lo sfondo del triangolo
    int[] xt = { 0, (int) Math.floor(rad3d2 * height), (int) Math.floor(rad3 * height) };
    int[] yt = { 0, -1 * height, 0 };
    g2.setColor(SINGLE);
    g2.fillPolygon(xt, yt, 3);

    if (s3d != null) {
      // Used to sort label ascendingly by position
      TreeSet<Caption> labels = new TreeSet<Caption>();

View Full Code Here

          yyp[j] = -ordpoint.get(j).y;
        }

        // Disegna i settori di saturazione
        g2.setColor(sectorcolor);
        g2.fillPolygon(xxp, yyp, sector.CountPoint());
        if (numstat != 1) {
          g2.setColor(Color.BLACK);
          g2.draw(new Polygon(xxp, yyp, sector.CountPoint()));
        }
View Full Code Here

    // Disegna lo sfondo del triangolo
    int[] xt = { 0, (int) Math.floor(rad3d2 * height), (int) Math.floor(rad3 * height) };
    int[] yt = { 0, -1 * height, 0 };
    g2.setColor(SINGLE);
    g2.fillPolygon(xt, yt, 3);

    if (s3d != null) {
      // Used to sort label ascendingly by position
      TreeSet<Caption> labels = new TreeSet<Caption>();

View Full Code Here

          yyp[j] = -ordpoint.get(j).y;
        }

        // Disegna i settori di saturazione
        g2.setColor(sectorcolor);
        g2.fillPolygon(xxp, yyp, sector.CountPoint());
        if (numstat != 1) {
          g2.setColor(Color.BLACK);
          g2.draw(new Polygon(xxp, yyp, sector.CountPoint()));
        }
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.