Package mgui.interfaces.io
Interface DataOutputStreamXY<T extends MguiNumber>
- Type Parameters:
T- Number type for this stream
- All Superinterfaces:
DataOutputStream<T>,DataSourceListener
- All Known Subinterfaces:
DataOutputStreamNamedXY<T>
- All Known Implementing Classes:
DataBridgeNamedXY,DataBridgeXY
public interface DataOutputStreamXY<T extends MguiNumber> extends DataOutputStream<T>
Represents an XY output stream with one X and multiple Y channels.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Method Summary
Modifier and Type Method Description intgetChannelCount()Returns the number of Y channels in this stream.voidsetXData(java.util.List<T> x)Sets the X value for this output streamvoidsetYData(int i, java.util.List<T> data)Sets the Y data for the i'th channels of this output stream.voidsetYData(java.util.List<java.util.List<T>> data)Sets the Y data for all channels of this output stream.Methods inherited from interface mgui.interfaces.io.DataOutputStream
close, setData, setDataAsBytesMethods inherited from interface mgui.interfaces.io.DataSourceListener
dataSourceEmission, dataSourceReset
-
Method Details
-
setYData
Sets the Y data for all channels of this output stream.- Parameters:
data-- Throws:
java.io.IOException
-
setYData
Sets the Y data for the i'th channels of this output stream.- Parameters:
i-data-- Throws:
java.io.IOException- if there is no i'th channel
-
setXData
Sets the X value for this output stream- Parameters:
data-- Throws:
java.io.IOException
-
getChannelCount
int getChannelCount()Returns the number of Y channels in this stream.- Returns:
-