Interface DiscreteMapping<K,V>

Type Parameters:
K - Generic type of the attribute mapped.
V - Generic type of the VisualProperty used in this mapping.
All Superinterfaces:
VisualMappingFunction<K,V>

public interface DiscreteMapping<K,V> extends VisualMappingFunction<K,V>

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>

Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
  • Field Details

  • Method Details

    • getMapValue

      V getMapValue(K key)
      Gets Value for Specified Key.
      Parameters:
      key - String Key.
      Returns:
      Object.
    • putMapValue

      <T extends V> void putMapValue(K key, T value)
      Puts New Key/Value in Map.
      Parameters:
      key - Key Object.
      value - Value Object.
    • putAll

      <T extends V> void putAll(Map<K,T> map)
      Adds All Members of Specified Map.
      Parameters:
      map - Map.
    • getAll

      Map<K,V> getAll()
      Gets all map values.
      Returns:
      all map values.