mhframework.gui
Class MHGUITextDisplayArea

java.lang.Object
  extended by mhframework.gui.MHGUIComponent
      extended by mhframework.gui.MHGUITextDisplayArea
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.util.EventListener, MHRenderable

public class MHGUITextDisplayArea
extends MHGUIComponent


Field Summary
 
Fields inherited from class mhframework.gui.MHGUIComponent
focusable, height, state, width
 
Constructor Summary
MHGUITextDisplayArea()
           
 
Method Summary
 void advance()
          Tells an object to update its data.
 int getBorderWidth()
           
 java.lang.String getText()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void render(java.awt.Graphics2D g)
          Tells an object to draw itself onto the sent Graphics object.
 void resize(java.awt.Graphics2D g)
           
 void setBackgroundColor(java.awt.Color backgroundColor)
           
 void setBackgroundImage(java.awt.Image backgroundImage)
           
 void setBorderColor(java.awt.Color borderColor)
           
 void setBorderWidth(int borderWidth)
           
 void setFont(java.awt.Font font)
           
 void setText(java.lang.String text)
           
 void setTextColor(java.awt.Color textColor)
           
 
Methods inherited from class mhframework.gui.MHGUIComponent
actionPerformed, getBounds, getHeight, getWidth, getX, getY, hasFocus, isEnabled, isVisible, mouseDragged, mouseEntered, mouseExited, paint, setEnabled, setFocus, setFocusable, setHeight, setPosition, setSize, setVisible, setWidth, setX, setY, updateBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MHGUITextDisplayArea

public MHGUITextDisplayArea()
Method Detail

getBorderWidth

public int getBorderWidth()

setBorderWidth

public void setBorderWidth(int borderWidth)

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

setFont

public void setFont(java.awt.Font font)

setBorderColor

public void setBorderColor(java.awt.Color borderColor)

setTextColor

public void setTextColor(java.awt.Color textColor)

setBackgroundColor

public void setBackgroundColor(java.awt.Color backgroundColor)

setBackgroundImage

public void setBackgroundImage(java.awt.Image backgroundImage)

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in class MHGUIComponent

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in class MHGUIComponent

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in class MHGUIComponent

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Specified by:
mouseClicked in class MHGUIComponent

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in class MHGUIComponent

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Specified by:
mousePressed in class MHGUIComponent

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Specified by:
mouseReleased in class MHGUIComponent

advance

public void advance()
Description copied from interface: MHRenderable
Tells an object to update its data.


resize

public void resize(java.awt.Graphics2D g)

render

public void render(java.awt.Graphics2D g)
Description copied from interface: MHRenderable
Tells an object to draw itself onto the sent Graphics object.

Parameters:
g - The Graphics object on which this object is to draw itself.