Package repast.simphony.ui.widget
Class BufferDataSource
java.lang.Object
javax.media.protocol.DataSource
javax.media.protocol.PullBufferDataSource
repast.simphony.ui.widget.BufferDataSource
- All Implemented Interfaces:
javax.media.Controls
,javax.media.Duration
,javax.media.protocol.Controls
public class BufferDataSource
extends javax.media.protocol.PullBufferDataSource
A DataSource for turning JMF Buffers into movies. See the Java Media
Framework documentation for details.
- Author:
- Nick Collier
-
Field Summary
Fields inherited from interface javax.media.Duration
DURATION_UNBOUNDED, DURATION_UNKNOWN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBuffer
(javax.media.Buffer buf) void
cleanUp()
void
connect()
void
getControl
(String type) Object[]
javax.media.Time
javax.media.MediaLocator
javax.media.protocol.PullBufferStream[]
void
setLocator
(javax.media.MediaLocator source) void
start()
void
stop()
Methods inherited from class javax.media.protocol.DataSource
initCheck
-
Constructor Details
-
BufferDataSource
public BufferDataSource(javax.media.format.RGBFormat format)
-
-
Method Details
-
addBuffer
public void addBuffer(javax.media.Buffer buf) -
cleanUp
public void cleanUp() -
setLocator
public void setLocator(javax.media.MediaLocator source) - Overrides:
setLocator
in classjavax.media.protocol.DataSource
-
getLocator
public javax.media.MediaLocator getLocator()- Overrides:
getLocator
in classjavax.media.protocol.DataSource
-
getContentType
- Specified by:
getContentType
in classjavax.media.protocol.DataSource
-
connect
public void connect()- Specified by:
connect
in classjavax.media.protocol.DataSource
-
disconnect
public void disconnect()- Specified by:
disconnect
in classjavax.media.protocol.DataSource
-
start
public void start()- Specified by:
start
in classjavax.media.protocol.DataSource
-
stop
public void stop()- Specified by:
stop
in classjavax.media.protocol.DataSource
-
getStreams
public javax.media.protocol.PullBufferStream[] getStreams()- Specified by:
getStreams
in classjavax.media.protocol.PullBufferDataSource
-
getDuration
public javax.media.Time getDuration()- Specified by:
getDuration
in interfacejavax.media.Duration
- Specified by:
getDuration
in classjavax.media.protocol.DataSource
-
getControls
- Specified by:
getControls
in interfacejavax.media.Controls
- Specified by:
getControls
in classjavax.media.protocol.DataSource
-
getControl
- Specified by:
getControl
in interfacejavax.media.Controls
- Specified by:
getControl
in classjavax.media.protocol.DataSource
-