Package mgui.interfaces.io
Interface DataOutputStreamNamedXY<T extends MguiNumber>
- All Superinterfaces:
DataOutputStream<T>,DataOutputStreamXY<T>,DataSourceListener
- All Known Implementing Classes:
DataBridgeNamedXY
public interface DataOutputStreamNamedXY<T extends MguiNumber> extends DataOutputStreamXY<T>
Represents an XY output stream whose Y channels are named.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Method Summary
Modifier and Type Method Description voidaddChannel(int i, java.lang.String channel)Adds a Y channel namedchannel.java.util.List<java.lang.String>getVariableNames()Returns a list of the channels in this stream.voidremoveChannel(java.lang.String channel)Removes the channel namedchannel.voidsetYData(java.lang.String channel, java.util.List<T> data)Sets the Y data for the channel namedchannel.Methods inherited from interface mgui.interfaces.io.DataOutputStream
close, setData, setDataAsBytesMethods inherited from interface mgui.interfaces.io.DataOutputStreamXY
getChannelCount, setXData, setYData, setYDataMethods inherited from interface mgui.interfaces.io.DataSourceListener
dataSourceEmission, dataSourceReset
-
Method Details
-
addChannel
void addChannel(int i, java.lang.String channel)Adds a Y channel namedchannel.- Parameters:
i-name-
-
removeChannel
void removeChannel(java.lang.String channel)Removes the channel namedchannel.- Parameters:
name-
-
setYData
Sets the Y data for the channel namedchannel.- Parameters:
name-data-- Throws:
java.io.IOException
-
getVariableNames
java.util.List<java.lang.String> getVariableNames()Returns a list of the channels in this stream. The list's indices correspond to the channel index.- Returns:
-