Class SalaInfo

java.lang.Object
  extended by SalaInfo

public class SalaInfo
extends java.lang.Object

Implementa la clase SalaInfo


Field Summary
static int INFOHORIZONTAL
           
static int INFOVERTICAL
           
static int LOGOHORIZONTAL
           
static int LOGOVERTICAL
           
static int MARCOHORIZONTAL
           
static int MARCOVERTICAL
           
 
Method Summary
 java.lang.String getLink()
          return entrega el la direccion URL asociada al sector del piso
 java.lang.String getName()
          return entrega el nombre de la sala seleccionada
 java.awt.image.BufferedImage loadImage(java.lang.String nombre)
          Permite cargar la imagen asociada a la sala
 void paintComponent(java.awt.Graphics2D g2d)
          Metodo que nos permite que la sala sea dibujable
 void set(int INFOHORIZONTAL, int INFOVERTICAL, int INFOANCHO, int INFOALTO)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFOVERTICAL

public static final int INFOVERTICAL
See Also:
Constant Field Values

INFOHORIZONTAL

public static final int INFOHORIZONTAL
See Also:
Constant Field Values

MARCOVERTICAL

public static final int MARCOVERTICAL
See Also:
Constant Field Values

MARCOHORIZONTAL

public static final int MARCOHORIZONTAL
See Also:
Constant Field Values

LOGOHORIZONTAL

public static final int LOGOHORIZONTAL
See Also:
Constant Field Values

LOGOVERTICAL

public static final int LOGOVERTICAL
See Also:
Constant Field Values
Method Detail

paintComponent

public void paintComponent(java.awt.Graphics2D g2d)
Metodo que nos permite que la sala sea dibujable

Parameters:
g2d - Objeto graphics2d que permite dibujar la sala

set

public void set(int INFOHORIZONTAL,
                int INFOVERTICAL,
                int INFOANCHO,
                int INFOALTO)

loadImage

public java.awt.image.BufferedImage loadImage(java.lang.String nombre)
Permite cargar la imagen asociada a la sala

Parameters:
nombre, - string con el nombre correspondiente a la sala

getLink

public java.lang.String getLink()
return entrega el la direccion URL asociada al sector del piso


getName

public java.lang.String getName()
return entrega el nombre de la sala seleccionada