apps.lightrays.gfxlib
Class DrawableString

java.lang.Object
  extended by apps.lightrays.gfxlib.DrawableElement
      extended by apps.lightrays.gfxlib.DrawableString

public class DrawableString
extends DrawableElement

The Class DrawableString.


Constructor Summary
DrawableString(java.lang.String s)
          Instantiates a new drawable string.
 
Method Summary
 void draw(java.awt.Graphics2D gfx, long tick_count)
          Draw.
 java.awt.Font getFont()
          Gets the font.
 java.lang.String getString()
          Gets the string.
 void setFont(java.awt.Font font)
          Sets the font.
 void setString(java.lang.String s)
          Sets the string.
 
Methods inherited from class apps.lightrays.gfxlib.DrawableElement
getC, getOpacity, getX, getY, getZ, setC, setOpacity, setX, setY, setZ
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawableString

public DrawableString(java.lang.String s)
Instantiates a new drawable string.

Parameters:
s - the s
Method Detail

draw

public void draw(java.awt.Graphics2D gfx,
                 long tick_count)
Description copied from class: DrawableElement
Draw.

Specified by:
draw in class DrawableElement
Parameters:
gfx - the gfx
tick_count - the tick_count

getFont

public java.awt.Font getFont()
Gets the font.

Returns:
the font

getString

public java.lang.String getString()
Gets the string.

Returns:
the string

setFont

public void setFont(java.awt.Font font)
Sets the font.

Parameters:
font - the new font

setString

public void setString(java.lang.String s)
Sets the string.

Parameters:
s - the new string