Search this API

y.layout.hierarchic.incremental
Interface LayerConstraint


public interface LayerConstraint

This class represents a layering constraint. Such constraints can be given as additional input to the IncrementalHierarchicLayouter.

See Also:
LayerConstraintFactory

Method Summary
 int getPriority()
          Returns the priority of a constraint.
 void setPriority(int priority)
          Sets the priority of a constraint.
 

Method Detail

getPriority

int getPriority()
Returns the priority of a constraint. This value is used for resolving conflicting constraints. A constraint with a higher priority (int value) is more likely to be considered.

Returns:
the priority of the constraint.
See Also:
setPriority(int)

setPriority

void setPriority(int priority)
Sets the priority of a constraint. This value is used for resolving conflicting constraints. A constraint with a higher priority (int value) is more likely to be considered. The lowest (and default) priority is 1.

Parameters:
priority - the priority set to the constraint.
See Also:
getPriority()

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