Search this API

y.layout.hierarchic.incremental
Interface IntValueHolder


public interface IntValueHolder

This interface provides methods for storing and retrieving layering information for the hierarchic layout.

To obtain the layering information, users have to register a DataProvider with key HierarchicLayouter.LAYER_VALUE_HOLDER_DPKEY that holds an instance of this class for each node.

See Also:
HierarchicLayouter.LAYER_VALUE_HOLDER_DPKEY, IntValueHolderAdapter
 

Method Summary
 int getValue()
          Returns the value of the current context.
 boolean providesValue()
          Returns whether or not the current context provides a value.
 void setValue(int value)
          Specifies the value of the current context.
 

Method Detail

setValue

void setValue(int value)
Specifies the value of the current context.

Parameters:
value - the given value

getValue

int getValue()
Returns the value of the current context.

Returns:
the current value
See Also:
setValue(int)

providesValue

boolean providesValue()
Returns whether or not the current context provides a value.

Returns:
true if the current context provides a value, false otherwise

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