Author: ruschein
Date: 2011-02-03 13:30:48 -0800 (Thu, 03 Feb 2011)
New Revision: 24017

Modified:
   core3/default-mappingcalculators/trunk/pom.xml
   
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/ContinuousMapping.java
   
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/DiscreteMapping.java
   
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/PassthroughMapping.java
Log:
Updated to the newest version of model-api.

Modified: core3/default-mappingcalculators/trunk/pom.xml
===================================================================
--- core3/default-mappingcalculators/trunk/pom.xml      2011-02-03 20:26:48 UTC 
(rev 24016)
+++ core3/default-mappingcalculators/trunk/pom.xml      2011-02-03 21:30:48 UTC 
(rev 24017)
@@ -105,6 +105,11 @@
        <dependencies>
                <dependency>
                        <groupId>org.cytoscape</groupId>
+                       <artifactId>model-api</artifactId>
+                       <version>3.0.0-alpha3-SNAPSHOT</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.cytoscape</groupId>
                        <artifactId>vizmap-api</artifactId>
                        <version>3.0.0-alpha2</version>
                </dependency>

Modified: 
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/ContinuousMapping.java
===================================================================
--- 
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/ContinuousMapping.java
      2011-02-03 20:26:48 UTC (rev 24016)
+++ 
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/ContinuousMapping.java
      2011-02-03 21:30:48 UTC (rev 24017)
@@ -1,15 +1,8 @@
 /*
   File: ContinuousMapping.java
 
-  Copyright (c) 2006, The Cytoscape Consortium (www.cytoscape.org)
+  Copyright (c) 2006, 2010, The Cytoscape Consortium (www.cytoscape.org)
 
-  The Cytoscape Consortium is:
-  - Institute for Systems Biology
-  - University of California San Diego
-  - Memorial Sloan-Kettering Cancer Center
-  - Institut Pasteur
-  - Agilent Technologies
-
   This library is free software; you can redistribute it and/or modify it
   under the terms of the GNU Lesser General Public License as published
   by the Free Software Foundation; either version 2.1 of the License, or
@@ -33,15 +26,10 @@
   You should have received a copy of the GNU Lesser General Public License
   along with this library; if not, write to the Free Software Foundation,
   Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-
-//----------------------------------------------------------------------------
-// $Revision: 13022 $
-// $Date: 2008-02-11 13:59:26 -0800 (Mon, 11 Feb 2008) $
-// $Author: mes $
-//----------------------------------------------------------------------------
+*/
 package org.cytoscape.view.vizmap.mappings;
 
+
 import java.awt.Color;
 import java.awt.Paint;
 import java.util.ArrayList;
@@ -56,6 +44,7 @@
 import 
org.cytoscape.view.vizmap.mappings.interpolators.LinearNumberToColorInterpolator;
 import 
org.cytoscape.view.vizmap.mappings.interpolators.LinearNumberToNumberInterpolator;
 
+
 /**
  * Implements an interpolation table mapping data to values of a particular
  * class. The data value is extracted from a bundle of attributes by using a
@@ -186,7 +175,7 @@
 
                final CyRow row = view.getModel().getCyRow();
 
-               if (row.isSet(attrName, attrType)) {
+               if (row.isSet(attrName)) {
                        // skip Views where source attribute is not defined;
                        // ViewColumn will automatically substitute the per-VS 
or global
                        // default, as appropriate

Modified: 
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/DiscreteMapping.java
===================================================================
--- 
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/DiscreteMapping.java
        2011-02-03 20:26:48 UTC (rev 24016)
+++ 
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/DiscreteMapping.java
        2011-02-03 21:30:48 UTC (rev 24017)
@@ -1,15 +1,8 @@
 /*
   File: DiscreteMapping.java
 
-  Copyright (c) 2006, The Cytoscape Consortium (www.cytoscape.org)
+  Copyright (c) 2006, 2010, The Cytoscape Consortium (www.cytoscape.org)
 
-  The Cytoscape Consortium is:
-  - Institute for Systems Biology
-  - University of California San Diego
-  - Memorial Sloan-Kettering Cancer Center
-  - Institut Pasteur
-  - Agilent Technologies
-
   This library is free software; you can redistribute it and/or modify it
   under the terms of the GNU Lesser General Public License as published
   by the Free Software Foundation; either version 2.1 of the License, or
@@ -33,15 +26,10 @@
   You should have received a copy of the GNU Lesser General Public License
   along with this library; if not, write to the Free Software Foundation,
   Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-
-//----------------------------------------------------------------------------
-// $Revision: 13022 $
-// $Date: 2008-02-11 13:59:26 -0800 (Mon, 11 Feb 2008) $
-// $Author: mes $
-//----------------------------------------------------------------------------
+*/
 package org.cytoscape.view.vizmap.mappings;
 
+
 import java.util.Map;
 import java.util.SortedMap;
 import java.util.TreeMap;
@@ -53,6 +41,7 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 /**
  * Implements a lookup table mapping data to values of a particular class. The
  * data value is extracted from a bundle of attributes by using a specified 
data
@@ -120,7 +109,7 @@
 //             logger.debug("Row vals = " + row.getAllValues().values());
                
                
-               if (row.isSet(attrName, attrType)) {
+               if (row.isSet(attrName)) {
                        // skip Views where source attribute is not defined;
                        // ViewColumn will automatically substitute the per-VS 
or global
                        // default, as appropriate

Modified: 
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/PassthroughMapping.java
===================================================================
--- 
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/PassthroughMapping.java
     2011-02-03 20:26:48 UTC (rev 24016)
+++ 
core3/default-mappingcalculators/trunk/src/main/java/org/cytoscape/view/vizmap/mappings/PassthroughMapping.java
     2011-02-03 21:30:48 UTC (rev 24017)
@@ -1,13 +1,6 @@
 /*
- Copyright (c) 2006, 2007, The Cytoscape Consortium (www.cytoscape.org)
+ Copyright (c) 2006, 2007, 2010, The Cytoscape Consortium (www.cytoscape.org)
 
- The Cytoscape Consortium is:
- - Institute for Systems Biology
- - University of California San Diego
- - Memorial Sloan-Kettering Cancer Center
- - Institut Pasteur
- - Agilent Technologies
-
  This library is free software; you can redistribute it and/or modify it
  under the terms of the GNU Lesser General Public License as published
  by the Free Software Foundation; either version 2.1 of the License, or
@@ -75,9 +68,7 @@
 
                final CyRow row = view.getModel().getCyRow();
                
-
-               
-               if (row.isSet(attrName, attrType)) {
+               if (row.isSet(attrName)) {
                        // skip Views where source attribute is not defined;
                        // ViewColumn will automatically substitute the per-VS 
or
                        // global default, as appropriate

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to