de.esw.eengine.renderable
Class Text

java.lang.Object
  extended by de.esw.eengine.renderable.AbstractRenderable
      extended by de.esw.eengine.renderable.Text
All Implemented Interfaces:
IActivatable, IRenderable

public class Text
extends AbstractRenderable
implements IActivatable

Since:
1.0
Version:
$Id: Text.java 209 2005-07-23 00:39:50Z markusw $
Author:
markusw

Constructor Summary
Text(java.lang.String name, java.lang.String text, int x, int y)
           
 
Method Summary
 java.awt.Color getColor()
           
 java.lang.String getText()
           
 int getX()
           
 int getY()
           
 boolean isActive()
           
 void render(IRenderDevice renderDevice)
          Renders this entity to the current IRenderDevice
 void setActive(boolean active)
           
 void setColor(java.awt.Color color)
           
 void setText(java.lang.String text)
           
 void setX(int x)
           
 void setY(int y)
           
 void toggle()
          Switches activation state
 
Methods inherited from class de.esw.eengine.renderable.AbstractRenderable
blend, getAlpha, getName, setAlpha, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Text

public Text(java.lang.String name,
            java.lang.String text,
            int x,
            int y)
Parameters:
name - Name of this Text
text - Text to render
x - X position to render Text at
y - Y position to render Text at
Method Detail

render

public void render(IRenderDevice renderDevice)
Description copied from interface: IRenderable
Renders this entity to the current IRenderDevice

Specified by:
render in interface IRenderable
Parameters:
renderDevice - IRenderDevice to render onto
See Also:
IRenderable.render(de.esw.eengine.core.IRenderDevice)

getColor

public final java.awt.Color getColor()
Returns:
Returns the color.

setColor

public final void setColor(java.awt.Color color)
Parameters:
color - The color to set.

getText

public final java.lang.String getText()
Returns:
Returns the text.

setText

public final void setText(java.lang.String text)
Parameters:
text - The text to set.

getX

public final int getX()
Returns:
Returns the x.

setX

public final void setX(int x)
Parameters:
x - The x to set.

getY

public final int getY()
Returns:
Returns the y.

setY

public final void setY(int y)
Parameters:
y - The y to set.

setActive

public void setActive(boolean active)
Specified by:
setActive in interface IActivatable
Parameters:
active - True if IActivatable should be active, false otherwise
See Also:
IActivatable.setActive(boolean)

isActive

public boolean isActive()
Specified by:
isActive in interface IActivatable
Returns:
True if IActivatable is active, false otherwise
See Also:
IActivatable.isActive()

toggle

public void toggle()
Description copied from interface: IActivatable
Switches activation state

Specified by:
toggle in interface IActivatable
See Also:
IActivatable.toggle()