|
Cytoscape 3.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cytoscape.view.vizmap.mappings.AbstractVisualMappingFunction<K,V>
K
- Generic type of the attribute mapped.V
- Generic type of the VisualProperty
used in this mapping.public abstract class AbstractVisualMappingFunction<K,V>
A base class for visual mapping functions where all fields are immutable.
Field Summary | |
---|---|
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 Summary | |
---|---|
AbstractVisualMappingFunction(String columnName,
Class<K> columnType,
VisualProperty<V> vp,
CyEventHelper eventHelper)
Constructs this AbstractVisualMappingFunction. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.cytoscape.view.vizmap.VisualMappingFunction |
---|
getMappedValue |
Field Detail |
---|
protected final String columnName
protected final Class<K> columnType
protected final VisualProperty<V> vp
protected final CyEventHelper eventHelper
Constructor Detail |
---|
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.Method Detail |
---|
public String getMappingColumnName()
VisualMappingFunction
getMappingColumnName
in interface VisualMappingFunction<K,V>
public Class<K> getMappingColumnType()
VisualMappingFunction
getMappingColumnType
in interface VisualMappingFunction<K,V>
public VisualProperty<V> getVisualProperty()
VisualMappingFunction
getVisualProperty
in interface VisualMappingFunction<K,V>
public void apply(CyRow row, View<? extends CyIdentifiable> view)
VisualMappingFunction
apply
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.
|
Cytoscape 3.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |