Class Asker

java.lang.Object
  extended by Asker

public class Asker
extends Object

Asks the user for the characteristics of a square: width/height and color. Has methods for returning that information.

Author:
David Mutchler. Created March 19, 2009.

Constructor Summary
Asker(String introductaryMessage)
          Asks the user for the characteristics of a square: width/height and color, and stores that information for subsequent retrieval.
 
Method Summary
 Color getColor()
          Returns the color of the square, as specified by the user.
 int getWidth()
          Returns the width/height of the square, as specified by the user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asker

public Asker(String introductaryMessage)
Asks the user for the characteristics of a square: width/height and color, and stores that information for subsequent retrieval.

Parameters:
introductaryMessage - Message to display before asking for the square's characteristic
Method Detail

getWidth

public int getWidth()
Returns the width/height of the square, as specified by the user.

Returns:
the width/height of the square, as specified by the user.

getColor

public Color getColor()
Returns the color of the square, as specified by the user.

Returns:
the color of the square, as specified by the user.