com.jme3.cinematic.events
Class GuiTrack

java.lang.Object
  extended by com.jme3.cinematic.events.AbstractCinematicEvent
      extended by com.jme3.cinematic.events.GuiTrack
All Implemented Interfaces:
CinematicEvent, Savable

public class GuiTrack
extends AbstractCinematicEvent


Field Summary
protected  de.lessvoid.nifty.Nifty nifty
           
protected  java.lang.String screen
           
 
Fields inherited from class com.jme3.cinematic.events.AbstractCinematicEvent
initialDuration, listeners, loopMode, playState, resuming, speed, time
 
Constructor Summary
GuiTrack()
           
GuiTrack(de.lessvoid.nifty.Nifty nifty, java.lang.String screen)
           
GuiTrack(de.lessvoid.nifty.Nifty nifty, java.lang.String screen, float initialDuration)
           
GuiTrack(de.lessvoid.nifty.Nifty nifty, java.lang.String screen, float initialDuration, LoopMode loopMode)
           
GuiTrack(de.lessvoid.nifty.Nifty nifty, java.lang.String screen, LoopMode loopMode)
           
 
Method Summary
 void onPause()
          place here the code you want to execute when the event is paused
 void onPlay()
          Place here the code you want to execute when the event is started
 void onStop()
          Place here the code you want to execute when the event is stoped.
 void onUpdate(float tpf)
          Place here the code you want to execute on update (only called when the event is playing)
 void read(JmeImporter im)
          for serialization only
 void setNifty(de.lessvoid.nifty.Nifty nifty)
           
 void setScreen(java.lang.String screen)
           
 void write(JmeExporter ex)
          for serialization only
 
Methods inherited from class com.jme3.cinematic.events.AbstractCinematicEvent
addListener, getDuration, getInitialDuration, getLoopMode, getPlayState, getSpeed, getTime, initEvent, internalUpdate, pause, play, removeListener, setInitialDuration, setLoopMode, setSpeed, setTime, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

screen

protected java.lang.String screen

nifty

protected de.lessvoid.nifty.Nifty nifty
Constructor Detail

GuiTrack

public GuiTrack()

GuiTrack

public GuiTrack(de.lessvoid.nifty.Nifty nifty,
                java.lang.String screen)

GuiTrack

public GuiTrack(de.lessvoid.nifty.Nifty nifty,
                java.lang.String screen,
                float initialDuration)

GuiTrack

public GuiTrack(de.lessvoid.nifty.Nifty nifty,
                java.lang.String screen,
                LoopMode loopMode)

GuiTrack

public GuiTrack(de.lessvoid.nifty.Nifty nifty,
                java.lang.String screen,
                float initialDuration,
                LoopMode loopMode)
Method Detail

onPlay

public void onPlay()
Description copied from class: AbstractCinematicEvent
Place here the code you want to execute when the event is started

Specified by:
onPlay in class AbstractCinematicEvent

onStop

public void onStop()
Description copied from class: AbstractCinematicEvent
Place here the code you want to execute when the event is stoped.

Specified by:
onStop in class AbstractCinematicEvent

onPause

public void onPause()
Description copied from class: AbstractCinematicEvent
place here the code you want to execute when the event is paused

Specified by:
onPause in class AbstractCinematicEvent

setNifty

public void setNifty(de.lessvoid.nifty.Nifty nifty)

setScreen

public void setScreen(java.lang.String screen)

onUpdate

public void onUpdate(float tpf)
Description copied from class: AbstractCinematicEvent
Place here the code you want to execute on update (only called when the event is playing)

Specified by:
onUpdate in class AbstractCinematicEvent
Parameters:
tpf - time per frame

write

public void write(JmeExporter ex)
           throws java.io.IOException
Description copied from class: AbstractCinematicEvent
for serialization only

Specified by:
write in interface Savable
Overrides:
write in class AbstractCinematicEvent
Parameters:
ex - exporter
Throws:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
Description copied from class: AbstractCinematicEvent
for serialization only

Specified by:
read in interface Savable
Overrides:
read in class AbstractCinematicEvent
Parameters:
im - importer
Throws:
java.io.IOException