G2Dpublic class G2D extends Component Template Graphics2D object |
Constructors Summary |
---|
public G2D()Construct the drawing object
// setup any data here
|
Methods Summary |
---|
public java.awt.Dimension | getPreferredSize()
return new Dimension(200, 200);
| public void | paint(java.awt.Graphics g)Paint this component, casting "Graphics g" to a Graphics2D object
Graphics2D g2 = (Graphics2D)g;
// g2.draw(something);
|
|