Package java.awt

Examples of java.awt.Graphics.drawRect()


                      double yRange = Elenco[row].getUniStats().getRangeValue();
                      double xmin = Elenco[col].getUniStats().getMinValue();
                      double ymax = Elenco[row].getUniStats().getMaxValue();
                      //Draw Border line
                      g.setColor(Color.BLACK);
                      g.drawRect(startx, starty, WIDTH_GRAPH, HEIGHT_GRAPH);
                      //Draw gray line
                      g.setColor(Color.LIGHT_GRAY);
                      for (int i = 1; i < 9; i++) {
                        g.drawLine(startx, starty + (i * (HEIGHT_GRAPH / 9)), startx + WIDTH_GRAPH, starty
                            + (i * (HEIGHT_GRAPH / 9)));
View Full Code Here


                int l = 0;
                // Disegno dei grafici
                for (int row = 0; row < Elenco.length; row++) {
                  for (int col = 0; col < Elenco.length; col++) {
                    g.setColor(Color.BLACK);
                    g.drawRect(col * WIDTH_TOT, row * HEIGHT_TOT, WIDTH_TOT, HEIGHT_TOT);
                    if (col == row) {
                      // Scrittura della variabile
                      Graphics2D gr = (Graphics2D) g;
                      gr.setFont(new Font("Arial", Font.BOLD, 13));
                      FontRenderContext context = gr.getFontRenderContext();
View Full Code Here

              // Disegno dei grafici
              for (int row = 0; row < Elenco.length; row++) {
                for (int col = 0; col < Elenco.length; col++) {
                  g.setColor(Color.BLACK);
                  g.drawRect(col * WIDTH_TOT, row * HEIGHT_TOT, WIDTH_TOT, HEIGHT_TOT);
                  if (col == row) {
                    // Scrittura della variabile
                    Graphics2D gr = (Graphics2D) g;
                    gr.setFont(new Font("Arial", Font.BOLD, 13));
                    FontRenderContext context = gr.getFontRenderContext();
View Full Code Here

              int l = 0;
              // Disegno dei grafici
              for (int row = 0; row < Elenco.length; row++) {
                for (int col = 0; col < Elenco.length; col++) {
                  g.setColor(Color.BLACK);
                  g.drawRect(col * WIDTH_TOT, row * HEIGHT_TOT, WIDTH_TOT, HEIGHT_TOT);
                  if (col == row) {
                    // Scrittura della variabile
                    Graphics2D gr = (Graphics2D) g;
                    gr.setFont(new Font("Arial", Font.BOLD, 13));
                    FontRenderContext context = gr.getFontRenderContext();
View Full Code Here

         marginy,
         width-(2*marginx),
         height-(2*marginy));
  if (border) {
      dbg.setColor(color.darker());
      dbg.drawRect(marginx,
       marginy,
       width-(2*marginx),
       height-(2*marginy));
  }
  dbg.setColor(Color.white);
 
View Full Code Here

    Image image=map.getBufferImage();
    Graphics tg=image.getGraphics();
    tg.setColor(color);
   
    tg.drawImage(map.getOriginImage(), 0, 0,null);
    tg.drawRect(minx, miny, width, height);
   
    image.flush();
    map.getGraphics().drawImage(image, 0, 0,map);
  }
View Full Code Here

      Graphics graphics = desktop.getGraphics();
      graphics.setXORMode(Color.WHITE);
      if (dragBounds.width == 0 || dragBounds.height == 0) {
        graphics.drawLine(dragBounds.x, dragBounds.y, dragBounds.x + dragBounds.width, dragBounds.y + dragBounds.height);
      } else {
        graphics.drawRect(dragBounds.x, dragBounds.y, dragBounds.width, dragBounds.height);
      }
    }

    public JDesktopPane getDesktopPane(JComponent frame) {
      Component parent = frame.getParent();
View Full Code Here

                            if (rectType == 0) {
                                // Invalid rectangle
                                continue;
                            }
                            if (!execute(shape, x, y, RECT_WIDTH, RECT_HEIGHT, rectType)) {
                                g.drawRect(x, y, RECT_WIDTH, RECT_HEIGHT);
                                error = true;
                            }
                        }

                    int errCount = 0;
View Full Code Here

                        if (rectType == 0) {
                            // Invalid rectangle
                            continue;
                        }
                        if (!execute(shape, rx, ry, rw, rh, rectType)) {
                            g.drawRect(rx, ry, rw, rh);
                            error = true;
                            errCount++;
                        }
                        if (errCount > ERROR_MAX_COUNT) {
                            break;
View Full Code Here

                        y += delta.getY();
                    }
                    x = (int) Math.round(zoom * x);
                    y = (int) Math.round(zoom * y);
                    gCopy.clearRect(x - offs, y - offs, size, size);
                    gCopy.drawRect(x - offs, y - offs, size, size);
                }
            }
            Handle selHandle = selection.getSelectedHandle();
            if (selHandle != null) {
                int x = selHandle.getX();
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.