public class OpeningScreen
extends java.lang.Object
| Constructor and Description |
|---|
OpeningScreen()
Creates a default OpeningScreen object containing three
lines of text output that identify the programmer and the
submission.
|
OpeningScreen(java.lang.String firstLine,
java.lang.String secondLine,
java.lang.String thirdLine)
Creates an OpeningScreen object with client-supplied
three lines of text output to be displayed.
|
OpeningScreen(java.lang.String firstLine,
java.lang.String secondLine,
java.lang.String thirdLine,
int numberOfSpacesToIndent)
Creates an OpeningScreen object with client-supplied
three lines of text output to be displayed, as
well as a client-supplied indentation level.
|
OpeningScreen(java.lang.String firstLine,
java.lang.String secondLine,
java.lang.String thirdLine,
int numberOfSpacesToIndent,
int numberOfBlankLinesBefore,
int numberOfBlankLinesAfter)
Creates an OpeningScreen object with client-supplied
three lines of text output to be displayed, as well
as a client-supplied number of spaces to indent, in addition
to a client-supplied number of blank lines before and after
the three lines of output.
|
| Modifier and Type | Method and Description |
|---|---|
void |
display()
Displays the current OpeningScreen object.
|
public OpeningScreen()
public OpeningScreen(java.lang.String firstLine,
java.lang.String secondLine,
java.lang.String thirdLine)
firstLine - The first line of text in the display.secondLine - The second line of text in the display.thirdLine - The third line of text in the display.
public OpeningScreen(java.lang.String firstLine,
java.lang.String secondLine,
java.lang.String thirdLine,
int numberOfSpacesToIndent)
firstLine - The first line of text in the display.secondLine - The second line of text in the display.thirdLine - The third line of text in the display.numberOfSpacesToIndent - The number of spaces the
lines of information are indented from the left margin.
public OpeningScreen(java.lang.String firstLine,
java.lang.String secondLine,
java.lang.String thirdLine,
int numberOfSpacesToIndent,
int numberOfBlankLinesBefore,
int numberOfBlankLinesAfter)
firstLine - The first line of text in the display.secondLine - The second line of text in the display.thirdLine - The third line of text in the display.numberOfSpacesToIndent - The number of spaces the
lines of information are indented from the left margin.numberOfBlankLinesBefore - The number of blank lines
displayed before the three lines of output.numberOfBlankLinesAfter - The number of blank lines
displayed after the three lines of output.
public void display()