DataUserType - The type of data user.public abstract class AbstractDataProvider<DataUserType extends DataUser> extends java.lang.Object implements DataProvider<DataUserType>
| Constructor and Description |
|---|
AbstractDataProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataUser(DataUserType dataUser)
Add a data user.
|
protected void |
fireUpdate()
Notify all registered data users for a data update.
|
void |
removeDataUser(DataUserType dataUser)
Remove a data user.
|
protected byte |
toByte(double value)
Convert given value to a byte.
|
protected byte[] |
toByte(float[] values)
Convert given value to a byte.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidpublic final void removeDataUser(DataUserType dataUser)
DataProviderremoveDataUser in interface DataProvider<DataUserType extends DataUser>dataUser - the data user to remove.public final void addDataUser(DataUserType dataUser)
DataProvideraddDataUser in interface DataProvider<DataUserType extends DataUser>dataUser - the data user to add.protected final void fireUpdate()
protected byte toByte(double value)
value - the given value.protected byte[] toByte(float[] values)
values - the given value.