Package repast.simphony.ui.widget
Class BufferSourceStream
java.lang.Object
repast.simphony.ui.widget.BufferSourceStream
- All Implemented Interfaces:
javax.media.Controls
,javax.media.protocol.Controls
,javax.media.protocol.PullBufferStream
,javax.media.protocol.SourceStream
A DataSourceStream for turning JMF Buffers into movies.
- Author:
- Nick Collier
-
Field Summary
Fields inherited from interface javax.media.protocol.SourceStream
LENGTH_UNKNOWN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBuffer
(javax.media.Buffer buf) boolean
javax.media.protocol.ContentDescriptor
long
getControl
(String type) Object[]
javax.media.Format
void
read
(javax.media.Buffer buf) void
boolean
-
Constructor Details
-
BufferSourceStream
public BufferSourceStream(javax.media.format.RGBFormat aFormat)
-
-
Method Details
-
addBuffer
public void addBuffer(javax.media.Buffer buf) -
waitForDone
public void waitForDone() -
willReadBlock
public boolean willReadBlock()- Specified by:
willReadBlock
in interfacejavax.media.protocol.PullBufferStream
-
read
public void read(javax.media.Buffer buf) - Specified by:
read
in interfacejavax.media.protocol.PullBufferStream
-
getFormat
public javax.media.Format getFormat()- Specified by:
getFormat
in interfacejavax.media.protocol.PullBufferStream
-
getContentDescriptor
public javax.media.protocol.ContentDescriptor getContentDescriptor()- Specified by:
getContentDescriptor
in interfacejavax.media.protocol.SourceStream
-
getContentLength
public long getContentLength()- Specified by:
getContentLength
in interfacejavax.media.protocol.SourceStream
-
endOfStream
public boolean endOfStream()- Specified by:
endOfStream
in interfacejavax.media.protocol.SourceStream
-
getControls
- Specified by:
getControls
in interfacejavax.media.Controls
-
getControl
- Specified by:
getControl
in interfacejavax.media.Controls
-