A B C D F G I K L M N O P Q R S T V W Y

A

AboutDialog - Class in <Unnamed>
AboutDialog is a subclass class of "MyDialog".
AboutDialog(PlusNumber) - Constructor for class AboutDialog
Constructor initialising all attributes of the super class.
AboutDialog() - Constructor for class AboutDialog
Default constructor that initialises attributes by caling a non-default constructor.
aboutDialog - Variable in class PlusNumber
Object of "About Plus Number" dialog.
ac - Variable in class PlusNumber
Array of AudioClip objects that are made from sound files.
actionPerformed(ActionEvent) - Method in class MyActionListener
Manage an event happened when a button is pressed or a menu item is selected on the Plus Number game windows.
addContentLabels() - Method in class InstructionDialog.InstructionPanel
Add labels to the content panel.

B

bg - Variable in class PlusNumber
Array of button groups that are used to group three sets of radio buttons.
BIG_FONT - Static variable in interface Constants
Largest and bold Font object used for drawing a question number on the game window.
bml - Variable in class MyDialog
ButtonMouseListener object that listens to mouse actions on the button.
btnOK - Variable in class MyDialog
"OK" button.
btnPass - Variable in class PlusNumber
"PASS" button on the game window.
buildGamePurposePanel() - Method in class InstructionDialog.InstructionPanel
Build a panel that displays a game purpose.
buildGameWindowPanel() - Method in class InstructionDialog.InstructionPanel
Build a panel that displays explanations about the game window.
buildHowToDeletePanel() - Method in class InstructionDialog.InstructionPanel
Build a panel that tells how to delete numbers from game squares.
buildMenuPanel() - Method in class InstructionDialog.InstructionPanel
Build a panel that displays explanations about menu bar items.
buildPanel() - Method in class InstructionDialog.InstructionPanel
Build components of instruction panels that are placed on the right of the split pane.
buildSplashPanel() - Method in class InstructionDialog.InstructionPanel
Build a panel that displays explanations about the splash window.
ButtonMouseListener - Class in <Unnamed>
ButtonMouseListener is a class that manages operations that are performed when mouse actions are happened on buttons on the game window and dialogs.
ButtonMouseListener(MyDialog) - Constructor for class ButtonMouseListener
Constructor initialising all attributes.
ButtonMouseListener() - Constructor for class ButtonMouseListener
Default constructor that initialises attributes by caling a non-default constructor.

C

c - Variable in class GamePanel
Background colour of this game panel.
cnt - Variable in class MyDialog
Container of this dialog.
cnt - Variable in class PlusNumber
Container of both splash screen and game window.
colourOne - Variable in class PlusNumber
Colour object representing a background colour of a half of game squares (GamePanels).
colourTwo - Variable in class PlusNumber
Colour object representing a background colour of a half of game squares (GamePanels).
Constants - Interface in <Unnamed>
Constants is an interface containing constants for the "PlusNumber" game.
countdownTimer - Variable in class PlusNumber
Timer onject that controls countdown timer on the game window.
CREAM1 - Static variable in interface Constants
Cream colour object used for the background of a half of game squares.
CREAM2 - Static variable in interface Constants
Cream colour object used for the background of the rest half or the game squares.
createContentLabels() - Method in class InstructionDialog.InstructionPanel
Create only necessary number of JLabel objects for each instruction panel.
createDialog() - Method in class AboutDialog
Built components of the AboutDialog object and lay them out on the container.
createDialog() - Method in class InstructionDialog
Built components of an instructionDialog object and lay them out on the container.
createGameWindow() - Method in class PlusNumber
Create the game window's components and lay them out on the window.
createIcons() - Method in class InstructionDialog
Obtain image icons that are displayed on InstructionPanels.
createSplashScreen() - Method in class PlusNumber
Create the splash screen's components and lay them out on the screen.
CYAN - Static variable in interface Constants
Cyan colour object used on the background of dialogs.

D

deleteSplashScreen() - Method in class PlusNumber
Remove the components of the splash screen from the container before starting the very first game.
dialogLabel - Variable in class MyDialog
Array of labels used on this dialog.
dialogPanel - Variable in class MyDialog
Array of panels used on this dialog.
drawMessage(Graphics) - Method in class WindowPanel
Draw a string on the "Sum" area, which is a message to the user (either "Correct!!" or "Exceed!!").
drawQuestion(Graphics) - Method in class WindowPanel
Draw a string on the "Question" area, which is a question number of the current session.
drawSum(Graphics) - Method in class WindowPanel
Draw a string on the "Sum" area, which is the sum of selected numbers.
drawTimeRemaining(Graphics) - Method in class WindowPanel
Draw a string on the "Time Remaining" area.

F

finishGame(String) - Method in class PlusNumber
When a game is over, display a relevant message and stop the timer.
finishSession() - Method in class PlusNumber
Initialise values of relevant attributes when a session ends.

G

gameOver - Variable in class PlusNumber
Indicates if a game is already over or not.
GamePanel - Class in <Unnamed>
GamePanel is a class whose objects are game squares on the game window.
GamePanel(PlusNumber, Color, int) - Constructor for class GamePanel
Constructor that initialises all attributes, adds a mouse listener of myself, and sets a size of this panel.
GamePanel() - Constructor for class GamePanel
Default constructor that initialises attributes by caling a non-default constructor.
gamePanel - Variable in class PlusNumber
Array of GamePanel objects, which are right-side panels on the game window.
gamePanelTimer - Variable in class PlusNumber
Timer onject that controls delay of actions on the game window.
getAboutDialog() - Method in class PlusNumber
Return an AboutDialog object stored in the "aboutDialog" attribute.
getAudioClip(int) - Method in class PlusNumber
Return an AudioClip object that has an index of the received number.
getBml() - Method in class MyDialog
Return a ButtonMouseListener object stored in the "bal" attribute.
getBtnOK() - Method in class MyDialog
Return a JButton object stored in the "btnOK" attribute.
getBtnPass() - Method in class PlusNumber
Return a JButton object stored in the "btnPass" attribute.
getCnt() - Method in class MyDialog
Return a Container object stored in the "cnt" attribute.
getCnt() - Method in class PlusNumber
Return the value of the "cnt" attribute.
getColourOne() - Method in class PlusNumber
Return the value of the "colourOne" attribute.
getColourTwo() - Method in class PlusNumber
Return the value of the "colourTwo" attribute.
getGameOver() - Method in class PlusNumber
Return the value of the "gameOver" attribute.
getGamePanelTimer() - Method in class PlusNumber
Return a Timer object stored in the "gamePanelTimer" attribute.
getImageForDialog(int) - Method in class PlusNumber
Create a new ImageIcon object and return it according to an index of the "INST_IMG_FILE_NAMES" array.
getImageForGamePanel(int) - Method in class PlusNumber
Takes an integer which is one of indexes of the array "IMG_FILE_NAMES_NUMBER".
getImageForMain(int) - Method in class PlusNumber
Takes an integer which is one of indexes of the array "IMG_FILE_NAMES_MAIN".
getImageForSplash(int) - Method in class PlusNumber
Takes an integer which is one of indexes of the array "IMG_FILE_NAMES_SPLASH".
getInstDialog() - Method in class PlusNumber
Return an InstructionDialog object stored in the "instDialog" attribute.
getIsBgmOn() - Method in class PlusNumber
Return the value of the "isBgmOn" attribute.
getIsEffectOn() - Method in class PlusNumber
Return the value of the "isEffectOn" attribute.
getLabels() - Method in class MyDialog
Return an array of JLabel objects stored in the "dialogLabel" attribute.
getMal() - Method in class PlusNumber
Return an MyActionListener object stored in the "mal" attribute.
getMItem(int) - Method in class PlusNumber
Return a JMenuItem object that has an index of the received number.
getMyOwner() - Method in class MyDialog
Return a PlusNumber object stored in the "myOwner" attribute.
getOwner() - Method in class WindowPanel
Return the value of the "owner" attribute.
getPanels() - Method in class MyDialog
Return an array of JPanel objects stored in the "dialogPanel" attribute.
getQuestionNumber() - Method in class PlusNumber
Return the value of the "questionNumber" attribute.
getRandomNumberOneToNine() - Method in class PlusNumber
Obtain a random number in order to decide a number displayed on each of game squares.
getRandomNumberOneToTwenty() - Method in class PlusNumber
Obtain a ramdom number in order to decide a question number.
getRb(int) - Method in class PlusNumber
Return a JRadioButton object that has an index of the received number.
getRbMenu(int) - Method in class PlusNumber
Return a JRadioButtonMenuItem object that has an index of the received number.
getState() - Method in class GamePanel
Return the value of the "state" attribute.
getSum() - Method in class PlusNumber
Return the value of the "sum" attribute.
getTimeRemaining() - Method in class PlusNumber
Return the value of the "timeRemaining" attribute.
getWindowPanel(int) - Method in class PlusNumber
Return a WindowPanel object that has an index of the received number.

I

ic - Variable in class InstructionDialog
Image icons displayed on pnInst along with labels.
img - Variable in class StartPanel
An image displayed on this start panel.
IMG_FILE_NAMES_MAIN - Static variable in interface Constants
Array of String representing file names of images used on the game window.
IMG_FILE_NAMES_NUMBER - Static variable in interface Constants
Array of String representing file names of images that are numbers from 1 to 9 displayed on the game squares.
IMG_FILE_NAMES_SPLASH - Static variable in interface Constants
Array of String representing file names of images used on the splash screen.
init() - Method in class PlusNumber
The entry point to the program.
INST_HEADINGS - Static variable in interface Constants
Array of String representing headings of the "How to Play" dialog.
INST_IMG_FILE_NAMES - Static variable in interface Constants
Array of String representing file names of images used on the "How to Play" dialog.
instDialog - Variable in class PlusNumber
Object of "How to Play" dialog.
InstructionDialog - Class in <Unnamed>
InstructionDialog is a subclass class of "MyDialog".
InstructionDialog(PlusNumber) - Constructor for class InstructionDialog
Constructor initialising all attributes of the super class and this class.
InstructionDialog() - Constructor for class InstructionDialog
Default constructor that initialises attributes by caling a non-default constructor.
InstructionDialog.InstructionPanel - Class in <Unnamed>
InstructionPanel is an inner class of the InstructionDialog class.
InstructionDialog.InstructionPanel(int) - Constructor for class InstructionDialog.InstructionPanel
Constructor initialising attributes.
InstructionDialog.InstructionPanel() - Constructor for class InstructionDialog.InstructionPanel
Default constructor that initialise attributes by caling a non-default constructor.
isBgmOn - Variable in class PlusNumber
Indicates if "BGM ON" option is selected or not.
isEffectOn - Variable in class PlusNumber
Indicates if "Effect ON" option is selected or not.
isGameCleared() - Method in class PlusNumber
Check if all numbers on the game squares have been deleted.

K

killTimer() - Method in class PlusNumber
Cancel all tasks of the countdown timer.

L

lbContents - Variable in class InstructionDialog.InstructionPanel
Array of labels that hold each paragraph of instructions.

M

mal - Variable in class PlusNumber
Object of MyActionListener that listens to actions performed on the splash screen or game window, and switches appropriate operations according to the source of the actions.
MAX_TIME - Static variable in interface Constants
The maximum time of a "Plus Number" game, in seconds.
MEDIUM_FONT - Static variable in interface Constants
Medium-size and bold Font object used for drawing the sum and time remaining on the game window.
MENU_ITEM_NAMES - Static variable in interface Constants
Array of String representing names of menu items.
MENU_NAMES - Static variable in interface Constants
Array of String representing names of menus.
message - Variable in class WindowPanel
String that will be displayed on the "Sum" area.
mItem - Variable in class PlusNumber
Array of menu items on the game window.
mn - Variable in class PlusNumber
Array of menus on the game window.
mouseClicked(MouseEvent) - Method in class GamePanel
Add the number displayed on the clicked square to the total sum.
mouseClicked(MouseEvent) - Method in class StartPanel
Call other methods to either start the first game or display a help screen.
mouseEntered(MouseEvent) - Method in class ButtonMouseListener
Change the mouse cursor to a hand shape when the cursor enters on the "PASS" button on the game window or "OK" buttons on the dialogs.
mouseEntered(MouseEvent) - Method in class GamePanel
Empty method overring a method of the MouseListener interface.
mouseEntered(MouseEvent) - Method in class StartPanel
Redraw an image of a button on the screen when a mouse enters into a panel so that the button will change its background colour.
mouseExited(MouseEvent) - Method in class ButtonMouseListener
Change the mouse cursor back to a normal arrow when the cursor leaves the "PASS" button on the game window or "OK" buttons on the dialogs.
mouseExited(MouseEvent) - Method in class GamePanel
Empty method overring a method of the MouseListener interface.
mouseExited(MouseEvent) - Method in class StartPanel
Redraw an image of a button on the screen when a mouse exits from a panel so that the button colour will be back to its original colour.
mousePressed(MouseEvent) - Method in class GamePanel
Empty method overring a method of the MouseListener interface.
mousePressed(MouseEvent) - Method in class StartPanel
Empty method overring a method of the MouseListener interface.
mouseReleased(MouseEvent) - Method in class GamePanel
Empty method overring a method of the MouseListener interface.
mouseReleased(MouseEvent) - Method in class StartPanel
Empty method overring a method of the MouseListener interface.
MyActionListener - Class in <Unnamed>
MyActionListener is a class that handles events happened on windows of the Plus Number game.
MyActionListener(PlusNumber) - Constructor for class MyActionListener
Constructor initialising an attribute.
MyActionListener() - Constructor for class MyActionListener
Default constructor that initialises an attribute by caling a non-default constructor.
myCursor - Variable in class ButtonMouseListener
Cursor object that is a shape of a cursor when it goes over the buttons.
myDialog - Variable in class ButtonMouseListener
MyDialog object that creates and has this listener.
MyDialog - Class in <Unnamed>
MyDialog is a super class of "InstructionDialog" and "AboutDialog".
MyDialog(PlusNumber, String, int, int) - Constructor for class MyDialog
Constructor initialising all common attributes to dialogs.
MyDialog() - Constructor for class MyDialog
Default constructor that initialises common attributes by caling a non-default constructor.
myOwner - Variable in class MyActionListener
PlusNumber object that creates and has this action listener.
myOwner - Variable in class MyDialog
PlusNumber object that has this dialog.
MyTimerTask - Class in <Unnamed>
MyTimerTask is a sub class of the TimerTask class.
MyTimerTask(PlusNumber, String) - Constructor for class MyTimerTask
Constructor initialising all attributes with receiving two arguments.
MyTimerTask(PlusNumber) - Constructor for class MyTimerTask
Constructor initialising all attributes with receiving one argument.
MyTimerTask() - Constructor for class MyTimerTask
Default constructor that initialise attributes by caling a non-default constructor.

N

NOT_SELECTED - Static variable in interface Constants
Integer representing a state of a game square, which is "not selected".
numDisplayed - Variable in class GamePanel
Number displayed on this game panel.

O

ORANGE - Static variable in interface Constants
Orange colour object used for borders around numbers when they are selected on the game squares.
owner - Variable in class GamePanel
PlusNumber object that creates and has this game panel.
owner - Variable in class MyTimerTask
PlusNumber object that creates and has this TimerTask object.
owner - Variable in class StartPanel
PlusNumber object that creates and has this start panel.
owner - Variable in class WindowPanel
PlusNumber object that creates and has this window panel.

P

paint(Graphics) - Method in class GamePanel
Fill a background colour of a game panel and paint an image of a number on it.
paintComponent(Graphics) - Method in class StartPanel
Draw a suitable image on a panel window according to its panel number.
paintComponent(Graphics) - Method in class WindowPanel
Draw a suitable image on a window panel according to its panel number.
panelNumber - Variable in class GamePanel
Unique number of this game panel.
panelNumber - Variable in class InstructionDialog.InstructionPanel
Unique number of this panel.
panelNumber - Variable in class StartPanel
Unique number of this start panel.
panelNumber - Variable in class WindowPanel
Unique number of this window panel.
PLAYED - Static variable in interface Constants
Integer representing a state of a game square, which is "played".
plusNumber - Variable in class ButtonMouseListener
PlusNumber object that is an owner of the MyDialog object.
PlusNumber - Class in <Unnamed>
PlusNumber is the root class of the program that creates components of the Plus Numbr game and handles the main flow of the game.
PlusNumber() - Constructor for class PlusNumber
 
pnCentre - Variable in class PlusNumber
Panel placed on the middle of the container.
pnContents - Variable in class InstructionDialog.InstructionPanel
Panel that holds contents of instructions.
pnInst - Variable in class InstructionDialog
Panels displayed on the right of this dialog.
pnLeft - Variable in class PlusNumber
Panel placed on the left of the pnCentre.
pnRight - Variable in class PlusNumber
Panel placed on the right of the pnCentre.
prepareCommonComponents() - Method in class MyDialog
Create and setup common components to both "How to Play" dislog and "About Plus Number" dialog.
prepareDescText() - Method in class AboutDialog
Prepare program description with html tags so that it can fit into the dialog window.
prepareInfoText() - Method in class AboutDialog
Prepare program information text with html tags so that it can fit into the dialog window.
processAfterOneSecond(String) - Method in class GamePanel
Configure a schedule of a Timer object and start it.
processCorrect() - Method in class GamePanel
Called when a number is clicked and the total sum becomes equals to a question number.
processCorrectAfterOneSecond() - Method in class MyTimerTask
This method is called by a GamePanelActionLister object when a game panel is clicked and the total sum becomes equals to a question number.
processExceed() - Method in class GamePanel
Called when a number is clicked and the total sum exceeds a question number.
processExceedAfterOneSecond() - Method in class MyTimerTask
This method is called by a GamePanelActionLister object when a game panel is clicked and the total sum exceeds a question number.
processTimer() - Method in class MyTimerTask
This method defines tasks of the countdown timer on the main game window.

Q

questionNumber - Variable in class PlusNumber
Question number displayed on the "Question" area of the game window.

R

rb - Variable in class PlusNumber
"BGM ON/OFF" radio buttons on the splash screen.
rbMenu - Variable in class PlusNumber
Array of radio buttons used within menus.
RED - Static variable in interface Constants
Red colour object used for borders around numbers when they are selected on the game squares.
releaseSelectedNumbers() - Method in class PlusNumber
Release the selection of numbers so that they can be selected again in the next session.
removeSelectedNumbers() - Method in class PlusNumber
Delete selected numbers from the game panels.
resetGame() - Method in class PlusNumber
Reset the game state to the initial state before starting a new game.
run() - Method in class MyTimerTask
This method will be automatically called when the "scheduleAtFixedRate" or "schedule" method of the Timer class is called.

S

SELECTED - Static variable in interface Constants
Integer representing a state of a game square, which is "selected".
sessionState - Variable in class MyTimerTask
String representing the current session state.
setColour(Color) - Method in class GamePanel
Update the value of the "c" attribute.
setColourOne(Color) - Method in class PlusNumber
This method is called by the MyActionListener object dealing with "Background/Colour 1" option button.
setColourTwo(Color) - Method in class PlusNumber
This method is called by the MyActionListener object dealing with "Background/Colour 2" option button.
setGameOver(boolean) - Method in class PlusNumber
Update the value of the "gameOver" attribute.
setIsBgmOn(boolean) - Method in class PlusNumber
Update the value of the "isBgmOn" attribute.
setIsEffectOn(boolean) - Method in class PlusNumber
Update the value of the "isEffectOn" attribute.
setMessage(String) - Method in class WindowPanel
Update the value of the "message" attribute.
setNumDisplayed(int) - Method in class GamePanel
Update the value of the "numDisplayed" attribute.
setPanelSize() - Method in class StartPanel
Specify widths and heights of a start panel placed on the left of the splash screen.
setPanelSize() - Method in class WindowPanel
Specify widths and heights of window panels.
setQuestionNumber(int) - Method in class PlusNumber
Update the value of the "questionNumber" attribute.
setState(int) - Method in class GamePanel
Update the value of the "state" attribute.
setSum(int) - Method in class PlusNumber
Update the value of the "sum" attribute.
setTextToLabels() - Method in class InstructionDialog.InstructionPanel
Set prepared text to each of labels.
setTimeRemaining(int) - Method in class PlusNumber
Update the value of the "timeRemaining" attribute.
SMALL_FONT - Static variable in interface Constants
Small and bold Font object used for "Correct!!" and "Exceed!!" messages on the "Sum" area.
SMALLER_FONT - Static variable in interface Constants
Smaller Font object used on option buttons on the splash screen.
SMALLEST_FONT - Static variable in interface Constants
Smallest Font object used on dialogs.
SOUND_FILE_NAMES - Static variable in interface Constants
Array of String representing sound file names.
All sounds are taken from the website of "TAM Music Factory" that offers free sound resources.
startFirstGame() - Method in class PlusNumber
This method is called only once when "Start" button on the splash screen is clicked.
startNewGame() - Method in class PlusNumber
Start a new game when "START" is clicked on the splash window or "New Game" is selected from the menu
startNewSession() - Method in class PlusNumber
Redraw the "Question" area and "Sum" area to display new numbers for the next session.
StartPanel - Class in <Unnamed>
StartPanel is a class whose objects are panels on the splash screen.
StartPanel(int, PlusNumber) - Constructor for class StartPanel
Constructor that initialises all attributes, adds a mouse listener of myself, and sets a size of this panel.
StartPanel() - Constructor for class StartPanel
Default constructor that initialises attributes by caling a non-default constructor.
startTimer() - Method in class PlusNumber
Configure a schedule of a Timer object and start it.
state - Variable in class GamePanel
indicate if a game panel is either not selected, already selected, or alrady played.
stop() - Method in class PlusNumber
Override the "stop" method of the Applet class.
sum - Variable in class PlusNumber
The sum of selected numbers, displayed on the "Sum" area of the game window.

T

text - Variable in class InstructionDialog.InstructionPanel
Array of String that is text dislpayed on panels.
timeRemaining - Variable in class PlusNumber
Time remaining for a game in seconds, displayed on the "Time Remaining" area of the game window.
title - Variable in class MyDialog
Title of this dialog displayed on the caption bar.

V

valueChanged(ListSelectionEvent) - Method in class InstructionDialog
Override a method of the ListSelectionListener class that listens to change of values of a list.

W

windowPanel - Variable in class PlusNumber
Array of WindowPanel objects, which are left-side panels on the game window.
WindowPanel - Class in <Unnamed>
WindowPanel is a class whose objects are panels displayed on the left of the game window.
WindowPanel(int, PlusNumber) - Constructor for class WindowPanel
Constructor that initialises all attributes and specifies size of a penel.
WindowPanel() - Constructor for class WindowPanel
Default constructor that initialises attributes by caling a non-default constructor.

Y

YELLOW - Static variable in interface Constants
Yellow colour object used on the background of windows.

A B C D F G I K L M N O P Q R S T V W Y