Cytoscape 3.0.1 API

org.cytoscape.view.vizmap.gui.util
Interface DiscreteMappingGenerator<V>

Type Parameters:
V - the type of the Visual Property.

public interface DiscreteMappingGenerator<V>

Generates Discrete mapping for a set of attribute values and a Visual Property.


Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.

Method Summary
<T> Map<T,V>
generateMap(Set<T> attributeSet)
          For a given set of attribute values, create discrete mapping.
 Class<V> getDataType()
          Returns the type of the visual property.
 

Method Detail

generateMap

<T> Map<T,V> generateMap(Set<T> attributeSet)
For a given set of attribute values, create discrete mapping.

Type Parameters:
T - the type of the attribute values.
Parameters:
attributeSet - the set of attribute values.
Returns:
a map between an attribute type and a visual property type.

getDataType

Class<V> getDataType()
Returns the type of the visual property.

Returns:
the type of the visual property.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.