File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/util Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ public static List<EMDataSet> sortDataSets(Collection<EMDataSet> dataSets) {
100
100
*/
101
101
@ SuppressWarnings ("unchecked" )
102
102
public static List <Double > calculateGlobalRange (CyNetwork network , List <CyColumnIdentifier > dataColumns ) {
103
- List <Double > range = new ArrayList <>(2 );
104
103
List <CyNode > nodes = network .getNodeList ();
105
104
106
105
if (!nodes .isEmpty ()) {
@@ -138,17 +137,14 @@ else if (row.isSet(column.getName()))
138
137
}
139
138
140
139
if (min != Double .POSITIVE_INFINITY && max != Double .NEGATIVE_INFINITY ) {
141
- range .add (min );
142
- range .add (max );
140
+ return List .of (min , max );
143
141
}
144
- } else {
145
- range .add (0.0 );
146
- range .add (0.0 );
147
- }
142
+ }
148
143
149
- return range ;
144
+ return List . of ( 0.0 , 0.0 ) ;
150
145
}
151
146
147
+
152
148
public static List <Color > getChartColors (ChartOptions options , boolean forStyle ) {
153
149
ColorScheme colorScheme = options != null ? options .getColorScheme () : null ;
154
150
List <Color > colors = colorScheme != null ? colorScheme .getColors () : null ;
You can’t perform that action at this time.
0 commit comments