Package arc
Class ApplicationCore
java.lang.Object
arc.ApplicationCore
- All Implemented Interfaces:
ApplicationListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ApplicationListener module) voiddispose()Called when theApplicationis destroyed.voidfileDropped(Fi file) Called when an external file is dropped into the window, e.g from the desktop.voidinit()Called when theApplicationis first created.voidpause()Called when theApplicationis paused, usually when it's not active or visible on screen.voidresize(int width, int height) Called when theApplicationis resized.voidresume()Called when theApplicationis resumed from a paused state, usually when it regains focus.abstract voidsetup()voidupdate()Called when theApplicationshould update itself.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ApplicationListenerCalled when theApplicationis first created. Only gets called if the application is created before the listener is added.- Specified by:
initin interfaceApplicationListener
-
resize
public void resize(int width, int height) Description copied from interface:ApplicationListenerCalled when theApplicationis resized. This can happen at any point during a non-paused state but will never happen before a call toApplicationListener.init().- Specified by:
resizein interfaceApplicationListener- Parameters:
width- the new width in pixelsheight- the new height in pixels
-
update
public void update()Description copied from interface:ApplicationListenerCalled when theApplicationshould update itself.- Specified by:
updatein interfaceApplicationListener
-
pause
public void pause()Description copied from interface:ApplicationListenerCalled when theApplicationis paused, usually when it's not active or visible on screen. An Application is also paused before it is destroyed.- Specified by:
pausein interfaceApplicationListener
-
resume
public void resume()Description copied from interface:ApplicationListenerCalled when theApplicationis resumed from a paused state, usually when it regains focus.- Specified by:
resumein interfaceApplicationListener
-
dispose
public void dispose()Description copied from interface:ApplicationListenerCalled when theApplicationis destroyed. Preceded by a call toApplicationListener.pause().- Specified by:
disposein interfaceApplicationListener
-
fileDropped
Description copied from interface:ApplicationListenerCalled when an external file is dropped into the window, e.g from the desktop.- Specified by:
fileDroppedin interfaceApplicationListener
-