K - Generic type of the attribute mapped.V - Generic type of the VisualProperty used in this mapping.public abstract class AbstractVisualMappingFunction<K,V> extends Object implements VisualMappingFunction<K,V>
Module: vizmap-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>vizmap-api</artifactId>
</dependency>| Modifier and Type | Field and Description |
|---|---|
protected String |
columnName
Mapping attribute name.
|
protected Class<K> |
columnType
Type of attribute.
|
protected CyEventHelper |
eventHelper |
protected VisualProperty<V> |
vp
Visual Property used in this mapping.
|
| Constructor and Description |
|---|
AbstractVisualMappingFunction(String columnName,
Class<K> columnType,
VisualProperty<V> vp,
CyEventHelper eventHelper)
Constructs this AbstractVisualMappingFunction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(CyRow row,
View<? extends CyIdentifiable> view)
Apply mapping to the view model.
|
String |
getMappingColumnName()
Returns attribute name used in this mapping.
|
Class<K> |
getMappingColumnType()
Returns data type of mapping attribute.
|
VisualProperty<V> |
getVisualProperty()
Visual Property associated with this function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMappedValueprotected final String columnName
protected final VisualProperty<V> vp
protected final CyEventHelper eventHelper
public AbstractVisualMappingFunction(String columnName, Class<K> columnType, VisualProperty<V> vp, CyEventHelper eventHelper)
columnName - Mapping attribute column name.columnType - Type of attribute column.vp - Visual Property used in this mapping.public String getMappingColumnName()
VisualMappingFunctiongetMappingColumnName in interface VisualMappingFunction<K,V>public Class<K> getMappingColumnType()
VisualMappingFunctiongetMappingColumnType in interface VisualMappingFunction<K,V>public VisualProperty<V> getVisualProperty()
VisualMappingFunctiongetVisualProperty in interface VisualMappingFunction<K,V>public void apply(CyRow row, View<? extends CyIdentifiable> view)
VisualMappingFunctionapply in interface VisualMappingFunction<K,V>row - The data row used to create the visual property value
for the specified view.view - target View model to be updated. View should be one of the
following: Node, Edge, or Network.Copyright 2011 Cytoscape Consortium. All rights reserved.