All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

actionPerformed(ActionEvent). Method in class java.lancs.BasicGraphics
handles button depression events, etc.
addSurname(String). Method in class java.lancs.GroupOfPeople
adds a surname to those held
APR. Static variable in class java.lancs.OurDate
Constant - Month April
AUG. Static variable in class java.lancs.OurDate
Constant - Month August

B

BasicFileIo(). Constructor for class java.lancs.BasicFileIo
Constructor for BasicFileIo.
BasicFileIo(int, String). Constructor for class java.lancs.BasicFileIo
Constructor for BasicFileIo.
BasicGraphics(). Constructor for class java.lancs.BasicGraphics
constructor to lay out the window
BasicIo(). Constructor for class java.lancs.BasicIo

C

Card(). Constructor for class java.lancs.Card
Creates an instance of the Card class with random values (if all have been dealt, then starts again)
Card(int, int). Constructor for class java.lancs.Card
Creates an instance of the Card class with specified values (if all have been dealt, then starts again)
closeFile(). Method in class java.lancs.BasicFileIo
Close the current file
CLUBS. Static variable in class java.lancs.Card
Constant - Clubs
copy(). Method in class java.lancs.OurDate
return a copy of the date
copy(). Method in class java.lancs.Person
return a copy of the person

D

DEC. Static variable in class java.lancs.OurDate
Constant - Month December
DIAMONDS. Static variable in class java.lancs.Card
Constant - Diamonds
draw(). Method in class java.lancs.BasicGraphics
draws the window on the screen with the specified shapes

F

FEB. Static variable in class java.lancs.OurDate
Constant - Month February
FEMALE. Static variable in class java.lancs.Person
Constant - female gender
FILLED_OVAL. Static variable in class java.lancs.BasicGraphics
definition of a filled-in oval
FILLED_RECTANGLE. Static variable in class java.lancs.BasicGraphics
definition of a filled-in rectangle
FILLED_TRIANGLE. Static variable in class java.lancs.BasicGraphics
definition of a filled-in triangle
formalTitle(). Method in class java.lancs.Person
return the formal title of the person

G

getAge(). Method in class java.lancs.Person
returns the age attribute of the person
getAge(int). Method in class java.lancs.GroupOfPeople
extracts one of the ages held
getCount(). Method in class java.lancs.GroupOfPeople
returns number of surnames held
getDayOfMonth(). Method in class java.lancs.OurDate
returns the day within the month attribute of the date
getForename(). Method in class java.lancs.Person
returns the forename attribute of the person
getGender(). Method in class java.lancs.Person
returns the gender attribute of the person
getGenderString(). Method in class java.lancs.Person
returns the gender attribute of the person as a String
getMonth(). Method in class java.lancs.OurDate
returns the month attribute of the date
getSalary(int). Method in class java.lancs.GroupOfPeople
extracts one of the salaries held
getSuit(). Method in class java.lancs.Card
returns the suit attribute of the card
getSuitString(). Method in class java.lancs.Card
returns the suit attribute of the card as a string
getSurname(). Method in class java.lancs.Person
returns the surname attribute of the person
getSurname(int). Method in class java.lancs.GroupOfPeople
extracts one of the surnames held
getUpperAgeLimit(). Static method in class java.lancs.Person
returns the upper limit for a valid age
getValue(). Method in class java.lancs.Card
returns the value attribute of the card
getValueString(). Method in class java.lancs.Card
returns the value attribute of the card as a string
getYear(). Method in class java.lancs.OurDate
returns the year attribute of the date
GroupOfPeople(). Constructor for class java.lancs.GroupOfPeople
constructor sets the number of people in the group to zero

H

HEARTS. Static variable in class java.lancs.Card
Constant - Hearts

I

increaseAge(int). Method in class java.lancs.Person
increase the age of the person by the specified amount
INPUT. Static variable in class java.lancs.BasicFileIo
Constant - input file

J

JAN. Static variable in class java.lancs.OurDate
Constant - Month January
JUL. Static variable in class java.lancs.OurDate
Constant - Month July
JUN. Static variable in class java.lancs.OurDate
Constant - Month June

M

MALE. Static variable in class java.lancs.Person
Constant - male gender
MAR. Static variable in class java.lancs.OurDate
Constant - Month March
MAY. Static variable in class java.lancs.OurDate
Constant - Month May

N

NOV. Static variable in class java.lancs.OurDate
Constant - Month November

O

OCT. Static variable in class java.lancs.OurDate
Constant - Month October
openFile(int, String). Method in class java.lancs.BasicFileIo
Open a file.
OurDate(). Constructor for class java.lancs.OurDate
Creates an instance of the OurDate class with default values (day, month and year zero)
OurDate(int, int, int). Constructor for class java.lancs.OurDate
Creates an instance of the OurDate class with specified attribute values
OUTPUT. Static variable in class java.lancs.BasicFileIo
Constant - output file
OVAL. Static variable in class java.lancs.BasicGraphics
definition of an oval shape

P

Person(). Constructor for class java.lancs.Person
Creates an instance of the Person class with default values (forename = "NONE", surname = "NONE", age = 0, gender = UNKNOWN)
Person(String, String, int, int). Constructor for class java.lancs.Person
Creates an instance of the Person class with specified attribute values
print(boolean). Method in class java.lancs.BasicFileIo
print(char). Method in class java.lancs.BasicFileIo
print(double). Method in class java.lancs.BasicFileIo
print(float). Method in class java.lancs.BasicFileIo
print(int). Method in class java.lancs.BasicFileIo
print(long). Method in class java.lancs.BasicFileIo
print(String). Method in class java.lancs.BasicFileIo
println(). Method in class java.lancs.BasicFileIo
println(boolean). Method in class java.lancs.BasicFileIo
println(char). Method in class java.lancs.BasicFileIo
println(double). Method in class java.lancs.BasicFileIo
println(float). Method in class java.lancs.BasicFileIo
println(int). Method in class java.lancs.BasicFileIo
println(long). Method in class java.lancs.BasicFileIo
println(String). Method in class java.lancs.BasicFileIo
prompt(String). Static method in class java.lancs.BasicIo
output a prompt message to the screen

R

readCharacter(). Method in class java.lancs.BasicFileIo
Read a character from the file, the first on the line
readCharacter(). Static method in class java.lancs.BasicIo
read a character, the first on the line
readDouble(). Method in class java.lancs.BasicFileIo
read a double value from the file
readDouble(). Static method in class java.lancs.BasicIo
read the next line from the keyboard as a double
readFloat(). Method in class java.lancs.BasicFileIo
read a float value from the file
readFloat(). Static method in class java.lancs.BasicIo
read the next line from the keyboard as a float
readInteger(). Method in class java.lancs.BasicFileIo
read the next line from the file as an integer
readInteger(). Static method in class java.lancs.BasicIo
read the next line from the keyboard as an integer
readString(). Method in class java.lancs.BasicFileIo
read the next line from the file as a String
readString(). Static method in class java.lancs.BasicIo
read the next line from the keyboard as a String
readWord(). Method in class java.lancs.WordFile
reads the next word from the file
RECTANGLE. Static variable in class java.lancs.BasicGraphics
definition of a rectangle shape
restart(). Static method in class java.lancs.Card
Resets the deck of cards to all undealt

S

SEP. Static variable in class java.lancs.OurDate
Constant - Month September
setAge(int). Method in class java.lancs.Person
set the age attribute of the person
setAge(int, int). Method in class java.lancs.GroupOfPeople
inserts an age among those held
setColour(Color). Method in class java.lancs.BasicGraphics
set the colour of the shape that you want to draw
setDayOfMonth(int). Method in class java.lancs.OurDate
set the day within the month attribute of the date
setDimensions(int, int, int, int). Method in class java.lancs.BasicGraphics
set the dimensions of the shape that you want to draw
setForename(String). Method in class java.lancs.Person
set the forename attribute of the person
setFullName(String, String). Method in class java.lancs.Person
set the full name of the person in one operation
setGender(int). Method in class java.lancs.Person
set the gender atribute of the person
setMonth(int). Method in class java.lancs.OurDate
set the month attribute of the date
setSalary(int, int). Method in class java.lancs.GroupOfPeople
inserts a salary among those held
setShape(int). Method in class java.lancs.BasicGraphics
set the type of shape that you want to draw
setSurname(String). Method in class java.lancs.Person
set the surname attribute of the person
setYear(int). Method in class java.lancs.OurDate
set the year attribute of the date
SPADES. Static variable in class java.lancs.Card
Constant - Spades
subtract(OurDate, OurDate). Static method in class java.lancs.OurDate
find the number of days between two dates

T

toString(). Method in class java.lancs.Card
return a string representing the card
toString(). Method in class java.lancs.OurDate
return a string representing the date
toString(). Method in class java.lancs.Person
return a string representing the person
TRIANGLE. Static variable in class java.lancs.BasicGraphics
definition of a triangle shape

U

UNKNOWN. Static variable in class java.lancs.Person
Constant - unknown gender

W

WordFile(). Constructor for class java.lancs.WordFile
Constructor for WordFile Initialises the filetype to "unknown".
WordFile(int, String). Constructor for class java.lancs.WordFile
Constructor for WordFile
writeDouble(double, int, int). Method in class java.lancs.BasicFileIo
output a double to the file in a field of a specified width
writeDouble(double, int, int). Static method in class java.lancs.BasicIo
output a double in a field of a specified width
writeFloat(float, int, int). Method in class java.lancs.BasicFileIo
output a float to the file in a field of a specified width
writeFloat(float, int, int). Static method in class java.lancs.BasicIo
output a float in a field of a specified width
writeInteger(int, int). Method in class java.lancs.BasicFileIo
Write an integer to the file
writeInteger(int, int). Static method in class java.lancs.BasicIo
output an integer in a field of a specified width