Examples of drawRect()


Examples of java.awt.Graphics2D.drawRect()

                    LineBorder lineBorder = (LineBorder) textFieldBorder;
                    g.setColor(lineBorder.getLineColor());
                } else {
                    g.setColor(UIUtil.getBorderColor());
                }
                g.drawRect(1, 1, width - 3, height - 3);
                g.setColor(UIUtil.getPanelBackground());
                g.drawRect(0, 0, width-1, height-1);
            }
            g.translate(-x, -y);
            config.restore();
View Full Code Here

Examples of javax.microedition.lcdui.Graphics.drawRect()

    g.setColor(foreground);
    drawText(g);
    if (aBody) {
      // Draw border
      g.setColor(foreground);
      g.drawRect(0, 0, width - 1, height - 1);
      if (aScrollBar) {
        // Draw scroll
        g.setColor(background);
        g.fillRect(width - scrollWidth, 0, scrollWidth - 1, height - 1);
        g.setColor(foreground);
View Full Code Here

Examples of javax.microedition.lcdui.Graphics.drawRect()

      if (aScrollBar) {
        // Draw scroll
        g.setColor(background);
        g.fillRect(width - scrollWidth, 0, scrollWidth - 1, height - 1);
        g.setColor(foreground);
        g.drawRect(width - scrollWidth, 0, scrollWidth - 1, height - 1);
        int scroll = getScrollPosition(height, scrollHeight);
        g.fillRect(width - scrollWidth, scroll,
            scrollWidth - 1, scrollHeight - 1);
      }
    }
View Full Code Here

Examples of javax.microedition.lcdui.Graphics.drawRect()

    g.setColor(foreground);
    drawText(g);
    if (aBody) {
      // Draw border
      g.setColor(foreground);
      g.drawRect(0, 0, width - 1, height - 1);
      if (aScrollBar) {
        // Draw scroll
        g.setColor(background);
        g.fillRect(width - scrollWidth, 0, scrollWidth - 1, height - 1);
        g.setColor(foreground);
View Full Code Here

Examples of main.ch.morrolan.gibb.snake.Painter.drawRect()

        Painter painter;

        g = gMock();
        painter = painter1(g);

        painter.drawRect(0, 0, 1, 1);
        verify(g).drawRect(0, 0, 10, 10);

        painter.drawRect(3, 5, 2, 3);
        verify(g).drawRect(30, 50, 20, 30);
View Full Code Here

Examples of net.sf.robocode.robotpaint.Graphics2DSerialized.drawRect()

    sg.setColor(Color.YELLOW);
    sg.draw(new Rectangle2D.Double(20, 20, 30, 50));

    sg.setColor(Color.BLACK);
    sg.drawLine(99, 3, 78, 3);
    sg.drawRect(90, 20, 30, 50);

    sg.setColor(Color.CYAN);

    sg.setStroke(new BasicStroke(1, 2, BasicStroke.JOIN_ROUND, 4, null, 0));
    sg.fill(new Rectangle2D.Double(20, 70, 30, 50));
View Full Code Here

Examples of org.apache.xmlgraphics.java2d.ps.EPSDocumentGraphics2D.drawRect()

           
            //Set up the document size
            g2d.setupDocument(out, 400, 200); //400pt x 200pt
           
            //Paint a bounding box
            g2d.drawRect(0, 0, 400, 200);
           
            //A few rectangles rotated and with different color
            Graphics2D copy = (Graphics2D)g2d.create();
            int c = 12;
            for (int i = 0; i < c; i++) {
View Full Code Here

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

    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);
    // Bordi neri del grafico
    g.setColor(Color.BLACK);
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.ViewportGraphics.drawRect()

            } else {
                graphics.setColor(legendStyle.backgroundColor);
                graphics.fillRect(round(x), round(y), round(w), round(h));
                graphics.setColor(legendStyle.foregroundColor);
                graphics.setBackground(legendStyle.backgroundColor);
                graphics.drawRect(round(x), round(y), round(w), round(h));
            }

            // draw the title
            if (textheight != 0) {
                graphics.setColor(legendStyle.fontColor);
View Full Code Here

Examples of pu.web.client.PU_Image.drawRect()

                {
                  hpbarImage = PUWeb.resources().getGuiImage(GuiImages.IMG_GUI_WORLD_HPBAR_RED);
                }
                if(hpbarImage != null)
                {
                  hpbarImage.drawRect(new PU_Rect(256+(i*(pokemonSlot.getWidth()+2)), 19, (int)Math.ceil((float)hpperc * hpbarImage.getWidth()), hpbarImage.getHeight()));
                }
               
                PU_Image expbarImage = PUWeb.resources().getGuiImage(GuiImages.IMG_GUI_WORLD_HPBAR_EXP);
                if(expbarImage != null)
                {
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.