Package org.freehep.graphics2d

Examples of org.freehep.graphics2d.VectorGraphics.fillRect()


    }
    VectorGraphics g = VectorGraphics.create(vg);
    super.paint(g);
    // Pulizia piano lavoro
    g.setColor(Color.WHITE);
    g.fillRect(0, 0, 640, 670);
    // Sfondo bianco del grafico
    g.fillRect(UpperLeftGraph.x, UpperLeftGraph.y, WIDTH + 1, HEIGHT + 1);
    // Sfondo grigio per label informativa
    g.setColor(Color.LIGHT_GRAY);
    g.fillRect(0, 0, UpperRightGraph.x + RIGHT_SPACE, UpperLeftGraph.y - 10);
View Full Code Here


    super.paint(g);
    // Pulizia piano lavoro
    g.setColor(Color.WHITE);
    g.fillRect(0, 0, 640, 670);
    // Sfondo bianco del grafico
    g.fillRect(UpperLeftGraph.x, UpperLeftGraph.y, WIDTH + 1, HEIGHT + 1);
    // Sfondo grigio per label informativa
    g.setColor(Color.LIGHT_GRAY);
    g.fillRect(0, 0, UpperRightGraph.x + RIGHT_SPACE, UpperLeftGraph.y - 10);
    g.setColor(Color.BLACK);
    g.drawRect(0, 0, UpperRightGraph.x + RIGHT_SPACE, UpperLeftGraph.y - 10);
View Full Code Here

    g.fillRect(0, 0, 640, 670);
    // Sfondo bianco del grafico
    g.fillRect(UpperLeftGraph.x, UpperLeftGraph.y, WIDTH + 1, HEIGHT + 1);
    // Sfondo grigio per label informativa
    g.setColor(Color.LIGHT_GRAY);
    g.fillRect(0, 0, UpperRightGraph.x + RIGHT_SPACE, UpperLeftGraph.y - 10);
    g.setColor(Color.BLACK);
    g.drawRect(0, 0, UpperRightGraph.x + RIGHT_SPACE, UpperLeftGraph.y - 10);
    Font fn = new Font("Arial", Font.ITALIC, 16);
    g.setFont(fn);
    g.drawString("Single left click and drag to zoom, single right click to choose scatter options", 50, 20);
View Full Code Here

          g1.setColor(Color.BLACK);
          g1.drawLine(0, 500, 500, 500);
          g1.drawLine(500, 500, 500, 0);

          g1.setColor(Color.WHITE);
          g1.fillRect(0, 0, WIDTH, HEIGHT);
          g1.setColor(Color.LIGHT_GRAY);
          g1.setStroke(new BasicStroke(1, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, new float[] { 1.5F }, 0));
          for (int i = 1; i < 9; i++) {
            g1.drawLine(1, 1 + (i * (HEIGHT / 9)), 499, 1 + (i * (HEIGHT / 9)));
            g1.drawLine(1 + (i * (WIDTH / 9)), 1, 1 + (i * (WIDTH / 9)), 499);
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.