]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Allow getting "other" item/category from FilteredDataset
authorluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 15 May 2014 09:20:21 +0000 (09:20 +0000)
committerluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 15 May 2014 09:20:21 +0000 (09:20 +0000)
fixes #4881

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29496 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.jfreechart/src/org/simantics/jfreechart/chart/FilteredDataset.java
org.simantics.jfreechart/src/org/simantics/jfreechart/chart/FilteringCategoryDataset.java
org.simantics.jfreechart/src/org/simantics/jfreechart/chart/FilteringPieDataset.java

index 1d11f1222ffa69dac55758ce1e48ef9956153ff9..a5770ffc2d518ecfe65e4451c9cd73ad0f5fea49 100644 (file)
@@ -23,4 +23,7 @@ public interface FilteredDataset {
        public void setFilterFraction(double filterFraction);\r
        \r
        public void updateFiltered();\r
+       \r
+       @SuppressWarnings("rawtypes")\r
+       public Comparable getOther();\r
 }\r
index fb5ec1a724d161b7c7fb78312d391d99be475e87..df619550fa82eadcc2d4a148ac58313856fe6794 100644 (file)
@@ -178,6 +178,10 @@ public class FilteringCategoryDataset extends AbstractDataset implements org.jfr
                return used.getColumnIndex(key);\r
        }\r
        \r
+       public Comparable getOther() {\r
+               return other;\r
+       }\r
+       \r
        \r
        \r
 \r
index dacef528a772599c7a5557af2562fb15f745c38d..acc6f3be4dc0090b3dd67d7f6ce9064050352df5 100644 (file)
@@ -112,5 +112,9 @@ public class FilteringPieDataset extends AbstractDataset implements PieDataset,
        public Number getValue(int index) {\r
                return used.getValue(index);\r
        }\r
+       \r
+       public Comparable getOther() {\r
+               return other;\r
+       }\r
 \r
 }\r