|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectAsker
public class Asker
Asks the user for the characteristics of a square: width/height and color. Has methods for returning that information.
| 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 |
|---|
public Asker(String introductaryMessage)
introductaryMessage - Message to display
before asking for the square's characteristic| Method Detail |
|---|
public int getWidth()
public Color getColor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||