K
- Attribute object type. This is the key of mapping (Can
be any objects)V
- Visual property value type. (can be any type)public interface VisualMappingFunction<K,V>
K(Attribute) ---> V(Visual Property)
K will be used in implementations.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 | Method and Description |
---|---|
void |
apply(CyRow row,
View<? extends CyIdentifiable> view)
Apply mapping to the view model.
|
V |
getMappedValue(CyRow row)
Returns the mapped value for a CyRow.
|
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.
|
String getMappingColumnName()
Class<K> getMappingColumnType()
VisualProperty<V> getVisualProperty()
void apply(CyRow row, View<? extends CyIdentifiable> view)
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-2015 Cytoscape Consortium. All rights reserved.