Package arc
Class ApplicationCore
java.lang.Object
arc.ApplicationCore
- All Implemented Interfaces:
ApplicationListener
- Direct Known Subclasses:
ClientLauncher
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ApplicationListener module) void
dispose()
Called when theApplication
is destroyed.void
fileDropped
(Fi file) Called when an external file is dropped into the window, e.g from the desktop.void
init()
Called when theApplication
is first created.void
pause()
Called when theApplication
is paused, usually when it's not active or visible on screen.void
resize
(int width, int height) Called when theApplication
is resized.void
resume()
Called when theApplication
is resumed from a paused state, usually when it regains focus.abstract void
setup()
void
update()
Called when theApplication
should update itself.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface arc.ApplicationListener
exit
-
Field Details
-
modules
-
-
Constructor Details
-
ApplicationCore
public ApplicationCore()
-
-
Method Details
-
add
-
setup
public abstract void setup() -
init
public void init()Description copied from interface:ApplicationListener
Called when theApplication
is first created. Only gets called if the application is created before the listener is added.- Specified by:
init
in interfaceApplicationListener
-
resize
public void resize(int width, int height) Description copied from interface:ApplicationListener
Called when theApplication
is resized. This can happen at any point during a non-paused state but will never happen before a call toApplicationListener.init()
.- Specified by:
resize
in interfaceApplicationListener
- Parameters:
width
- the new width in pixelsheight
- the new height in pixels
-
update
public void update()Description copied from interface:ApplicationListener
Called when theApplication
should update itself.- Specified by:
update
in interfaceApplicationListener
-
pause
public void pause()Description copied from interface:ApplicationListener
Called when theApplication
is paused, usually when it's not active or visible on screen. An Application is also paused before it is destroyed.- Specified by:
pause
in interfaceApplicationListener
-
resume
public void resume()Description copied from interface:ApplicationListener
Called when theApplication
is resumed from a paused state, usually when it regains focus.- Specified by:
resume
in interfaceApplicationListener
-
dispose
public void dispose()Description copied from interface:ApplicationListener
Called when theApplication
is destroyed. Preceded by a call toApplicationListener.pause()
.- Specified by:
dispose
in interfaceApplicationListener
-
fileDropped
Description copied from interface:ApplicationListener
Called when an external file is dropped into the window, e.g from the desktop.- Specified by:
fileDropped
in interfaceApplicationListener
-