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.

Module: vizmap-gui-api

To use this in your app, include the following dependency in your POM:

<dependency>
    <groupId>org.cytoscape</groupId>
    <artifactId>vizmap-gui-api</artifactId>
</dependency>
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Map<T,V>
    generateMap(Set<T> attributeSet)
    For a given set of attribute values, create discrete mapping.
    Returns the type of the visual property.
  • Method Details

    • 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.