Package org.freehep.graphics2d

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


    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);
    // Bordi neri del grafico
    g.setColor(Color.BLACK);
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, UpperRightGraph.x, UpperRightGraph.y - 1); //UP
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, LowerLeftGraph.x - 1, LowerLeftGraph.y); //LEFT
    g.drawLine(LowerLeftGraph.x, LowerLeftGraph.y, LowerRightGraph.x, LowerRightGraph.y); //BOTTOM
    g.drawLine(LowerRightGraph.x, LowerRightGraph.y, UpperRightGraph.x, UpperRightGraph.y); //RIGHT

    // Testo variabile in x
View Full Code Here


    g.setFont(fn);
    g.drawString("Single left click and drag to zoom, single right click to choose scatter options", 50, 20);
    // Bordi neri del grafico
    g.setColor(Color.BLACK);
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, UpperRightGraph.x, UpperRightGraph.y - 1); //UP
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, LowerLeftGraph.x - 1, LowerLeftGraph.y); //LEFT
    g.drawLine(LowerLeftGraph.x, LowerLeftGraph.y, LowerRightGraph.x, LowerRightGraph.y); //BOTTOM
    g.drawLine(LowerRightGraph.x, LowerRightGraph.y, UpperRightGraph.x, UpperRightGraph.y); //RIGHT

    // Testo variabile in x
    fn = new Font("Arial", Font.PLAIN, 15);
View Full Code Here

    g.drawString("Single left click and drag to zoom, single right click to choose scatter options", 50, 20);
    // Bordi neri del grafico
    g.setColor(Color.BLACK);
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, UpperRightGraph.x, UpperRightGraph.y - 1); //UP
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, LowerLeftGraph.x - 1, LowerLeftGraph.y); //LEFT
    g.drawLine(LowerLeftGraph.x, LowerLeftGraph.y, LowerRightGraph.x, LowerRightGraph.y); //BOTTOM
    g.drawLine(LowerRightGraph.x, LowerRightGraph.y, UpperRightGraph.x, UpperRightGraph.y); //RIGHT

    // Testo variabile in x
    fn = new Font("Arial", Font.PLAIN, 15);
    g.setFont(fn);
View Full Code Here

    // Bordi neri del grafico
    g.setColor(Color.BLACK);
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, UpperRightGraph.x, UpperRightGraph.y - 1); //UP
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, LowerLeftGraph.x - 1, LowerLeftGraph.y); //LEFT
    g.drawLine(LowerLeftGraph.x, LowerLeftGraph.y, LowerRightGraph.x, LowerRightGraph.y); //BOTTOM
    g.drawLine(LowerRightGraph.x, LowerRightGraph.y, UpperRightGraph.x, UpperRightGraph.y); //RIGHT

    // Testo variabile in x
    fn = new Font("Arial", Font.PLAIN, 15);
    g.setFont(fn);
    g.drawString(model.getMatrix().getVariables()[xVar].getName(), XText.x, XText.y);
View Full Code Here

        @Override
        public Object construct() {
          VectorGraphics g1 = VectorGraphics.create(graph.getGraphics());

          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);
View Full Code Here

        public Object construct() {
          VectorGraphics g1 = VectorGraphics.create(graph.getGraphics());

          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));
View Full Code Here

          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);
          }
          g1.setColor(Color.RED);
          VariableNumber x = model.getMatrix().getVariables()[xVar];
          x.setRangeIntervallo(x.getIndexMin(xMin), x.getIndexMax(xMax), yMin, yMax, yVar);
View Full Code Here

          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);
          }
          g1.setColor(Color.RED);
          VariableNumber x = model.getMatrix().getVariables()[xVar];
          x.setRangeIntervallo(x.getIndexMin(xMin), x.getIndexMax(xMax), yMin, yMax, yVar);
          /* 28 Settembre */
 
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.