Package java.awt

Examples of java.awt.Graphics2D.drawString()


      renderGUI(g);
      g.setColor(Color.black);
      g.drawString("FAv: "+frameAverage,10,50);
      g.drawString("FPS: "+(int) (1000 / frameAverage),10,70);
      g.drawString("Yield: "+yield,10,90);
      g.drawString("Arbiters: "+world.getArbiters().size(),10,110);
      g.drawString("Bodies: "+world.getBodies().size(),10,130);
      g.drawString("R: "+renderTime,10,150);
      g.drawString("L: "+logicTime,10,170);
      g.drawString("Energy: "+world.getTotalEnergy(),10,190);
      g.dispose();
View Full Code Here


      g.setColor(Color.black);
      g.drawString("FAv: "+frameAverage,10,50);
      g.drawString("FPS: "+(int) (1000 / frameAverage),10,70);
      g.drawString("Yield: "+yield,10,90);
      g.drawString("Arbiters: "+world.getArbiters().size(),10,110);
      g.drawString("Bodies: "+world.getBodies().size(),10,130);
      g.drawString("R: "+renderTime,10,150);
      g.drawString("L: "+logicTime,10,170);
      g.drawString("Energy: "+world.getTotalEnergy(),10,190);
      g.dispose();
      strategy.show();
View Full Code Here

      g.drawString("FAv: "+frameAverage,10,50);
      g.drawString("FPS: "+(int) (1000 / frameAverage),10,70);
      g.drawString("Yield: "+yield,10,90);
      g.drawString("Arbiters: "+world.getArbiters().size(),10,110);
      g.drawString("Bodies: "+world.getBodies().size(),10,130);
      g.drawString("R: "+renderTime,10,150);
      g.drawString("L: "+logicTime,10,170);
      g.drawString("Energy: "+world.getTotalEnergy(),10,190);
      g.dispose();
      strategy.show();
      renderTime = System.currentTimeMillis() - beforeRender;
View Full Code Here

      g.drawString("FPS: "+(int) (1000 / frameAverage),10,70);
      g.drawString("Yield: "+yield,10,90);
      g.drawString("Arbiters: "+world.getArbiters().size(),10,110);
      g.drawString("Bodies: "+world.getBodies().size(),10,130);
      g.drawString("R: "+renderTime,10,150);
      g.drawString("L: "+logicTime,10,170);
      g.drawString("Energy: "+world.getTotalEnergy(),10,190);
      g.dispose();
      strategy.show();
      renderTime = System.currentTimeMillis() - beforeRender;
     
View Full Code Here

      g.drawString("Yield: "+yield,10,90);
      g.drawString("Arbiters: "+world.getArbiters().size(),10,110);
      g.drawString("Bodies: "+world.getBodies().size(),10,130);
      g.drawString("R: "+renderTime,10,150);
      g.drawString("L: "+logicTime,10,170);
      g.drawString("Energy: "+world.getTotalEnergy(),10,190);
      g.dispose();
      strategy.show();
      renderTime = System.currentTimeMillis() - beforeRender;
     
      // update data model
View Full Code Here

        int x = UIManager.getInt("JXLoginPane.banner.image.x");
        int y = UIManager.getInt("JXLoginPane.banner.image.y");
        g2.drawImage(image, x, y, null);
        originalGraphics.setColor(UIManager
                .getColor("JXLoginPane.banner.foreground"));
        originalGraphics
                .drawString(getBannerText(), loginStringX, loginStringY);
        return img;
    }
}
View Full Code Here

                prev = next;
            }

            int i = 0;
            for (Point p : spline.points) {
                g.drawString(i + "", p.x, p.y);
                if (mousePressed) {
                    int x = mouse.x - p.x;
                    int y = mouse.y - p.y;
                    if (x >= 0 && x <= 9 && y <= 0 && y >= -9)
                        selected = i;
View Full Code Here

            if ((framerate[3] - framerate[2]) > 1000) {
                framerate[0] = framerate[1];
                framerate[1] = 0;
                framerate[2] = framerate[3];
            }
            g.drawString(framerate[0] + " fps", 10, 40);

            // swap the buffers
            s.show();
        }
    }
View Full Code Here

        // draw the shadow of the text
        g2d.setFont(drawFont);
//        g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
//        g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
        g2d.setColor(background);
        g2d.drawString(text, textX + shadowOffsetX, textY + shadowOffsetY);

        // blur the text
        BufferedImage ret = blur.filter(tmp0, null);

        // draw the blurred text over the shadow
View Full Code Here

        g2d = (Graphics2D) ret.getGraphics();
        g2d.setFont(drawFont);
        g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
        g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
        g2d.setColor(foreground);
        g2d.drawString(text, textX, textY);

        return ret;
    }

    private Quad getQuad() {
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.