When invoked calculates and returns the time that has elapsed since the last
invokation in milliseconds (actual resolutin may vary from implementation to
implementation).
The default constructor that calls the superclass constructor that
sets the title of the frame to "GameFrame" and sets the created
frame to be non-resizable.
The default constructor that calls the superclass constructor that
sets the title of the frame to "GameFrame" and sets the created
frame to be non-resizable.
The default constructor that calls the superclass constructor that
sets the title of the frame to "GameFrame" and sets the created
frame to be non-resizable.
Constructs a counter that uses the currently set font bitmap for numbers,
has the given initial value, is located at the given screen
coordinates and uses the given number of digits.
Interface for a generic timer class that times the (average or exact, depending
on implementation) time between the calls made to the calculateTime() method.
Interface for a generic timer class that times the (average or exact, depending
on implementation) time between the calls made to the calculateTime() method.
The default constructor that calls the superclass constructor that
sets the title of the frame to the title in the settings and sets the created
frame to be non-resizable.
Defines an interface to a bitmap image that can blit (draw) or strecth (scale) itself
in the graphics engine's backbuffer or into drawable bitmap, but also can be blitted
into.
Exits cleanly from application that has used GameFrame by first
finalizing the whole library (that ensures all native resources are
freed) and then calling carbage collector and waiting for a while
and THEN exiting the application just like System.exit() method.
For use by subclasses that don't want to initialize the GameFrame
in this classes constructors, but want to call the initFromSettings()
by themselves when they are ready.
This class offers the methods for a game developer to define what kind
of features he wants to be enabled (fullscreen or non-fullscreen graphics
modes, proprietary engines or plain Java engines etc.) the resolution of
the created graphics engine.
Default values are:
Fullscreen modes allowed.
Microsoft Java allowed.
Java Media Framework 1.1 allowed.
Native libraries allowed.
Required resolution "640x480".
16 bits per pixel.
No preferred refresh rate.
Returns all keyboard type of devices found on the system as polled
devices (whenever the program that wants to know about
the state of the device it must ask it from the device).
Returns all pointer type of devices found on the system as polled
devices (whenever the program that wants to know about
the state of the device it must ask it from the device).
Returns the number of times the button has been stroken since last reading
(after last call made to wasButtonDown or getButtonDownCount methods with the
same button id number).
Returns the number of times the button has been stroken since last reading
(after last call made to wasButtonDown or getButtonDownCount methods with the
same button id number).
Returns the number of times the button has been stroken since last reading
(after last call made to wasButtonDown or getButtonDownCount methods with the
same button id number).
Returns the default keyboard type of device in the system as polled
device (whenever the program that wants to know about the state of
the device it must ask it from the device).
Returns the default pointer type of device in the system as
an polled device (whenever the program that wants to know about
the state of the device it must ask it from the device).
Returns the number of times the key has been stroken since last reading
(after last call made to isKeyDown or getKeyDownCount methods with the
same key code).
Returns the number of times the key has been stroken since last reading
(after last call made to isKeyDown or getKeyDownCount methods with the
same key code).
Returns the number of times the key has been stroken since last reading
(after last call made to isKeyDown or getKeyDownCount methods with the
same key code).
Returns a bitmap that represents a part of this bitmap by using a new
control object, but using the old bitmap data (saves memory, but is not
that fast on many platforms.
Returns a bitmap that represents a part of this bitmap by using a new
control object, but using the old bitmap data (saves memory, but is not
that fast on many platforms.
Returns a bitmap that represents a part of this bitmap by using a new
control object, but using the old bitmap data (saves memory, but is not
that fast on many platforms.
Returns a bitmap that represents a part of this bitmap by using a new
control object, but using the old bitmap data (saves memory, but is not
that fast on many platforms.
Returns a bitmap that represents a part of this bitmap by using a new
control object, but using the old bitmap data (saves memory, but is not
that fast on many platforms, on the platforms where this method is really
too slow for interactive use the implementation might actually copy the
data as with the getSubBitmapClose() method to speed things up).
Returns a bitmap that represents a part of this bitmap by using a new
control object, but using the old bitmap data (saves memory, but is resulting
bitmap is not that fast to blit on many platforms, on the platforms
where this method is really too slow for interactive use the implementation
might actually copy the data as with the getSubBitmapClose() method to
speed things up to interactive level).
Returns any typed alphanumeric keys (including space and dot) as int values that
correspond to that keys char value or -1 if no such keys were pressed
after last invokation of this method.
Returns any typed alphanumeric keys (including space and dot) as int values that
correspond to that keys char value or -1 if no such keys were pressed
after last invokation of this method.
Returns any typed alphanumeric keys (including space and dot) as int values that
correspond to that keys char value or -1 if no such keys were pressed
after last invokation of this method.
Initializes the recommended engines for the current platform, so
that when any of the static getXXXXEngine() methods are called no
exceptions are thrown.
Returns true if the key is down or if the key was briefly kept down
after last reading of the keys state (after last call made to isKeyDown or
getKeyDownCount methods with the same key code).
Load a bitmap (used bitmap format is Windows BMP, alpha keycolor is set to the
pixel color at bitmap location 0,0 which is the pixel at upper left corner of
the bitmap)from the given file and return an abstract reference for the loaded bitmap.
Load a bitmap (used bitmap format is Windows BMP, alpha keycolor is set to the
pixel color at bitmap location 0,0 which is the pixel at upper left corner of
the bitmap)from the given file and return an abstract reference for the loaded bitmap.
Load a bitmap (used bitmap format is Windows BMP, alpha keycolor is set to the
pixel color at bitmap location 0,0 which is the pixel at upper left corner of
the bitmap)from the given file and return an abstract reference for the loaded bitmap.
Load a bitmap (used bitmap format is Windows BMP, alpha keycolor is set to the
pixel color at bitmap location 0,0 which is the pixel at upper left corner of
the bitmap)from the given file and return an abstract reference for the loaded bitmap.
Load a bitmap (used bitmap format is Windows BMP, no alpha values are loaded)
from the given file and return an abstract reference for the loaded bitmap.
Load a bitmap (used bitmap format is Windows BMP, no alpha values are loaded)
from the given file and return an abstract reference for the loaded bitmap.
Load a bitmap (used bitmap format is Windows BMP, no alpha values are loaded)
from the given file and return an abstract reference for the loaded bitmap.
Load a bitmap (used bitmap format is Windows BMP, no alpha values are loaded)
from the given file and return an abstract reference for the loaded bitmap.
Loads the given file containing a Windows BMP formatted bitmap and
returns an object containing the raw pixel data and the dimensions
of the loaded bitmap.
Loads the given file containing a Windows BMP formatted bitmap and
returns an object containing the raw pixel data and the dimensions
of the loaded bitmap.
Loads the file at the given URL containing a Windows BMP formatted bitmap and
returns an object containing the raw pixel data and the dimensions
of the loaded bitmap.
Loads the file at the given URL containing a Windows BMP formatted bitmap and
returns an object containing the raw pixel data and the dimensions
of the loaded bitmap.
First tries to load a music file as streamed Microsoft RIFF WAV file,
if no such file is found from the current data directory, tries to load
a music file in MIDI format.
First tries to load a music file as streamed Microsoft RIFF WAV file,
if no such file is found from the current data directory, tries to load
a music file in MIDI format.
First tries to load a music file as streamed Microsoft RIFF WAV file,
if no such file is found from the current data directory, tries to load
a music file in MIDI format.
First tries to load a music file as streamed Microsoft RIFF WAV file,
if no such file is found from the current data directory, tries to load
a music file in MIDI format.
Time in TMSF format is expressed as a doubleword value with the least
significant byte containing tracks, the next least significant byte
containing minutes, the next least significant byte containing seconds,
and the most significant byte containing frames.
This keeps this class and everything it references from being
garbage collected by having an active thread and containing
all the objects being preserved in a member varialbe.
This method traps false usage where the user tries to blit a bitmap that was not
loaded by this graphics engine to a bitmap that was created by this graphics engine.
This method traps false usage where the user tries to blit a bitmap that was not
loaded by this graphics engine to a bitmap that was created by this graphics engine.
This method traps false usage where the user tries to blit a bitmap that was not
loaded by this graphics engine to a bitmap that was created by this graphics engine.
This method traps false usage where the user tries to blit a bitmap that was not
loaded by this graphics engine to a bitmap that was created by this graphics engine.
This method traps false usage where the user tries to blit a bitmap that was not
loaded by this graphics engine to a bitmap that was created by this graphics engine.
This method traps false usage where the user tries to blit a bitmap that was not
loaded by this graphics engine to a bitmap that was created by this graphics engine.
Interface for a generic timer class that times the (average or exact, depending
on implementation) time between the calls made to the calculateTime() method.
Returns true if the button was briefly kept down after last reading
of the buttons state and that event hasn't been read by any other method
(after last call made to isButtonDown, wasButtonDown or getButtonDownCount
methods with the same button id number).
Returns true if the button was briefly kept down after last reading
of the buttons state and that event hasn't been read by any other method
(after last call made to isButtonDown, wasButtonDown or getButtonDownCount
methods with the same button id number).
Returns true if the button was briefly kept down after last reading
of the buttons state (after last call made to wasButtonDown or
getButtonDownCount methods with the same button id number).
Returns true if the key was briefly kept down
after last reading of the keys state (after last call made to isKeyDown or
getKeyDownCount methods with the same key code).
Returns true if the key was briefly kept down
after last reading of the keys state (after last call made to isKeyDown or
getKeyDownCount methods with the same key code).
Returns true if the key was briefly kept down after last reading of the keys
state (after last call made to isKeyDown or getKeyDownCount methods with the
same key code).