Cytoscape 2.8.0 API

cytoscape.data.attr
Interface MultiHashMapListener


public interface MultiHashMapListener

A hook to receive notification when attribute values are set and removed from objects.


Method Summary
 void allAttributeValuesRemoved(String objectKey, String attributeName)
          This listener method gets called as a result of MultiHashMap.removeAllAttributeValues(objectKey, attributeName), but only if objectKey has at least one attribute value bound in attributeName.
 void attributeValueAssigned(String objectKey, String attributeName, Object[] keyIntoValue, Object oldAttributeValue, Object newAttributeValue)
           
 void attributeValueRemoved(String objectKey, String attributeName, Object[] keyIntoValue, Object attributeValue)
          This listener method gets called as a result of MultiHashMap.removeAttributeValue(objectKey, attributeName, keyIntoValue), but only if an attribute value was found [and removed] for specified key.
 

Method Detail

attributeValueAssigned

void attributeValueAssigned(String objectKey,
                            String attributeName,
                            Object[] keyIntoValue,
                            Object oldAttributeValue,
                            Object newAttributeValue)
Parameters:
keyIntoValue - don't modify this array; this array will be null if attributeName has a zero-dimensional keyspace.
oldAttributeValue - the previous attribute value that was bound at specified key sequence, or null if no previous attribute value was bound.
newAttributeValue - the new attribute value that is now bound at specified key sequence.

attributeValueRemoved

void attributeValueRemoved(String objectKey,
                           String attributeName,
                           Object[] keyIntoValue,
                           Object attributeValue)
This listener method gets called as a result of MultiHashMap.removeAttributeValue(objectKey, attributeName, keyIntoValue), but only if an attribute value was found [and removed] for specified key. The parameter attributeValue in this listener method is the value that is returned by MultiHashMap.removeAttributeValue(), and it is never null.

Parameters:
keyIntoValue - don't modify this array; this array will be null if attributeName has a zero-dimensional keyspace.

allAttributeValuesRemoved

void allAttributeValuesRemoved(String objectKey,
                               String attributeName)
This listener method gets called as a result of MultiHashMap.removeAllAttributeValues(objectKey, attributeName), but only if objectKey has at least one attribute value bound in attributeName.


Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.