Examples of drawString()


Examples of com.golden.gamedev.object.GameFont.drawString()

      // and write cracked version!
      Graphics2D g = this.bsGraphics.getBackBuffer();
     
      g.setColor(Color.RED.darker());
      g.fillRect(0, 0, this.getWidth(), this.getHeight());
      font.drawString(g, "THIS GAME IS USING", 10, 10);
      font.drawString(g, "GTGE CRACKED VERSION!!", 10, 30);
      font.drawString(g, "PLEASE REPORT THIS GAME TO", 10, 50);
      font.drawString(g, "WWW.GOLDENSTUDIOS.OR.ID", 10, 70);
      font.drawString(g, "THANK YOU....", 10, 105);
     
View Full Code Here

Examples of com.google.code.appengine.awt.Graphics2D.drawString()


        //---draw the label
        g2d.setPaint( this.legendProperties.getChartFont().getPaint() );
        posX += iconAndPaddingWidth;
        g2d.drawString( (String) this.labels.get( labelIndex ), posX, fontY );


        if( this.legendProperties.getNumColumns() == LegendAreaProperties.COLUMNS_AS_MANY_AS_NEEDED
          || this.legendProperties.getNumColumns() >= this.labels.size() )
        {
View Full Code Here

Examples of ij.process.ImageProcessor.drawString()

          ip.setFont(font);
          float[] hsb = Color.RGBtoHSB(c.getRed(), c.getGreen(), c
              .getBlue(), null);
          ip.setColor(Color.getHSBColor(255, 255, 255 - hsb[2]));
          ip.moveTo(x, y);
          ip.drawString(s);
        }
      } else if (cz.DimensionTime != 1) {
        for (int slicez = 1; slicez <= cz.DimensionZ; slicez++) {
          IJ.showStatus("MinMax: " + slicez + "/"
              + cz.DimensionZ);
View Full Code Here

Examples of java.awt.Graphics.drawString()

        }
      }
     
      // Draw the header line if appropriate
      if (head != null) {
        g.drawString(head,
            (int) Math.round((imWidth - fm.stringWidth(head)) / 2),
            fm.getAscent());
        if (g2 != null) {
          imHeight -= headHeight;
          g2.translate(0, headHeight);
View Full Code Here

Examples of java.awt.Graphics.drawString()

      int len = getBufferLength(painter.getAttributeValue(ATTR_BUFFER));
      String str = Strings.get("keybDesc", "" + len);
      FontMetrics fm = g.getFontMetrics();
      int x = bds.getX() + (WIDTH - fm.stringWidth(str)) / 2;
      int y = bds.getY() + (HEIGHT + fm.getAscent()) / 2;
      g.drawString(str, x, y);
    }
  }
   
  private void drawDots(Graphics g, int x, int y, int width, int ascent) {
    int r = width / 10;
View Full Code Here

Examples of java.awt.Graphics.drawString()

      g.setColor(painter.getAttributeValue(Io.ATTR_COLOR));
      FontMetrics fm = g.getFontMetrics();
      int x = bds.getX() + BORDER;
      int y = bds.getY() + BORDER + (ROW_HEIGHT + fm.getAscent()) / 2;
      for (int i = 0; i < rows; i++) {
        g.drawString(rowData[i], x, y);
        if (i == curRow) {
          int x0 = x + fm.stringWidth(rowData[i].substring(0, curCol));
          g.drawLine(x0, y - fm.getAscent(), x0, y);
        }
        y += ROW_HEIGHT;
View Full Code Here

Examples of java.awt.Graphics.drawString()

        str = Strings.get("ttyDescShort");
        strWidth = fm.stringWidth(str);
      }
      int x = bds.getX() + (bds.getWidth() - strWidth) / 2;
      int y = bds.getY() + (bds.getHeight() + fm.getAscent()) / 2;
      g.drawString(str, x, y);
    }
  }

  private TtyState getTtyState(InstanceState state) {
    int rows = getRowCount(state.getAttributeValue(ATTR_ROWS));
View Full Code Here

Examples of java.awt.Graphics.drawString()

      for(int i=0; i<errorMessage.length; i++) {
        if(errorMessage[i] != null) {
          int messageX = (offscreen.getWidth(null) - fm.stringWidth(errorMessage[i])) / 2;
          int messageY = (offscreen.getHeight(null) - (fm.getHeight() * errorMessage.length)) / 2;

          og.drawString(errorMessage[i], messageX, messageY + i*fm.getHeight());
        }
      }
    } else {
      og.setColor(fgColor);

View Full Code Here

Examples of java.awt.Graphics.drawString()

      int messageY = y + 20;

      if (logo != null) messageY += logo.getHeight(null)/2;
      else if (progressbar != null) messageY += progressbar.getHeight(null)/2;

      og.drawString(message, messageX, messageY);

      // draw subtaskmessage, if any
      if(subtaskMessage.length() > 0) {
        messageX = (offscreen.getWidth(null) - fm.stringWidth(subtaskMessage)) / 2;
        og.drawString(subtaskMessage, messageX, messageY+20);
View Full Code Here

Examples of java.awt.Graphics.drawString()

      og.drawString(message, messageX, messageY);

      // draw subtaskmessage, if any
      if(subtaskMessage.length() > 0) {
        messageX = (offscreen.getWidth(null) - fm.stringWidth(subtaskMessage)) / 2;
        og.drawString(subtaskMessage, messageX, messageY+20);
      }

      // draw loading bar, clipping it depending on percentage done
      if (progressbar != null) {
        int barSize = (progressbar.getWidth(null) * percentage) / 100;
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.