com.planeth.common.gfx
Class ScrollingTextImagizer

java.lang.Object
  extended bycom.planeth.common.gfx.ScrollingTextImagizer

public class ScrollingTextImagizer
extends java.lang.Object

Buffered Scrolling Textbox
Formats and animates a text within a predefined textBox.
The whole thing is rendered to an image.

Author:
Andreas Grässer, gal@planet-h.com.
created 14.11.2005

Constructor Summary
ScrollingTextImagizer(java.util.List stringList, java.awt.Font font, int width, int height)
          Constructor for ScrollingTextImagizer.
 
Method Summary
 Vector2D getSize()
          Returns the size of the rendered image
 java.awt.Image renderImage()
          Returns the text formatted as a rendered image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScrollingTextImagizer

public ScrollingTextImagizer(java.util.List stringList,
                             java.awt.Font font,
                             int width,
                             int height)
Constructor for ScrollingTextImagizer.

Parameters:
stringList - List with String items (each element is a row)
font - the font for the scrolling text
width - width of the generated image
height - height of the generated image
Method Detail

renderImage

public java.awt.Image renderImage()
Returns the text formatted as a rendered image

Returns:
the rendered image

getSize

public Vector2D getSize()
Returns the size of the rendered image

Returns:
Returns the size.