jsynoptic.base
Interface DataSourceConsumer
- All Known Implementing Classes:
- HistoryShape, HistoryShape.HookedTextShape, HistoryTextShape, Plot, TextArrayShape, TextShape, TimePlot, TimePlot
public interface DataSourceConsumer
Objects implementing this interface will have the possibility to
consume DataSource objects.
It is foreseen to be used when a data source drag and drop
is perfomed on a shape that will display it
canAddDataSource
boolean canAddDataSource(DataSource d)
- Parameters:
d
- the data source to be added
- Returns:
- true if operation can be be performed
addDataSource
boolean addDataSource(DataSource d)
- Parameters:
d
- the data source to be added
- Returns:
- true if operation succeeds