Author: kono
Date: 2012-06-05 14:48:44 -0700 (Tue, 05 Jun 2012)
New Revision: 29467
Modified:
core3/api/trunk/vizmap-api/src/main/java/org/cytoscape/view/vizmap/mappings/AbstractVisualMappingFunction.java
Log:
Confusing names had been modified (from attr to column). No functional/API
changes.
Modified:
core3/api/trunk/vizmap-api/src/main/java/org/cytoscape/view/vizmap/mappings/AbstractVisualMappingFunction.java
===================================================================
---
core3/api/trunk/vizmap-api/src/main/java/org/cytoscape/view/vizmap/mappings/AbstractVisualMappingFunction.java
2012-06-05 20:43:17 UTC (rev 29466)
+++
core3/api/trunk/vizmap-api/src/main/java/org/cytoscape/view/vizmap/mappings/AbstractVisualMappingFunction.java
2012-06-05 21:48:44 UTC (rev 29467)
@@ -5,18 +5,21 @@
import org.cytoscape.view.vizmap.VisualMappingFunction;
/**
- * A base class for visual mapping functions where all fields are immutable.
- * @param <K> Generic type of the attribute mapped.
- * @param <V> Generic type of the {@link VisualProperty} used in this mapping.
+ * A base class for visual mapping functions where all fields are immutable.
+ *
+ * @param <K>
+ * Generic type of the attribute mapped.
+ * @param <V>
+ * Generic type of the {@link VisualProperty} used in this mapping.
* @CyAPI.Abstract.Class
*/
public abstract class AbstractVisualMappingFunction<K, V> implements
VisualMappingFunction<K, V> {
- /** Mapping attribute name.*/
- protected final String attrName;
-
+ /** Mapping attribute name. */
+ protected final String colunName;
+
/** Type of attribute. */
- protected final Class<K> attrType;
+ protected final Class<K> columnType;
/** The table used for this mapping. */
protected final CyTable table;
@@ -24,39 +27,42 @@
/** Visual Property used in this mapping. */
protected final VisualProperty<V> vp;
-
/**
* Constructs this AbstractVisualMappingFunction.
- * @param attrName Mapping attribute column name.
- * @param attrType Type of attribute column.
- * @param table The table used to find the column.
- * @param vp Visual Property used in this mapping.
+ *
+ * @param columnName
+ * Mapping attribute column name.
+ * @param columnType
+ * Type of attribute column.
+ * @param table
+ * The table used to find the column.
+ * @param vp
+ * Visual Property used in this mapping.
*/
- public AbstractVisualMappingFunction(final String attrName, final
Class<K> attrType, final CyTable table,
+ public AbstractVisualMappingFunction(final String columnName, final
Class<K> columnType, final CyTable table,
final VisualProperty<V> vp) {
- this.attrType = attrType;
- this.attrName = attrName;
+ this.columnType = columnType;
+ this.colunName = columnName;
this.vp = vp;
this.table = table;
}
- @Override
+ @Override
public String getMappingColumnName() {
- return attrName;
+ return colunName;
}
-
- @Override
+ @Override
public Class<K> getMappingColumnType() {
- return attrType;
+ return columnType;
}
- @Override
+ @Override
public VisualProperty<V> getVisualProperty() {
return vp;
}
-
- @Override
+
+ @Override
public CyTable getMappingTable() {
return table;
}
--
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.