Package mgui.interfaces.io
Class DataBridgeNamedXY<T extends MguiNumber>
java.lang.Object
mgui.interfaces.io.DataBridge<T>
mgui.interfaces.io.DataBridgeXY<T>
mgui.interfaces.io.DataBridgeNamedXY<T>
- All Implemented Interfaces:
DataInputStream<T>
,DataInputStreamNamedXY<T>
,DataInputStreamXY<T>
,DataOutputStream<T>
,DataOutputStreamNamedXY<T>
,DataOutputStreamXY<T>
,DataSourceListener
public class DataBridgeNamedXY<T extends MguiNumber> extends DataBridgeXY<T> implements DataInputStreamNamedXY<T>, DataOutputStreamNamedXY<T>
-
Field Summary
Fields inherited from class mgui.interfaces.io.DataBridgeXY
x, y
Fields inherited from class mgui.interfaces.io.DataBridge
closed, inputListeners
-
Constructor Summary
Constructors Constructor Description DataBridgeNamedXY(int size, java.util.List<java.lang.String> variables)
DataBridgeNamedXY(int size, T initial_value, java.util.List<java.lang.String> variables)
-
Method Summary
Modifier and Type Method Description void
addChannel(int i, java.lang.String name)
Adds a Y channel namedchannel
.java.util.List<java.lang.String>
getVariableNames()
Returns a list of the channels in this stream.NameMap
getVariables()
java.util.List<T>
getYData(java.lang.String name)
Returns the Y data for the channel namedchannel
, as a list of typeT
.void
removeChannel(java.lang.String name)
Removes the channel namedchannel
.void
setVariables(NameMap vars)
void
setYData(java.lang.String name, java.util.List<T> data)
Sets the Y data for the channel namedchannel
.Methods inherited from class mgui.interfaces.io.DataBridgeXY
dataSourceEmission, dataSourceReset, getChannelCount, getData, getDataAsBytes, getXData, getYData, getYData, setData, setDataAsBytes, setXData, setYData, setYData
Methods inherited from class mgui.interfaces.io.DataBridge
addInputStreamListener, close, fireListeners, removeInputStreamListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mgui.interfaces.io.DataInputStream
addInputStreamListener, close, getData, getDataAsBytes, removeInputStreamListener
Methods inherited from interface mgui.interfaces.io.DataInputStreamXY
getChannelCount, getXData, getYData, getYData
Methods inherited from interface mgui.interfaces.io.DataOutputStream
close, setData, setDataAsBytes
Methods inherited from interface mgui.interfaces.io.DataOutputStreamXY
getChannelCount, setXData, setYData, setYData
Methods inherited from interface mgui.interfaces.io.DataSourceListener
dataSourceEmission, dataSourceReset
-
Field Details
-
variables
-
-
Constructor Details
-
DataBridgeNamedXY
public DataBridgeNamedXY(int size, java.util.List<java.lang.String> variables) -
DataBridgeNamedXY
-
-
Method Details
-
setVariables
-
addChannel
public void addChannel(int i, java.lang.String name)Description copied from interface:DataOutputStreamNamedXY
Adds a Y channel namedchannel
.- Specified by:
addChannel
in interfaceDataOutputStreamNamedXY<T extends MguiNumber>
-
removeChannel
public void removeChannel(java.lang.String name)Description copied from interface:DataOutputStreamNamedXY
Removes the channel namedchannel
.- Specified by:
removeChannel
in interfaceDataOutputStreamNamedXY<T extends MguiNumber>
-
getVariables
-
setYData
Description copied from interface:DataOutputStreamNamedXY
Sets the Y data for the channel namedchannel
.- Specified by:
setYData
in interfaceDataOutputStreamNamedXY<T extends MguiNumber>
- Throws:
java.io.IOException
-
getYData
Description copied from interface:DataInputStreamNamedXY
Returns the Y data for the channel namedchannel
, as a list of typeT
.- Specified by:
getYData
in interfaceDataInputStreamNamedXY<T extends MguiNumber>
- Returns:
- Throws:
java.io.IOException
-
getVariableNames
public java.util.List<java.lang.String> getVariableNames()Description copied from interface:DataInputStreamNamedXY
Returns a list of the channels in this stream. The list's indices correspond to the channel index.- Specified by:
getVariableNames
in interfaceDataInputStreamNamedXY<T extends MguiNumber>
- Specified by:
getVariableNames
in interfaceDataOutputStreamNamedXY<T extends MguiNumber>
- Returns:
-