lab5copy
Class GraphicsDemo

java.lang.Object
  extended by lab5copy.GraphicsDemo

public class GraphicsDemo
extends java.lang.Object

This example demonstrates creating some shapes, adding them to a panel, and reacting to mouse events that occur on the panel. NOTE: It is important to add shapes to the panel after creating them... simply creating them will not make them appear.

Author:
Kenneth J. Goldman
Created Aug 5, 2005

Constructor Summary
GraphicsDemo(GraphicsPanel panel)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void mouseMoved(GraphicsPanel panel, int x, int y)
           
 void moveTo(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicsDemo

public GraphicsDemo(GraphicsPanel panel)
Method Detail

mouseMoved

public void mouseMoved(GraphicsPanel panel,
                       int x,
                       int y)

moveTo

public void moveTo(int x,
                   int y)

main

public static void main(java.lang.String[] args)