Examples of Drawable


Examples of com.badlogic.gdx.scenes.scene2d.utils.Drawable

  public float getPrefWidth () {
    if (wrap) return 0;
    if (sizeInvalid) computeSize();
    float width = bounds.width;
    Drawable background = style.background;
    if (background != null) width += background.getLeftWidth() + background.getRightWidth();
    return width;
  }
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.utils.Drawable

  }

  public float getPrefHeight () {
    if (sizeInvalid) computeSize();
    float height = bounds.height - style.font.getDescent() * 2;
    Drawable background = style.background;
    if (background != null) height += background.getTopHeight() + background.getBottomHeight();
    return height;
  }
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.utils.Drawable

   * created from the region and stored in the skin. */
  public TiledDrawable getTiledDrawable (String name) {
    TiledDrawable tiled = optional(name, TiledDrawable.class);
    if (tiled != null) return tiled;

    Drawable drawable = optional(name, Drawable.class);
    if (drawable != null) {
      if (!(drawable instanceof TiledDrawable)) {
        throw new GdxRuntimeException("Drawable found but is not a TiledDrawable: " + name + ", "
          + drawable.getClass().getName());
      }
      return (TiledDrawable)drawable;
    }

    tiled = new TiledDrawable(getRegion(name));
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.Drawable

    createSystem();
    this.system.update((int) (secounds * 1000));
  }

  public Drawable getDrawable() {
    return new Drawable() {
      public void draw(Graphics g) {
        ParticleEffect.this.draw(g);
      }
    };
  }
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.Drawable

        }
      }
    });
   
    // Hintergrund hinzufügen
    this.simulatedWorld.addBackground(new Drawable() {
      public void draw(Graphics g) {
        g.pushTransform();
        DemoLevel.this.simulatedWorld.doCameraTranslation(g);
         g.texture(new Rectangle(-50.0f, -40.0f, 200.0f, 60.0f), ResourceManager.getInstance().getImage("landscape.png"), true);
         g.popTransform();
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.Drawable

   * @return Ein Drawable, das diesen Effekt zeichnet. Der Effekt selbst ist
   *         Drawable und Pollable. Diese Methode kann verwendet werden, wenn
   *         er nur als Drawable repräsentiert werden soll.
   */
  public Drawable getDrawable() {
    return new Drawable() {
      public void draw(Graphics g) {
        ParticleEffect.this.draw(g);
      }
    };
  }
View Full Code Here

Examples of invaders101.interfaces.Drawable

        g.fillRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);

        // 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 net.edzard.kinetic.Drawable

 
  public void testAnimatingPosition() {
   
    final Circle e = Kinetic.createCircle(pos1, 10);
   
    final Animation animation = Kinetic.createAnimation(layer, new Drawable() {
      @Override
      public void draw(Frame frame) {
        e.setPosition(pos2);
        assertEquals("Position cannot be set", pos2, e.getPosition());
      }
View Full Code Here

Examples of org.jfree.ui.Drawable

    {
      final double x = (int) StrictGeomUtility.toExternalValue(content.getX());
      final double y = (int) StrictGeomUtility.toExternalValue(content.getY());
      final double width = (int) StrictGeomUtility.toExternalValue(content.getWidth());
      final double height = (int) StrictGeomUtility.toExternalValue(content.getHeight());
      final Drawable d = (Drawable) o;
      final Graphics2D g2Clone = (Graphics2D) g2.create();
      d.draw(g2Clone, new Rectangle2D.Double(x,y,width, height));
      g2Clone.dispose();
    }
  }
View Full Code Here

Examples of org.jfree.ui.Drawable

    {
      final double x = (int) StrictGeomUtility.toExternalValue(content.getX());
      final double y = (int) StrictGeomUtility.toExternalValue(content.getY());
      final double width = (int) StrictGeomUtility.toExternalValue(content.getWidth());
      final double height = (int) StrictGeomUtility.toExternalValue(content.getHeight());
      final Drawable d = (Drawable) o;
      final Graphics2D g2Clone = (Graphics2D) g2.create();
      d.draw(g2Clone, new Rectangle2D.Double(x,y,width, height));
      g2Clone.dispose();
    }
  }
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.