Package org.newdawn.slick.geom

Examples of org.newdawn.slick.geom.Rectangle


    this.millis = millisecondsToBlend;
    this.milliStep = millisecondsToBlend / 255;
    if (milliStep <= 0)
      milliStep = 1;
    milliCount = 0;
    rect = new Rectangle(0, 0, width, height);
  }
View Full Code Here


        //Interfaz del profesor
        profesorName = DataManager.getRival();
        profesor = new CombateProfesor(profesorName);
        profesorHud = profesor.getProfesorHud();
        spriteCombateProfesor = profesor.getSpriteCombate();
        profesorPsDisplay = new Rectangle(134, 202, 200, 10);

        //Interfaz del alumno
        alumno = new CombateAlumno();
        alumnoHud = ResourceManager.getImage("alumnoHUD");
        spriteCombateAlumno = ResourceManager.getImage("Combate_alumno");
        alumnoPsDisplay = new Rectangle(734, 502, 200, 10);

        //Zona para las acciones del combate
        actionArea = PanelInfo.getInstance();

        actualizaAlumnoPSTimer = new Timer(PS_DELAY, new ActualizaAlumnoPSTimerListener());
View Full Code Here

    if(this.shape.getWidth() == 0){
      Font font = graphics.getFont();
     
      int width = font.getWidth(this.bodyText) + this.padding * 2;
      int height = font.getHeight(this.bodyText) + this.padding * 2 * 2;
      this.shape = new Rectangle(
          this.centerX - width/2,
          this.centerY - height,
          width,
          height
      );
View Full Code Here

  /**
   * Hides the dialog.
   */
  public void hide() {
    this.show = false;
    this.shape = new Rectangle(0,0,0,0);
    this.textButton.hide();
  }
View Full Code Here

   
    if(this.shape.getWidth() == 0){
      Font font = graphics.getFont();
      int width = font.getWidth(text) + this.padding * 2;
      int height = font.getHeight(text) + this.padding * 2;
      this.shape = new Rectangle(this.x - width / 2, this.y - height / 2, width, height);
      this.setShape(this.shape);
    }
   
    super.render(container, graphics);
  }
View Full Code Here

   * @param centerY center position y
   */
  public void moveTo(int centerX, int centerY) {
    this.centerX = centerX;
    this.centerY = centerY;
    this.shape = new Rectangle(0, 0, 0, 0);
  }
View Full Code Here

    this.text = text;
   
    this.x = leftX;
    this.y = topY;
   
    this.shape = new Rectangle(-1,-1,0,0);
    this.setShape(this.shape);
   
    this.click = click;
    clickListener = NullListener.getSingleton();
    buttonListener = NullListener.getSingleton();
View Full Code Here

   
    if(this.shape.getWidth() == 0){
      Font font = graphics.getFont();
      int width = font.getWidth(text) + this.padding * 2;
      int height = font.getHeight(text) + this.padding * 2;
      this.shape = new Rectangle(this.x, this.y, width, height);
      this.setShape(this.shape);
    }
   
    if(this.mouseOver){
      graphics.setColor(this.colorMouseOver);
View Full Code Here

    this.padding = padding;
  }
 
  public void setText(String text) {
    this.text = text;
    this.shape = new Rectangle(this.x, this.y, 0, 0);
  }
View Full Code Here

   * @param y corner position y
   */
  public void moveTo(float x, float y) {
    this.x = x;
    this.y = y;
    this.shape = new Rectangle(x, y, 0, 0);
  }
View Full Code Here

TOP

Related Classes of org.newdawn.slick.geom.Rectangle

Copyright © 2018 www.massapicom. 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.