Examples of Draw()


Examples of net.alteiar.beans.map.elements.RectangleElement.draw()

    waitForChange(rectangle, "getSelected", true);

    BufferedImage realImg = new BufferedImage(200, 200,
        BufferedImage.TYPE_INT_ARGB);
    Graphics2D g2 = realImg.createGraphics();
    rectangle.draw(g2, 1.0, true);
    g2.dispose();

    BufferedImage targetImg = new BufferedImage(200, 200,
        BufferedImage.TYPE_INT_ARGB);
    g2 = targetImg.createGraphics();
View Full Code Here

Examples of net.alteiar.beans.map.filter.ManualMapFilter.draw()

      g = (Graphics2D) targetFilteredImage.getGraphics();
      AffineTransform transform = new AffineTransform();
      transform.scale(2.75, 2.75);
      g.drawImage(targetImages, transform, null);
      targetFilter.draw(g, 2.75, true);
      g.dispose();

      assertTrue("Images filter should be same",
          compareImage(filteredImage, targetFilteredImage));
View Full Code Here

Examples of net.alteiar.beans.map.filter.MapFilter.draw()

  public void drawFilter(Graphics2D g2, boolean isDm) {
    if (filterId != null) {
      MapFilter filter = CampaignClient.getInstance().getBean(filterId);
      if (filter != null) {
        // TODO FIXME remove 1.0
        filter.draw(g2, 1.0, isDm);
      } else {
        Graphics2D g = (Graphics2D) g2.create();
        g.setColor(Color.BLACK);
        if (isDm) {
          g.setComposite(AlphaComposite.getInstance(
View Full Code Here

Examples of net.jaitec.applet1.Ball.draw()

    }
      graphic.setColor(antes);
      // now draw each ball
      for(Iterator<Ball> i= balls.iterator(); i.hasNext(); ) { 
        Ball b = (Ball) i.next();
        b.draw(graphic);
        // data from each ball
        if(Config.DEBUG)
        {
          graphic.drawString("a="+(int) Math.toDegrees(b.getAngle()), b.getX(), b.getY());
          graphic.drawString("s="+b.getSpeed(), b.getX(), b.getY()+15);
View Full Code Here

Examples of net.machinemuse.general.gui.clickable.IClickable.draw()

        }
        Iterator<? extends IClickable> iter = list.iterator();
        IClickable clickie;
        while (iter.hasNext()) {
            clickie = iter.next();
            clickie.draw();
        }
    }

    /**
     * Draws the background layer for the GUI.
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator.draw()

    Tessellator t = Tessellator.instance;
    t.startDrawingQuads();
    t.setBrightness(255);
    t.setNormal(0, 1, 0);
    renderer.renderFaceYPos(block, 0, 0, 0, BlockWarpGate.icons[2]);
    t.draw();
    GL11.glTranslatef(0.5F, 0.5F, 0.5F);
  }

  @Override
  public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
View Full Code Here

Examples of net.minecraft.src.Tessellator.draw()

            tessellator.addVertexWithUV(MOO_X1, MOO_Y1, MOO_Z0, tileX1, 0.0);
            tessellator.addVertexWithUV(MOO_X1, MOO_Y1, MOO_Z0, tileX0, 0.0);
            tessellator.addVertexWithUV(MOO_X1, MOO_Y0, MOO_Z0, tileX0, 1.0);
            tessellator.addVertexWithUV(MOO_X0, MOO_Y0, MOO_Z1, tileX1, 1.0);
            tessellator.addVertexWithUV(MOO_X0, MOO_Y1, MOO_Z1, tileX1, 0.0);
            tessellator.draw();
        }
        return overlayActive;
    }

    public static void finishMooshroom() {
View Full Code Here

Examples of net.sf.jasperreports.engine.export.draw.ImageDrawer.draw()

    try {
      htmlPrintElement = HtmlPrintElementUtils.getHtmlPrintElement();
     
      ImageDrawer imageDrawer = new ImageDrawer()// FIXME maybe the ImageDrawer should be passed in from the PrintDrawVisitor
     
      imageDrawer.draw(
          grx,
          htmlPrintElement.createImageFromElement(element),
          offset.getX(),
          offset.getY()
          );
View Full Code Here

Examples of net.sf.jiga.xtended.impl.Sprite.draw()

                                        picBds.grow(-Math.abs(fx.fx_loc.x), -Math.abs(fx.fx_loc.y));
                                }
                                picture.setBounds(picBds);
                                picture.runValidate();
                                g.translate(-bounds.x, -bounds.y);
                                picture.draw(this, (Graphics2D) g, fx.fx, fx.fx_loc, fx.fx_clr);
                                g.translate(bounds.x, bounds.y);
                                picture.setBounds(origPicBds);
                                picture.setTileModeEnabled(tiled);
                                picture.setBufferedImageEnabled(bufferedOrig);
                                endEdit(key, thumbnail);
View Full Code Here

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

    Arc2D a = new Arc2D.Double(Arc2D.PIE);

    a.setAngleExtent(10);
    a.setAngleStart(-30);
    a.setFrame(0, 0, 80, 80);
    sg.draw(a);

    sg.setColor(Color.BLUE);
    sg.draw(new Line2D.Double(99, 98, 78, 3));

    sg.setColor(Color.YELLOW);
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.