com.planeth.gtroids.gfx
Class StarSky

java.lang.Object
  extended bycom.planeth.gtroids.gfx.StarSky

public class StarSky
extends java.lang.Object

Creates a random starsky.
The generated starsky is cached over the whole lifecycle of an instance.

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

Constructor Summary
StarSky(Vector2D size)
          Constructor for StarSky.
 
Method Summary
 void paint(java.awt.Graphics g)
          Paints the StarSky into the passed Graphics
If the Starsky is once generated, it is cached in an image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StarSky

public StarSky(Vector2D size)
Constructor for StarSky.

Parameters:
size - the size of the starsky
Method Detail

paint

public void paint(java.awt.Graphics g)
Paints the StarSky into the passed Graphics
If the Starsky is once generated, it is cached in an image.

Parameters:
g - Graphics to paint into