|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umd.cfar.lamp.viper.gui.players.DataPlayer edu.umd.cfar.lamp.viper.gui.players.DataPlayerHelper edu.umd.cfar.lamp.viper.gui.players.NativePlayer
Field Summary | |
protected PrefsManager |
prefs
|
Fields inherited from class edu.umd.cfar.lamp.viper.gui.players.DataPlayer |
B_FRAME, EMPTY_FRAME, I_FRAME, logger, P_FRAME, UNKNOWN_FRAME |
Constructor Summary | |
NativePlayer(java.lang.String path)
|
Method Summary | |
void |
add(java.lang.Object o)
|
void |
destroy()
Does any cleanup required. |
java.awt.Image |
getImage()
Function returns the image with the current index. |
java.awt.Image |
getImage(Instant i)
Get the image at the given instant. |
java.lang.String |
getImageType(Instant i)
The default implementation says that every frame is an i-frame. |
ViperViewMediator |
getMediator()
|
Instant |
getNow()
Get the currently loaded instant. |
Rational |
getPixelAspectRatio()
Returns the default pixel aspect ratio of one. |
PrefsManager |
getPrefs()
|
FrameRate |
getRate()
Gets the frame rate of the video. |
Span |
getSpan()
Gets the interval of the video clip |
boolean |
hasNext()
|
boolean |
hasPrevious()
|
protected java.awt.Image |
helpGetImage(Frame f)
|
java.lang.Object |
next()
|
int |
nextIndex()
|
java.lang.Object |
previous()
|
int |
previousIndex()
|
void |
remove()
|
void |
set(java.lang.Object o)
|
void |
setElement(MediaElement element)
Since real data players should know their own metadata, the default behaviour of this method is to ignore it. |
void |
setMediator(ViperViewMediator mediator)
|
void |
setNow(Instant i)
Set the currently loaded instant/frame. |
void |
setPrefs(PrefsManager prefs)
|
Methods inherited from class edu.umd.cfar.lamp.viper.gui.players.DataPlayer |
createDataPlayer, getLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected PrefsManager prefs
Constructor Detail |
public NativePlayer(java.lang.String path)
Method Detail |
protected java.awt.Image helpGetImage(Frame f) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public Span getSpan()
DataPlayer
getSpan
in class DataPlayer
public Instant getNow()
DataPlayer
getNow
in class DataPlayer
public void setNow(Instant i)
DataPlayer
setNow
in class DataPlayer
i
- public FrameRate getRate()
DataPlayer
getRate
in class DataPlayer
null
if the frame rate is unknownpublic java.lang.String getImageType(Instant i)
edu.umd.cfar.lamp.viper.gui.players.DataPlayerHelper
i
- instant to check
i-frame
public PrefsManager getPrefs()
getPrefs
in class DataPlayer
public void setPrefs(PrefsManager prefs)
setPrefs
in class DataPlayer
prefs
- The prefs to set.public java.awt.Image getImage()
DataPlayer
getImage
in class DataPlayer
public java.awt.Image getImage(Instant i)
DataPlayer
getImage
in class DataPlayer
i
-
public boolean hasNext()
public java.lang.Object next()
public int nextIndex()
public boolean hasPrevious()
public java.lang.Object previous()
public int previousIndex()
public void add(java.lang.Object o)
public void remove()
public void set(java.lang.Object o)
public void destroy()
DataPlayer
destroy
in class DataPlayer
public ViperViewMediator getMediator()
public void setMediator(ViperViewMediator mediator)
setMediator
in class DataPlayer
mediator
- public Rational getPixelAspectRatio()
getPixelAspectRatio
in class DataPlayer
public void setElement(MediaElement element)
setElement
in class DataPlayer
element
- the new metadata for the file.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |