Cytoscape 3.0.1 API

org.cytoscape.view.vizmap.mappings
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>

An interface describing a discrete mapping from attribute value to visual property.


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 Summary
static String DISCRETE
          A label string describing the mapping.
 
Method Summary
 Map<K,V> getAll()
          Gets all map values.
 V getMapValue(K key)
          Gets Value for Specified Key.
<T extends V>
void
putAll(Map<K,T> map)
          Adds All Members of Specified Map.
<T extends V>
void
putMapValue(K key, T value)
          Puts New Key/Value in Map.
 
Methods inherited from interface org.cytoscape.view.vizmap.VisualMappingFunction
apply, getMappedValue, getMappingColumnName, getMappingColumnType, getVisualProperty
 

Field Detail

DISCRETE

static final String DISCRETE
A label string describing the mapping.

See Also:
Constant Field Values
Method Detail

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.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.