edu.umd.cfar.lamp.viper.gui.remote
Class ViperControls
java.lang.Object
edu.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViperControls
public ViperControls()
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.