Examples of Draw()


Examples of images.APImage.draw()

    public static void main(String[] args)
    {
        APImage imageFrame;
        for (int i = 0; i < 5; i++) {
            imageFrame = new APImage("smallHalfDome.jpg");
            imageFrame.draw();
        }
        
    }
}
View Full Code Here

Examples of invaders101.interfaces.Drawable.draw()

        // ciclo que dibuja todas las entidades que tiene el juego
        for (int i = 0; i < entities.size(); i++) {
            if (entities.get(i) instanceof Drawable) {
                Drawable entity = (Drawable) entities.get(i);
                entity.draw(g);
            }
        }
        drawLives("sprites/life.png", SCREEN_HEIGHT, 550, g, lives);

        // Si está esperando que se presione una tecla
View Full Code Here

Examples of it.timehero.entities.Entity.draw()

    world.removeDeadActors();

    // disegno entit�
    for (int i = 0; i < world.getActorSize(); i++) {
      Entity ent = world.getActor(i).getEntity();
      ent.draw(g);
    }
    g.resetTransform();

    // disegno interfaccia utente
    ui.render(g, world.getPlayerActor().getScheda().getPf().getValore());
View Full Code Here

Examples of it.timehero.example.slick.timehero.entities.Entity.draw()

        // disegno entit�
        for (int i = 0; i < entities.size(); i++) {
      Entity ent = entities.get(i);
      // l'eroe deve essere animato in modo diverso (in base all'input dell'utente)

      ent.draw(g);       

      /*
      if ( ent instanceof Gigi){
        ((Gigi)ent).draw(g);
      } else {
View Full Code Here

Examples of it.timehero.object.OggettoGenerico.draw()

    g.translate(400 - (int) (gigi.getX() * 32)300 - (int) (gigi.getY() * 32));

    // draw objects
    for (int i = 0; i < world.getOggettiSize(); i++) {
      OggettoGenerico og = ((OggettoGenerico)world.getOggetto(i));
      og.draw(g);
    }
   
    // remove actors with hit points < 0
    world.removeDeadActors();

View Full Code Here

Examples of java.awt.Graphics2D.draw()

    g2.fill(eastborder);

    if (isBorderPainted())
    {
      g2.setPaint(Color.gray);
      g2.draw(printingArea);
    }

    g2.setPaint(Color.white);
    g2.fill(pageArea);
View Full Code Here

Examples of java.awt.font.TextLayout.draw()

            if (text != null && text.length() > 0) {
                FontRenderContext context = g2.getFontRenderContext();
                TextLayout layout = new TextLayout(text, getFont(), context);
                Rectangle2D bounds = layout.getBounds();
                g2.setColor(getForeground());
                layout.draw(g2, (float) (width - bounds.getWidth()) / 2,
                        (float) (maxY + layout.getLeading() + 2 * layout.getAscent()));
            }
        }
    }
   
View Full Code Here

Examples of jbrickbreaker.model.bonuses.Bonus.draw()

    public void drawElements(Graphics2D g) {
        // for (Bonus b : movingBonus)
        for (int i = 0; i < movingBonus.size(); i++) {
            Bonus b = movingBonus.get(i);
            if (b != null)
                b.draw(g);
        }
        pad.draw(g);
        // for (Ball b : balls){
        for (int i = 0; i < balls.size(); i++) {
            Ball b = balls.get(i);
View Full Code Here

Examples of lupos.gui.operatorgraph.DrawObject.draw()

        if(drawObject == null) {
          drawObject = this.getOperatorStyle(className + "_style_operator");
        }

        if(drawObject != null) {
          drawObject.draw(g2d, 0, 0, size.width, size.height);
        } else {
          DrawObject.drawSimpleBoxOuterLines(g2d, 0, 0, size.width, size.height, Color.WHITE, Color.BLACK);
        }
      }
    } catch(final Exception e) {
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.queryeditor.operators.QueryRDFTerm.draw()

      for (final Literal l : soSortedLiterals)
        variablesSubj.add(new ComboItem(l));

      QueryRDFTerm queryRDFTerm = new QueryRDFTerm(prefixInstance);
      // just in order to set panel of QueryRDFTerm...
      queryRDFTerm.draw(new GraphWrapperOperator(queryRDFTerm), AdvancedQueryEditor.this.visualGraphs.get(0));
     
      subjectPanel = new SuggestionPanel(PADDING, queryRDFTerm, variablesSubj, rowPanel);

      final int subjectX = PADDING;
      final int subjectY = PADDING;
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.