com.planeth.gtroids.stats
Class ObjectInfoImagizer

java.lang.Object
  extended bycom.planeth.gtroids.stats.ObjectInfoImagizer

public class ObjectInfoImagizer
extends java.lang.Object

Buffered Info box to describe Object types
Visualizes the conaining ObjectInfo objects
The whole thing is rendered to an image.

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

Field Summary
static int ALIGN_LEFT
           
static int ALIGN_RIGHT
           
 
Constructor Summary
ObjectInfoImagizer(int alignment, int verticalSpace)
          Constructor for ObjectInfoImagizer.
 
Method Summary
 void addObjectInfo(ObjectInfo objectInfo)
          Adds an ObjectInfo
 Vector2D getSize()
          Returns the size of the image
 java.awt.Image renderImage()
          Renders the ObjectInfoList as image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIGN_LEFT

public static final int ALIGN_LEFT
See Also:
Constant Field Values

ALIGN_RIGHT

public static final int ALIGN_RIGHT
See Also:
Constant Field Values
Constructor Detail

ObjectInfoImagizer

public ObjectInfoImagizer(int alignment,
                          int verticalSpace)
Constructor for ObjectInfoImagizer.

Parameters:
alignment - the horizontal alignment
verticalSpace - the vertical space between items
Method Detail

addObjectInfo

public void addObjectInfo(ObjectInfo objectInfo)
Adds an ObjectInfo

Parameters:
objectInfo - the ObjectInfo to add

renderImage

public java.awt.Image renderImage()
Renders the ObjectInfoList as image

Returns:
Returns the rendered image

getSize

public Vector2D getSize()
Returns the size of the image

Returns:
Returns the size of the image