FileDocCategorySizeDatePackage
G2D.javaAPI DocExample492Sun Feb 08 21:34:06 GMT 2004None

G2D

public class G2D extends Component
Template Graphics2D object
author
Ian F. Darwin, http://www.darwinsys.com/
version
#Id$

Fields Summary
Constructors Summary
public G2D()
Construct the drawing object

		// setup any data here
	
Methods Summary
public java.awt.DimensiongetPreferredSize()

		return new Dimension(200, 200);
	
public voidpaint(java.awt.Graphics g)
Paint this component, casting "Graphics g" to a Graphics2D object

		Graphics2D g2 = (Graphics2D)g;
		// g2.draw(something);