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.

    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>

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