A C D F G I K L M N P R S T U V W X Y

A

AbsoluteLayout - Class in framework.gui
This is a simple layout manager to absolutely position components.
AbsoluteLayout(int, int) - Constructor for class framework.gui.AbsoluteLayout
 
addGameEndListener(GameEndListener) - Method in class framework.Game
Adds the specified game end listener to receive game end events from this Game.
addLayoutComponent(String, Component) - Method in class framework.gui.AbsoluteLayout
 
addLayoutComponent(Component, Object) - Method in class framework.gui.AbsoluteLayout
 
addNotify() - Method in class framework.Game
Overridden to start the game thread when added to a container.
addRotation(double) - Method in class framework.Sprite
 
addSound(Sound) - Method in class framework.SoundGroup
 
addSound(Sound, String) - Method in class framework.SoundGroup
 
Animation - Class in framework
An Animation is a set of images displayed one after another.
Animation(Image[]) - Constructor for class framework.Animation
 
Animation(Image[], boolean) - Constructor for class framework.Animation
 
Animation(Image[], int) - Constructor for class framework.Animation
 
Animation(Image[], int, boolean) - Constructor for class framework.Animation
 
Animation(Image[], int[]) - Constructor for class framework.Animation
 
Animation(Image[], int[], boolean) - Constructor for class framework.Animation
 

C

cancelTimer(String) - Method in class framework.gui.DebugWindow
 
charSet - Static variable in class framework.gui.MainWindow
 
clone() - Method in class framework.Animation
 
createCompatibleImage(Image) - Static method in class framework.Images
Optimise an image for high-speed drawing to the screen.
createCompatibleImage(int, int, int) - Static method in class framework.Images
Create a blank image optimised for high-speed drawing to the screen.
createWindow(int, int, boolean) - Method in class framework.gui.MainWindow
 
createWindow(MainWindow, int, int, boolean) - Static method in class framework.gui.MainWindow
 
CustomButton - Class in framework.gui
A JButton that activates on pressing enter on all platforms.
CustomButton() - Constructor for class framework.gui.CustomButton
 
CustomButton(String) - Constructor for class framework.gui.CustomButton
 
CustomButton(Action) - Constructor for class framework.gui.CustomButton
 
CustomButton(Icon) - Constructor for class framework.gui.CustomButton
 
CustomButton(String, Icon) - Constructor for class framework.gui.CustomButton
 

D

DebugWindow - Class in framework.gui
A window for displaying debug messages and for timing code execution.
DebugWindow() - Constructor for class framework.gui.DebugWindow
 
DebugWindow(int) - Constructor for class framework.gui.DebugWindow
 
DEFAULT_FRAME_TIME - Static variable in class framework.Animation
 
destroy() - Method in class framework.gui.MainWindow
 
dispose() - Method in class framework.Game
Called just after the game loop ends.
doubleClicked() - Method in class framework.MouseState
 
draw(Graphics2D) - Method in class framework.Game
Update the graphical display.
draw(Graphics2D) - Method in class framework.Sprite
 
drawCentredImage(Graphics2D, Image, double, double) - Static method in class framework.Images
 
drawImpl() - Method in class framework.Game
Sets up the graphics context and calls Game.draw(Graphics2D).
drawRotatedImage(Graphics2D, Image, double, double, double) - Static method in class framework.Images
 
drawTiledImage(Graphics2D, Image, int, int) - Static method in class framework.Images
 
drawTiledImage(Graphics2D, Image, Shape, int, int) - Static method in class framework.Images
 

F

Focuser - Class in framework.gui
This class focuses a component when the mouse is clicked.
Focuser(Component) - Constructor for class framework.gui.Focuser
 
framework - package framework
Provides game classes.
framework.gui - package framework.gui
Provides classes for creating user interfaces.

G

Game - Class in framework
Base class that all games should extend.
Game() - Constructor for class framework.Game
Constructs a new game.
Game(int, int) - Constructor for class framework.Game
Constructs a new game with specified virtual size.
gameEnded(GameEndEvent) - Method in interface framework.GameEndListener
 
GameEndEvent - Class in framework
An event indicating that a game has ended.
GameEndEvent(Game) - Constructor for class framework.GameEndEvent
 
GameEndEvent(Game, Map) - Constructor for class framework.GameEndEvent
 
GameEndListener - Interface in framework
The listener interface for receiving GameEndEvent events.
GameEvent - Class in framework
An event which indicates some game state change has occurred.
GameEvent(Game) - Constructor for class framework.GameEvent
 
getActingHeight() - Method in class framework.Game
Get the height that the component thinks it is for the purposes of drawing.
getActingSize() - Method in class framework.Game
Get the size that the component thinks it is for the purposes of drawing.
getActingWidth() - Method in class framework.Game
Get the width that the component thinks it is for the purposes of drawing.
getActiveClips() - Method in class framework.Sound
 
getAllSounds() - Method in class framework.SoundGroup
 
getAnimation() - Method in class framework.Sprite
Get the current animation, if there is one.
getAppletInfo() - Method in class framework.gui.MainWindow
 
getBackgroundImage() - Method in class framework.gui.MenuScreen
 
getBufferGraphics() - Method in class framework.Game
Get a Graphics2D object that can be used to draw to the buffer.
getBytes() - Method in class framework.Sound
 
getClip() - Method in class framework.Sound
 
getClip(String) - Method in class framework.SoundGroup
 
getData(String) - Static method in class framework.gui.MainWindow
 
getData(String, int) - Static method in class framework.gui.MainWindow
 
getData(String, float) - Static method in class framework.gui.MainWindow
 
getDX() - Method in class framework.MouseState
 
getDY() - Method in class framework.MouseState
 
getEvents() - Method in class framework.KeyEventStore
Returns all KeyEvents received since the previous call of this method.
getEvents() - Method in class framework.MouseEventStore
Returns all MouseEvents received since the previous call of this method.
getFormat() - Method in class framework.Sound
 
getFrame() - Method in class framework.Animation
 
getFrames() - Method in class framework.Animation
 
getFrames(URL) - Static method in class framework.Images
 
getFrames(URL, int) - Static method in class framework.Images
 
getFrames(URL, int, int) - Static method in class framework.Images
 
getFrames(URL, int, int, int) - Static method in class framework.Images
 
getFrames(File) - Static method in class framework.Images
 
getFrames(File, int) - Static method in class framework.Images
 
getFrames(File, int, int) - Static method in class framework.Images
 
getFrames(File, int, int, int) - Static method in class framework.Images
 
getFrames(InputStream) - Static method in class framework.Images
 
getFrames(InputStream, int) - Static method in class framework.Images
 
getFrames(InputStream, int, int) - Static method in class framework.Images
 
getFrames(InputStream, int, int, int) - Static method in class framework.Images
 
getFrameTimes() - Method in class framework.Animation
 
getGame() - Method in class framework.GameEvent
 
getHeight() - Method in class framework.Sprite
 
getImage() - Method in class framework.Animation
 
getImage(URL) - Static method in class framework.Images
 
getImage(File) - Static method in class framework.Images
 
getImage(InputStream) - Static method in class framework.Images
 
getImage(String, Class) - Static method in class framework.Images
 
getImage() - Method in class framework.Sprite
 
getInstance() - Static method in class framework.gui.MainWindow
 
getLastKnownPosition() - Method in class framework.MouseState
Returns the last position the mouse was known to be at.
getLayoutAlignmentX(Container) - Method in class framework.gui.AbsoluteLayout
 
getLayoutAlignmentY(Container) - Method in class framework.gui.AbsoluteLayout
 
getMaximumSize() - Method in class framework.gui.ImageButton
 
getMessagesEnabled() - Method in class framework.gui.DebugWindow
 
getMinimumSize() - Method in class framework.gui.ImageButton
 
getMovement() - Method in class framework.MouseState
 
getNanoTime() - Static method in class framework.Time
Get current time in nanoseconds.
getPausedClips() - Method in class framework.Sound
 
getPosition() - Method in class framework.MouseState
Returns the mouse position.
getPosition() - Method in class framework.Sprite
 
getPreferredSize() - Method in class framework.Game
Overridden to return the virtual size if it is set.
getPreferredSize() - Method in class framework.gui.ImageButton
 
getProperties() - Method in class framework.GameEndEvent
 
getProperty(String) - Method in class framework.GameEndEvent
 
getRotation() - Method in class framework.Sprite
 
getSound(String) - Method in class framework.SoundGroup
 
getTime() - Static method in class framework.Time
Get current time in milliseconds.
getTimersEnabled() - Method in class framework.gui.DebugWindow
 
getTitle() - Method in class framework.gui.MainWindow
 
getTransform() - Method in class framework.Sprite
 
getTransparency(Image) - Static method in class framework.Images
Get the transparency level of an image.
getVariable(String) - Method in class framework.gui.DebugWindow
 
getVariablesEnabled() - Method in class framework.gui.DebugWindow
 
getVolume() - Method in class framework.Sound
 
getVolume() - Method in class framework.SoundGroup
 
getWheelRotation() - Method in class framework.MouseState
 
getWidth() - Method in class framework.Sprite
 
getWindow() - Static method in class framework.gui.MainWindow
 
getX() - Method in class framework.MouseState
Note: returns -1 if mouse is not over component
getX() - Method in class framework.Sprite
 
getY() - Method in class framework.MouseState
Note: returns -1 if mouse is not over component
getY() - Method in class framework.Sprite
 

I

ImageButton - Class in framework.gui
A JButton with images.
ImageButton(Image, Image) - Constructor for class framework.gui.ImageButton
 
Images - Class in framework
This class contains various methods for loading and manipulating images.
Images() - Constructor for class framework.Images
 
init() - Method in class framework.Game
Called just before the game loop is started.
init() - Method in class framework.gui.MainWindow
 
invalidateLayout(Container) - Method in class framework.gui.AbsoluteLayout
 
isApplet() - Static method in class framework.gui.MainWindow
 
isCurrentlyPressed(int) - Method in class framework.KeyboardState
 
isFlipped() - Method in class framework.Sprite
Indicates whether this sprite has been flipped horizontally.
isLooping() - Method in class framework.Animation
 
isMuted() - Method in class framework.Sound
 
isMuted() - Method in class framework.SoundGroup
 
isPressed(int) - Method in class framework.KeyboardState
 
isRunning() - Method in class framework.Animation
 
isRunning() - Method in class framework.Game
 

K

KeyboardState - Class in framework
Listens to KeyEvent events to build a model of the state of the keyboard.
KeyboardState() - Constructor for class framework.KeyboardState
 
KeyEventStore - Class in framework
Listens to KeyEvent events and stores them in a list.
KeyEventStore() - Constructor for class framework.KeyEventStore
 
keyPressed(KeyEvent) - Method in class framework.KeyboardState
Required for KeyListener interface.
keyPressed(KeyEvent) - Method in class framework.KeyEventStore
 
keyReleased(KeyEvent) - Method in class framework.KeyboardState
Required for KeyListener interface.
keyReleased(KeyEvent) - Method in class framework.KeyEventStore
 
keyTyped(KeyEvent) - Method in class framework.KeyboardState
Required for KeyListener interface.
keyTyped(KeyEvent) - Method in class framework.KeyEventStore
 

L

layoutContainer(Container) - Method in class framework.gui.AbsoluteLayout
 
leftClicked() - Method in class framework.MouseState
 
leftDown() - Method in class framework.MouseState
 
loadSound(URL, String) - Method in class framework.SoundGroup
 
loadSound(URL, String, boolean) - Method in class framework.SoundGroup
 

M

MainWindow - Class in framework.gui
This class can form the root container for an application or applet.
MainWindow() - Constructor for class framework.gui.MainWindow
 
MainWindow(String) - Constructor for class framework.gui.MainWindow
 
maximumLayoutSize(Container) - Method in class framework.gui.AbsoluteLayout
 
MenuScreen - Class in framework.gui
Changes some behaviours to be more suitable for a menu screen.
MenuScreen() - Constructor for class framework.gui.MenuScreen
 
MenuScreen(int, int) - Constructor for class framework.gui.MenuScreen
 
MESSAGES - Static variable in class framework.gui.DebugWindow
 
middleClicked() - Method in class framework.MouseState
 
middleDown() - Method in class framework.MouseState
 
minimumLayoutSize(Container) - Method in class framework.gui.AbsoluteLayout
 
mouseClicked(MouseEvent) - Method in class framework.gui.Focuser
 
mouseClicked(MouseEvent) - Method in class framework.gui.ImageButton
 
mouseClicked(MouseEvent) - Method in class framework.MouseEventStore
 
mouseClicked(MouseEvent) - Method in class framework.MouseState
Required for MouseListener interface.
mouseDragged(MouseEvent) - Method in class framework.gui.ImageButton
 
mouseDragged(MouseEvent) - Method in class framework.MouseEventStore
 
mouseDragged(MouseEvent) - Method in class framework.MouseState
Required for MouseMotionListener interface.
mouseEntered(MouseEvent) - Method in class framework.gui.ImageButton
 
mouseEntered(MouseEvent) - Method in class framework.MouseEventStore
 
mouseEntered(MouseEvent) - Method in class framework.MouseState
Required for MouseListener interface.
MouseEventStore - Class in framework
Listens to MouseEvent events and stores them in a list.
MouseEventStore() - Constructor for class framework.MouseEventStore
 
mouseExited(MouseEvent) - Method in class framework.gui.ImageButton
 
mouseExited(MouseEvent) - Method in class framework.MouseEventStore
 
mouseExited(MouseEvent) - Method in class framework.MouseState
Required for MouseListener interface.
mouseMoved(MouseEvent) - Method in class framework.gui.ImageButton
 
mouseMoved(MouseEvent) - Method in class framework.MouseEventStore
 
mouseMoved(MouseEvent) - Method in class framework.MouseState
Required for MouseMotionListener interface.
mousePressed(MouseEvent) - Method in class framework.gui.ImageButton
 
mousePressed(MouseEvent) - Method in class framework.MouseEventStore
 
mousePressed(MouseEvent) - Method in class framework.MouseState
Required for MouseListener interface.
mouseReleased(MouseEvent) - Method in class framework.gui.ImageButton
 
mouseReleased(MouseEvent) - Method in class framework.MouseEventStore
 
mouseReleased(MouseEvent) - Method in class framework.MouseState
Required for MouseListener interface.
MouseState - Class in framework
Listens to MouseEvent events to build a model of the state of the mouse.
MouseState() - Constructor for class framework.MouseState
 
mouseWheelMoved(MouseWheelEvent) - Method in class framework.MouseEventStore
 
mouseWheelMoved(MouseWheelEvent) - Method in class framework.MouseState
Required for MouseMotionListener interface.

N

nanoPrecision - Static variable in class framework.Time
True if we have access to the System.nanoTime() clock.
nextFrame() - Method in class framework.Animation
Change to the next frame of the animation.

P

paintComponent(Graphics) - Method in class framework.gui.ImageButton
 
paintComponent(Graphics) - Method in class framework.gui.MenuScreen
 
paintComponent(Graphics) - Method in class framework.gui.TextButton
 
paintComponent(Graphics) - Method in class framework.gui.TextLabel
 
pause() - Method in class framework.Animation
 
pauseAll() - Method in class framework.Sound
 
pauseAll() - Method in class framework.SoundGroup
 
play() - Method in class framework.Animation
 
preferredLayoutSize(Container) - Method in class framework.gui.AbsoluteLayout
 
prepare() - Method in class framework.Sound
Calling this method will attempt to load a Clip object for this Sound.
processEndEvent(GameEndEvent) - Method in class framework.Game
Processes game end events by dispatching them to any registered GameEndListener objects.
processMouseEvent(MouseEvent) - Method in class framework.Game
Overridden to fix the mouse position if necessary.
processMouseMotionEvent(MouseEvent) - Method in class framework.Game
Overridden to fix the mouse position if necessary.
processMouseWheelEvent(MouseWheelEvent) - Method in class framework.Game
Overridden to fix the mouse position if necessary.
propertyChange(PropertyChangeEvent) - Method in class framework.gui.ImageButton
 

R

removeGameEndListener(GameEndListener) - Method in class framework.Game
Removes the specified game end listener so that it no longer receives game end events from this Game.
removeLayoutComponent(Component) - Method in class framework.gui.AbsoluteLayout
 
removeNotify() - Method in class framework.Game
Overridden to stop the game thread when removed from a container.
removeVariable(String) - Method in class framework.gui.DebugWindow
 
reset(boolean) - Method in class framework.Animation
 
resumeAll() - Method in class framework.Sound
 
resumeAll() - Method in class framework.SoundGroup
 
rightClicked() - Method in class framework.MouseState
 
rightDown() - Method in class framework.MouseState
 
rotate(Image, double) - Static method in class framework.Images
 
rotate(Image, double, boolean) - Static method in class framework.Images
 
rotate(Image[], double) - Static method in class framework.Images
 
rotate(Image[], double, boolean) - Static method in class framework.Images
 
rotation - Variable in class framework.Sprite
 
run() - Method in class framework.Game
This method runs on the game thread and controls the game loop.

S

saveData(String, int) - Static method in class framework.gui.MainWindow
 
saveData(String, float) - Static method in class framework.gui.MainWindow
 
saveData(String, String) - Static method in class framework.gui.MainWindow
 
sendMessage(String) - Method in class framework.gui.DebugWindow
 
setActingSize(int, int) - Method in class framework.Game
Sets the size that this component will pretend to be.
setAnimation(Animation) - Method in class framework.Sprite
Set the displayed animation, replacing the current image or animation.
setBackgroundImage(Image) - Method in class framework.gui.MenuScreen
 
setFlipped(boolean) - Method in class framework.Sprite
Sets whether this sprite should be flipped horizontally.
setFontSize(float) - Method in class framework.gui.TextButton
 
setFontSize(float) - Method in class framework.gui.TextLabel
 
setFrame(int) - Method in class framework.Animation
 
setFrameTime(int) - Method in class framework.Animation
 
setFrameTimes(int[]) - Method in class framework.Animation
 
setImage(Image) - Method in class framework.Sprite
Set the displayed image, replacing the current image or animation.
setLooping(boolean) - Method in class framework.Animation
 
setMessagesEnabled(boolean) - Method in class framework.gui.DebugWindow
 
setMuted(boolean) - Method in class framework.Sound
 
setMuted(boolean) - Method in class framework.SoundGroup
 
setOrigin(float, float) - Method in class framework.Sprite
Set the point on the image which position and rotation operations should treat as the centre.
setPosition(float, float) - Method in class framework.Sprite
 
setPosition(Point2D) - Method in class framework.Sprite
 
setProperty(String, Object) - Method in class framework.GameEndEvent
 
setReferencePoint(float, float) - Method in class framework.Sprite
Deprecated.  
setRotation(double) - Method in class framework.Sprite
 
setScreen(Component) - Static method in class framework.gui.MainWindow
 
setSize(float, float) - Method in class framework.Sprite
 
setTimersEnabled(boolean) - Method in class framework.gui.DebugWindow
 
setTitle(String) - Method in class framework.gui.MainWindow
 
setVariable(String, Object) - Method in class framework.gui.DebugWindow
 
setVariablesEnabled(boolean) - Method in class framework.gui.DebugWindow
 
setVirtualSize(int, int) - Method in class framework.Game
Deprecated.  
setVolume(float) - Method in class framework.Sound
 
setVolume(float) - Method in class framework.SoundGroup
 
setX(float) - Method in class framework.Sprite
 
setY(float) - Method in class framework.Sprite
 
showBuffer() - Method in class framework.Game
Makes the contents of the buffer visible.
Sound - Class in framework
A Sound object is created for each audio file used.
Sound(File) - Constructor for class framework.Sound
 
Sound(InputStream) - Constructor for class framework.Sound
 
Sound(URL) - Constructor for class framework.Sound
 
Sound(AudioInputStream) - Constructor for class framework.Sound
 
SoundGroup - Class in framework
A collection of Sound objects which can be acted on collectively.
SoundGroup() - Constructor for class framework.SoundGroup
 
split(BufferedImage) - Static method in class framework.Images
 
split(BufferedImage, int) - Static method in class framework.Images
 
split(BufferedImage, int, int) - Static method in class framework.Images
 
split(BufferedImage, int, int, int) - Static method in class framework.Images
 
Sprite - Class in framework
A Sprite object is an image or animation together with a location.
Sprite() - Constructor for class framework.Sprite
 
Sprite(float, float) - Constructor for class framework.Sprite
 
Sprite(Image) - Constructor for class framework.Sprite
 
Sprite(Image, float, float) - Constructor for class framework.Sprite
 
Sprite(Animation) - Constructor for class framework.Sprite
 
Sprite(Animation, float, float) - Constructor for class framework.Sprite
 
start() - Method in class framework.gui.MainWindow
 
start() - Method in class framework.Sound
 
startTiming(String) - Method in class framework.gui.DebugWindow
 
stop() - Method in class framework.gui.MainWindow
 
stopAll() - Method in class framework.Sound
 
stopAll() - Method in class framework.SoundGroup
 
stopTiming(String) - Method in class framework.gui.DebugWindow
 

T

TextButton - Class in framework.gui
A JButton with changeable font size.
TextButton(String) - Constructor for class framework.gui.TextButton
 
TextButton(String, String, ActionListener) - Constructor for class framework.gui.TextButton
 
TextButton(String, String, ActionListener, float) - Constructor for class framework.gui.TextButton
 
TextLabel - Class in framework.gui
A JLabel with changeable font size.
TextLabel() - Constructor for class framework.gui.TextLabel
 
TextLabel(String) - Constructor for class framework.gui.TextLabel
 
TextLabel(float) - Constructor for class framework.gui.TextLabel
 
TextLabel(String, float) - Constructor for class framework.gui.TextLabel
 
Time - Class in framework
Provides methods to get the time as accurately as is possible.
Time() - Constructor for class framework.Time
 
TIMERS - Static variable in class framework.gui.DebugWindow
 
toString(long) - Static method in class framework.Time
Convert from an number of milliseconds to a String in "[HH:]MM:SS" format.
translate(float, float) - Method in class framework.Sprite
 

U

update(int) - Method in class framework.Animation
Advance the animation by elapsedTime milliseconds.
update(int) - Method in class framework.Game
Update the game state.
update() - Method in class framework.KeyboardState
Process events which have been received since the last call to this method.
update() - Method in class framework.MouseState
Process events which have been received since the last call to this method.
update(int) - Method in class framework.Sprite
 
updateImage() - Method in class framework.gui.ImageButton
 

V

VARIABLES - Static variable in class framework.gui.DebugWindow
 

W

wasTyped(int) - Method in class framework.KeyboardState
 
wasTyped(char) - Method in class framework.KeyboardState
 
windowGainedFocus(WindowEvent) - Method in class framework.gui.MainWindow
 
windowLostFocus(WindowEvent) - Method in class framework.gui.MainWindow
 

X

x - Variable in class framework.Sprite
 

Y

y - Variable in class framework.Sprite
 

A C D F G I K L M N P R S T U V W X Y