de.esw.eengine.renderable
Class Text
java.lang.Object
de.esw.eengine.renderable.AbstractRenderable
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)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Text
public Text(java.lang.String name,
java.lang.String text,
int x,
int y)
- Parameters:
name - Name of this Texttext - Text to renderx - X position to render Text aty - Y position to render Text at
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()