FileDocCategorySizeDatePackage
G2D.javaAPI DocExample484Tue Mar 13 22:36:10 GMT 2001None

G2D

public class G2D extends Component
Template Graphics2D object
author
Ian F. Darwin, ian@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);