bookExamples.ch12Nested
Class Shape

java.lang.Object
  extended by bookExamples.ch12Nested.Shape

public abstract class Shape
extends java.lang.Object

DocJava, Inc. http://www.docjava.com Programmer: dlyon Date: Oct 4, 2004 Time: 3:19:20 PM


Method Summary
abstract  void draw(java.awt.Graphics g)
           
static Shape getCircle(int x, int y, int r)
           
static Shape getOval(int x, int y, int w, int h)
           
 int getX()
           
 int getY()
           
 void setX(int x)
           
 void setY(int y)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

draw

public abstract void draw(java.awt.Graphics g)

getCircle

public static Shape getCircle(int x,
                              int y,
                              int r)

getOval

public static Shape getOval(int x,
                            int y,
                            int w,
                            int h)

getX

public int getX()

setX

public void setX(int x)

getY

public int getY()

setY

public void setY(int y)