de.lessvoid.nifty.examples.mouse
Class MouseStartScreen
java.lang.Object
de.lessvoid.nifty.examples.mouse.MouseStartScreen
- All Implemented Interfaces:
- NiftyExample, ScreenController
public class MouseStartScreen
- extends Object
- implements ScreenController, NiftyExample
ScreenController for Hello World Example.
- Author:
- void
Method Summary |
void |
bind(Nifty newNifty,
Screen newScreen)
|
String |
getMainXML()
The resource path of the XML file that is supposed to be load for the example. |
String |
getStartScreen()
The start screen that is supposed to be load initial. |
String |
getTitle()
The title of this demonstration example. |
void |
mouseOver(Element element,
NiftyMouseInputEvent event)
|
void |
mouseWheel(Element element,
NiftyMouseInputEvent event)
|
void |
onElementMouse(String id,
NiftyMouseEvent event)
|
void |
onElementMouseMove(String id,
NiftyMouseMovedEvent event)
|
void |
onElementMouseWheel(String id,
NiftyMouseWheelEvent event)
|
void |
onElementPrimaryClick(String id,
NiftyMousePrimaryClickedEvent event)
|
void |
onElementPrimaryClickMove(String id,
NiftyMousePrimaryClickedMovedEvent event)
|
void |
onElementPrimaryRelease(String id,
NiftyMousePrimaryReleaseEvent event)
|
void |
onElementSecondaryClick(String id,
NiftyMouseSecondaryClickedEvent event)
|
void |
onElementSecondaryClickMove(String id,
NiftyMouseSecondaryClickedMovedEvent event)
|
void |
onElementSecondaryRelease(String id,
NiftyMouseSecondaryReleaseEvent event)
|
void |
onElementTertiaryClick(String id,
NiftyMouseTertiaryClickedEvent event)
|
void |
onElementTertiaryClickMove(String id,
NiftyMouseTertiaryClickedMovedEvent event)
|
void |
onElementTertiaryRelease(String id,
NiftyMouseTertiaryReleaseEvent event)
|
void |
onEndScreen()
|
void |
onStartScreen()
|
void |
prepareStart(Nifty nifty)
This function is called right before the example itself is executed. |
void |
primaryClick()
|
void |
primaryClickMouseMoved()
|
void |
primaryRelease()
|
void |
quit()
|
void |
secondaryClick()
|
void |
secondaryClickMouseMove()
|
void |
secondaryRelease()
|
void |
tertiaryClick()
|
void |
tertiaryClickMouseMove()
|
void |
tertiaryRelease()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MouseStartScreen
public MouseStartScreen()
bind
public void bind(Nifty newNifty,
Screen newScreen)
- Specified by:
bind
in interface ScreenController
onStartScreen
public void onStartScreen()
- Specified by:
onStartScreen
in interface ScreenController
onEndScreen
public void onEndScreen()
- Specified by:
onEndScreen
in interface ScreenController
quit
public void quit()
primaryClick
public void primaryClick()
primaryRelease
public void primaryRelease()
primaryClickMouseMoved
public void primaryClickMouseMoved()
secondaryClick
public void secondaryClick()
secondaryClickMouseMove
public void secondaryClickMouseMove()
secondaryRelease
public void secondaryRelease()
tertiaryClick
public void tertiaryClick()
tertiaryClickMouseMove
public void tertiaryClickMouseMove()
tertiaryRelease
public void tertiaryRelease()
mouseOver
public void mouseOver(Element element,
NiftyMouseInputEvent event)
mouseWheel
public void mouseWheel(Element element,
NiftyMouseInputEvent event)
onElementPrimaryClick
public void onElementPrimaryClick(String id,
NiftyMousePrimaryClickedEvent event)
onElementPrimaryClickMove
public void onElementPrimaryClickMove(String id,
NiftyMousePrimaryClickedMovedEvent event)
onElementPrimaryRelease
public void onElementPrimaryRelease(String id,
NiftyMousePrimaryReleaseEvent event)
onElementSecondaryClick
public void onElementSecondaryClick(String id,
NiftyMouseSecondaryClickedEvent event)
onElementSecondaryClickMove
public void onElementSecondaryClickMove(String id,
NiftyMouseSecondaryClickedMovedEvent event)
onElementSecondaryRelease
public void onElementSecondaryRelease(String id,
NiftyMouseSecondaryReleaseEvent event)
onElementTertiaryClick
public void onElementTertiaryClick(String id,
NiftyMouseTertiaryClickedEvent event)
onElementTertiaryClickMove
public void onElementTertiaryClickMove(String id,
NiftyMouseTertiaryClickedMovedEvent event)
onElementTertiaryRelease
public void onElementTertiaryRelease(String id,
NiftyMouseTertiaryReleaseEvent event)
onElementMouseMove
public void onElementMouseMove(String id,
NiftyMouseMovedEvent event)
onElementMouseWheel
public void onElementMouseWheel(String id,
NiftyMouseWheelEvent event)
onElementMouse
public void onElementMouse(String id,
NiftyMouseEvent event)
getStartScreen
public String getStartScreen()
- Description copied from interface:
NiftyExample
- The start screen that is supposed to be load initial.
- Specified by:
getStartScreen
in interface NiftyExample
- Returns:
- the name of the start screen
getMainXML
public String getMainXML()
- Description copied from interface:
NiftyExample
- The resource path of the XML file that is supposed to be load for the example.
- Specified by:
getMainXML
in interface NiftyExample
- Returns:
- the resource path to the main XML or
null
in case no XML file is supposed to be load
getTitle
public String getTitle()
- Description copied from interface:
NiftyExample
- The title of this demonstration example.
- Specified by:
getTitle
in interface NiftyExample
- Returns:
- the title of this example
prepareStart
public void prepareStart(Nifty nifty)
- Description copied from interface:
NiftyExample
- This function is called right before the example itself is executed. In case building or changing the GUI before
its displayed is required: This is the place.
- Specified by:
prepareStart
in interface NiftyExample
- Parameters:
nifty
- the used instance of the Nifty-GUI
Copyright © 2012. All Rights Reserved.