Search this API

y.view.hierarchy
Interface HierarchyManager.InterEdgeData

Enclosing class:
HierarchyManager

public static interface HierarchyManager.InterEdgeData

Specifies the general contract for storing and retrieving additional data for inter-edges.

 

Field Summary
static java.lang.String SOURCE_PORT_KEY
          Key for storing mappings of nodes to node ports.
static java.lang.String TARGET_PORT_KEY
          Key for storing mappings of nodes to node ports.
 
Method Summary
 java.lang.Object get(java.lang.String key)
          Returns the value that has been stored for the specified key.
 Node getRealSource()
          Returns the real source node of the inter-edge to which this data object is associated.
 Node getRealTarget()
          Returns the real target node of the inter-edge to which this data object is associated.
 java.lang.Object put(java.lang.String key, java.lang.Object value)
          Stores the specified value using the specified lookup key.
 java.lang.Object remove(java.lang.String key)
          Removes the key-value pair for the specified key.
 

Field Detail

SOURCE_PORT_KEY

static final java.lang.String SOURCE_PORT_KEY
Key for storing mappings of nodes to node ports. Values have to be instances of Map. The stored mappings are used to bind inter edges to source node ports whenever an endpoint of an inter edge is changed due to a group being closed or a folder being opened.

See Also:
Constant Field Values

TARGET_PORT_KEY

static final java.lang.String TARGET_PORT_KEY
Key for storing mappings of nodes to node ports. Values have to be instances of Map. The stored mappings are used to bind inter edges to target node ports whenever an endpoint of an inter edge is changed due to a group being closed or a folder being opened.

See Also:
Constant Field Values
Method Detail

getRealSource

Node getRealSource()
Returns the real source node of the inter-edge to which this data object is associated.

Returns:
the real source node of the inter-edge to which this data object is associated.

getRealTarget

Node getRealTarget()
Returns the real target node of the inter-edge to which this data object is associated.

Returns:
the real target node of the inter-edge to which this data object is associated.

get

java.lang.Object get(java.lang.String key)
Returns the value that has been stored for the specified key.

Parameters:
key - the key whose associated value is to be returned.
Returns:
the value that has been stored for the specified key or null if no value has been stored for the key.

remove

java.lang.Object remove(java.lang.String key)
Removes the key-value pair for the specified key.

Parameters:
key - the key whose associated key-value pair is removed.
Returns:
the value that has been stored for the specified key or null if no value has been stored for the key.

put

java.lang.Object put(java.lang.String key,
                     java.lang.Object value)
Stores the specified value using the specified lookup key.

Parameters:
key - key with which the specified value is to be associated.
value - value to be associated with the specified key.
Returns:
the value that has been stored for the specified key or null if no value has been stored for the key.

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.