Class Beeper

java.lang.Object
  extended by Circle
      extended by Beeper

public class Beeper
extends Circle


Constructor Summary
Beeper(int x, int y)
          Constructs a beeper at a given grid location.
 
Method Summary
 void draw(java.awt.Graphics2D g2)
          Draws this beeper in 2D.
 int getX()
          Gets the x location of the center of this beeper.
 int getY()
          Gets the y location of the center of this beeper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Beeper

public Beeper(int x,
              int y)
Constructs a beeper at a given grid location.

Parameters:
x - the x location of the beeper
y - the y location of the beeper
Method Detail

getX

public int getX()
Gets the x location of the center of this beeper.

Returns:
the x location

getY

public int getY()
Gets the y location of the center of this beeper.

Returns:
the y location

draw

public void draw(java.awt.Graphics2D g2)
Draws this beeper in 2D. I use this for making diagrams.

Parameters:
g2 - the graphics context