|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.displayers.DataSourceSupport com.cosylab.gui.adapters.DataConsumerDispatcher com.cosylab.gui.adapters.OnApplyDispatcher
public class OnApplyDispatcher
Field Summary | |
---|---|
protected java.lang.Number |
valueToSet
|
Fields inherited from class com.cosylab.gui.adapters.DataConsumerDispatcher |
---|
name |
Fields inherited from class com.cosylab.gui.displayers.DataSourceSupport |
---|
types |
Constructor Summary | |
---|---|
OnApplyDispatcher()
Creates a new OnApplyDispatcher object. |
Method Summary | |
---|---|
void |
addConsumer(DataConsumer consumer)
In this method we investigate the following cases: if consumer is NonblockingNumberConsumer , the it comes from
peer data source and wants to receive notifications from peer cosnumer
about user change requests. |
void |
applyValue()
DOCUMENT ME! |
protected void |
cacheLastCharacteristics(java.util.Map characteristics)
If converter implementation decides to change characteristics it is very advisable to cache unmodified characteristics. |
void |
clear()
Releases all consumers and goes into initial state. |
protected java.util.Map |
getLastCharacteristics()
Returnes characcteristics whic was last time used on this data converter. |
protected NonblockingNumberDispatcher |
getNonblDisplatecher()
|
boolean |
isOnApply()
DOCUMENT ME! |
void |
setCharacteristics(java.util.Map characteristics)
This is called by peer data source. |
void |
setOnApply(boolean onApply)
DOCUMENT ME! |
void |
updateDataState(DataState state)
Push data state (quality) update change for dynamic value. |
void |
updateValue(long timestamp,
double value)
This is called by peer data source. |
void |
updateValue(long timestamp,
long value)
This is called by peer data source. |
Methods inherited from class com.cosylab.gui.adapters.DataConsumerDispatcher |
---|
getDataConsumer, getDefaultDataConsumer, getName, getSupportedCharacteristics, getSupportedConsumerTypes |
Methods inherited from class com.cosylab.gui.displayers.DataSourceSupport |
---|
clone, extractSupportedCharacteristics, getAcceptableConsumerTypes, getConsumers, removeAllConsumers, removeConsumer |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cosylab.gui.displayers.DataConsumer |
---|
getDataConsumer, getDefaultDataConsumer, getName, getSupportedCharacteristics, getSupportedConsumerTypes |
Field Detail |
---|
protected java.lang.Number valueToSet
Constructor Detail |
---|
public OnApplyDispatcher()
Method Detail |
---|
protected NonblockingNumberDispatcher getNonblDisplatecher()
public void applyValue()
public boolean isOnApply()
public void setOnApply(boolean onApply)
onApply
- DOCUMENT ME!public void addConsumer(DataConsumer consumer) throws java.beans.PropertyVetoException
NonblockingNumberConsumer
, the it comes from
peer data source and wants to receive notifications from peer cosnumer
about user change requests.
DataSource
interface. It it does, we must notify listener
for user data change requests.
addConsumer
in interface DataSource
addConsumer
in class DataSourceSupport
consumer
- the data consumer to be regitered at this data source
java.beans.PropertyVetoException
DataSource.addConsumer(com.cosylab.gui.displayers.DataConsumer)
protected void cacheLastCharacteristics(java.util.Map characteristics)
If implementation does not change characteristic, than this method doesen't have to be used.
characteristics
- the unmodified characcteristics before
transformationpublic void clear()
DataSourceSupport
clear
in class DataSourceSupport
protected java.util.Map getLastCharacteristics()
cacheLastCharacteristics(Map)
to store
them.
cacheLastCharacteristics(Map)
public void setCharacteristics(java.util.Map characteristics)
setCharacteristics
in interface DataConsumer
setCharacteristics
in class DataConsumerDispatcher
characteristics
- the Map
with attriDataConsumer.setCharacteristics(java.util.Map)
public void updateDataState(DataState state)
DataConsumer
updateDataState
in interface DataConsumer
updateDataState
in class DataConsumerDispatcher
state
- new data state(quality) descriptorpublic void updateValue(long timestamp, double value) throws CommonException
updateValue
in interface DoubleConsumer
timestamp
- the time of dynamic value eventvalue
- new value
CommonException
DoubleConsumer.updateValue(long, double)
public void updateValue(long timestamp, long value) throws CommonException
updateValue
in interface LongConsumer
timestamp
- the time of dynamic value eventvalue
- new value
CommonException
DoubleConsumer.updateValue(long, double)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |