edu.umd.cfar.lamp.viper.gui.remote
Class ViperControls

java.lang.Object
  extended byedu.umd.cfar.lamp.viper.gui.remote.ViperControls

public class ViperControls
extends java.lang.Object

A class for controlling video playback, a feature not provided by the mediator or the DataPlayer.


Constructor Summary
ViperControls()
           
 
Method Summary
 void accelerate()
           
 void addChangeListener(javax.swing.event.ChangeListener cl)
           
 void decelerate()
           
protected  void fireChangeEvent()
           
 Rational getFrameRate()
           
 Rational getFrameRateMultiplier()
           
 ViperViewMediator getMediator()
           
 TemporalRange getPlaybackRange()
           
 ChronicleSelectionModel getPlaybackSelected()
           
 long getRate()
           
 long getResolution()
           
 boolean isPaused()
           
 boolean isRealtimePlayback()
           
 void nextFrame()
           
 void nextSection()
           
 void pause()
           
 void play()
           
 void previousFrame()
           
 void previousSection()
           
 void removeChangeListener(javax.swing.event.ChangeListener cl)
           
 void setFrameRate(Rational frameRate)
           
 void setFrameRateMultiplier(Rational frameRateMultiplier)
           
 void setMediator(ViperViewMediator mediator)
           
 void setPaused(boolean b)
           
 void setPlaybackSelected(ChronicleSelectionModel playbackSelected)
           
 void setRate(long l)
           
 void setRealtimePlayback(boolean realtimePlayback)
           
 void setResolution(int l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViperControls

public ViperControls()
Method Detail

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener cl)

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener cl)

fireChangeEvent

protected void fireChangeEvent()

getPlaybackRange

public TemporalRange getPlaybackRange()

pause

public void pause()

play

public void play()

accelerate

public void accelerate()

decelerate

public void decelerate()

getMediator

public ViperViewMediator getMediator()
Returns:

isPaused

public boolean isPaused()
Returns:

getRate

public long getRate()
Returns:

getResolution

public long getResolution()
Returns:

setMediator

public void setMediator(ViperViewMediator mediator)
Parameters:
mediator -

setPaused

public void setPaused(boolean b)
Parameters:
b -

setRate

public void setRate(long l)
Parameters:
l -

setResolution

public void setResolution(int l)
Parameters:
l -

nextFrame

public void nextFrame()

previousFrame

public void previousFrame()

previousSection

public void previousSection()

nextSection

public void nextSection()

getPlaybackSelected

public ChronicleSelectionModel getPlaybackSelected()
Returns:
Returns the playbackSelected.

setPlaybackSelected

public void setPlaybackSelected(ChronicleSelectionModel playbackSelected)
Parameters:
playbackSelected - The playbackSelected to set.

getFrameRate

public Rational getFrameRate()
Returns:
Returns the frameRate.

setFrameRate

public void setFrameRate(Rational frameRate)
Parameters:
frameRate - The frameRate to set.

getFrameRateMultiplier

public Rational getFrameRateMultiplier()
Returns:
Returns the frameRateMultiplier.

setFrameRateMultiplier

public void setFrameRateMultiplier(Rational frameRateMultiplier)
Parameters:
frameRateMultiplier - The frameRateMultiplier to set.

isRealtimePlayback

public boolean isRealtimePlayback()
Returns:
Returns the realtimePlayback.

setRealtimePlayback

public void setRealtimePlayback(boolean realtimePlayback)
Parameters:
realtimePlayback - The realtimePlayback to set.