Java Code Examples for org.jfree.data.xy.AbstractXYDataset#getSelectionState()
The following examples show how to use
org.jfree.data.xy.AbstractXYDataset#getSelectionState() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Cardumen_009_s.java From coming with MIT License | 6 votes |
/** * Clears the selection. * * @since 1.2.0 */ public void clearSelection() { // cycle through the datasets and clear the selection state int datasetCount = this.datasets.size(); for (int d = 0; d < datasetCount; d++) { XYDataset dataset = (XYDataset) this.datasets.get(d); if (dataset instanceof AbstractXYDataset) { // TODO: we could add an interface that *any* dataset could // implement if it provides a selection state AbstractXYDataset axyd = (AbstractXYDataset) dataset; if (axyd.getSelectionState() != null) { XYDatasetSelectionState selState = axyd.getSelectionState(); selState.clearSelection(); } } } }
Example 2
Source File: Cardumen_009_t.java From coming with MIT License | 6 votes |
/** * Clears the selection. * * @since 1.2.0 */ public void clearSelection() { // cycle through the datasets and clear the selection state int datasetCount = this.datasets.size(); for (int d = 0; d < datasetCount; d++) { XYDataset dataset = (XYDataset) this.datasets.get(d); if (dataset instanceof AbstractXYDataset) { // TODO: we could add an interface that *any* dataset could // implement if it provides a selection state AbstractXYDataset axyd = (AbstractXYDataset) dataset; if (axyd.getSelectionState() != null) { XYDatasetSelectionState selState = axyd.getSelectionState(); selState.clearSelection(); } } } }
Example 3
Source File: Cardumen_0082_t.java From coming with MIT License | 6 votes |
/** * Clears the selection. * * @since 1.2.0 */ public void clearSelection() { // cycle through the datasets and clear the selection state int datasetCount = this.datasets.size(); for (int d = 0; d < datasetCount; d++) { XYDataset dataset = (XYDataset) this.datasets.get(d); if (dataset instanceof AbstractXYDataset) { // TODO: we could add an interface that *any* dataset could // implement if it provides a selection state AbstractXYDataset axyd = (AbstractXYDataset) dataset; if (axyd.getSelectionState() != null) { XYDatasetSelectionState selState = axyd.getSelectionState(); selState.clearSelection(); } } } }
Example 4
Source File: Cardumen_0082_s.java From coming with MIT License | 6 votes |
/** * Clears the selection. * * @since 1.2.0 */ public void clearSelection() { // cycle through the datasets and clear the selection state int datasetCount = this.datasets.size(); for (int d = 0; d < datasetCount; d++) { XYDataset dataset = (XYDataset) this.datasets.get(d); if (dataset instanceof AbstractXYDataset) { // TODO: we could add an interface that *any* dataset could // implement if it provides a selection state AbstractXYDataset axyd = (AbstractXYDataset) dataset; if (axyd.getSelectionState() != null) { XYDatasetSelectionState selState = axyd.getSelectionState(); selState.clearSelection(); } } } }