|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractDataset
jsynoptic.plugins.jfreechart.SourceXYDataset
public class SourceXYDataset
Nested Class Summary | |
---|---|
class |
SourceXYDataset.SourceCouple
|
Field Summary | |
---|---|
protected boolean |
dirty
|
protected DataInfo |
info
|
protected boolean |
nameAccordingToYOnly
|
protected boolean |
notifySourceChange
|
protected java.util.Vector |
sources
|
Constructor Summary | |
---|---|
SourceXYDataset()
|
|
SourceXYDataset(DataSourceCollection dsc)
|
Method Summary | |
---|---|
void |
add(DataSource x,
DataSource y)
|
void |
addDataSourceCollection(DataSourceCollection dsc)
|
void |
addXSource(DataSource ds)
|
void |
addYSource(DataSource ds)
Adds an y source, using the last set x source X sources shall be set before y sources |
void |
clear()
|
java.lang.Object |
clone()
|
SourceXYDataset |
cloneSet()
|
void |
DataSourceIndexRangeChanged(DataSource ds,
long startIndex,
long lastIndex)
Called when the range of valid index changed |
void |
DataSourceInfoChanged(DataSource ds,
DataInfo newInfo)
Called when the information about the data source changed |
void |
DataSourceOrderChanged(DataSource ds,
int newOrder)
If defined, called when the order of the source changed. |
void |
DataSourceReplaced(DataSource oldData,
DataSource newData)
Called when a data source is replaced by another one |
void |
DataSourceValueChanged(DataSource ds,
long minIndex,
long maxIndex)
Called when at least a value changed in the data source. |
void |
DataSourceValueRangeChanged(DataSource ds)
Called when the range of possible values changed, if defined. |
int |
getItemCount(int series)
|
java.lang.String |
getName()
|
int |
getSeriesCount()
|
java.lang.String |
getSeriesName(int series)
|
java.util.Vector |
getSources()
Helper function when a pair isn't fully set |
java.lang.String |
getXLabel(int i)
|
DataSource |
getXSource(int i)
|
java.lang.Number |
getXValue(int series,
int item)
|
java.lang.String |
getYLabel(int i)
|
DataSource |
getYSource(int i)
|
java.lang.Number |
getYValue(int series,
int item)
|
boolean |
isNameAccordingToYOnly()
|
void |
notificationEnd(java.lang.Object referer)
This callback is called after all notifications were processed. |
void |
removeXSource(DataSource ds)
|
void |
removeXSource(int i)
|
void |
removeYSource(DataSource ds)
|
void |
removeYSource(int i)
|
void |
setDataSourceCollection(DataSourceCollection dsc)
|
void |
setDataSourceCollectionAsCouples(DataSourceCollection dsc)
|
void |
setName(int series,
java.lang.String name)
Changes the name of the source entry at index i, overrides the default. |
void |
setName(java.lang.String name)
|
void |
setNameAccordingToYOnly(boolean nameAccordingToYOnly)
|
void |
setXSource(DataSource ds)
Sets a common X source |
int |
setXSource(DataSource ds,
int i)
Sets an X source for the given series. |
int |
setYSource(DataSource ds,
int i)
Sets an Y source for the given series. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient java.util.Vector sources
protected transient boolean dirty
protected boolean notifySourceChange
protected boolean nameAccordingToYOnly
protected DataInfo info
Constructor Detail |
---|
public SourceXYDataset()
public SourceXYDataset(DataSourceCollection dsc)
Method Detail |
---|
public boolean isNameAccordingToYOnly()
public void setNameAccordingToYOnly(boolean nameAccordingToYOnly)
nameAccordingToYOnly
- public void setDataSourceCollection(DataSourceCollection dsc)
public void setDataSourceCollectionAsCouples(DataSourceCollection dsc)
public void addDataSourceCollection(DataSourceCollection dsc)
public void setXSource(DataSource ds)
public int setXSource(DataSource ds, int i)
public int setYSource(DataSource ds, int i)
public DataSource getXSource(int i)
public DataSource getYSource(int i)
public void addXSource(DataSource ds)
public void removeXSource(DataSource ds)
public void removeXSource(int i)
public void addYSource(DataSource ds)
public void removeYSource(DataSource ds)
public void removeYSource(int i)
public void add(DataSource x, DataSource y)
public void clear()
public void setName(int series, java.lang.String name)
series
- the series for which to set a name overridename
- the new namepublic void setName(java.lang.String name)
public java.lang.String getName()
public java.lang.String getXLabel(int i)
public java.lang.String getYLabel(int i)
public int getItemCount(int series)
public java.lang.Number getXValue(int series, int item)
public java.lang.Number getYValue(int series, int item)
public java.util.Vector getSources()
public int getSeriesCount()
public java.lang.String getSeriesName(int series)
public void DataSourceValueChanged(DataSource ds, long minIndex, long maxIndex)
DataSourceListener
DataSourceValueChanged
in interface DataSourceListener
ds
- The data source that changedminIndex
- Lower bound of the range where values changedmaxIndex
- Higher bound of the range where values changedpublic void DataSourceIndexRangeChanged(DataSource ds, long startIndex, long lastIndex)
DataSourceListener
DataSourceIndexRangeChanged
in interface DataSourceListener
ds
- The data source that changedstartIndex
- The new start IndexlastIndex
- The new last indexpublic void DataSourceInfoChanged(DataSource ds, DataInfo newInfo)
DataSourceListener
DataSourceInfoChanged
in interface DataSourceListener
ds
- The data source that changedpublic void DataSourceValueRangeChanged(DataSource ds)
DataSourceListener
DataSourceValueRangeChanged
in interface DataSourceListener
ds
- The data source that changedpublic void DataSourceOrderChanged(DataSource ds, int newOrder)
DataSourceListener
DataSourceOrderChanged
in interface DataSourceListener
ds
- The data source that changedpublic void DataSourceReplaced(DataSource oldData, DataSource newData)
DataSourceListener
DataSourceReplaced
in interface DataSourceListener
public void notificationEnd(java.lang.Object referer)
EndNotificationListener
notificationEnd
in interface EndNotificationListener
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public SourceXYDataset cloneSet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |