Search this API

y.layout.hierarchic.incremental
Interface LayerConstraint


public interface LayerConstraint

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

See Also:
LayerConstraintFactory
 
Your browser does not support SVG content.

Method Summary
 int getPriority()
          Returns the priority of a constraint.
 void setPriority(int priority)
          Specifies 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 is more likely to be considered.

The priority has to be greater than 0.

Returns:
the constraint priority

setPriority

void setPriority(int priority)
Specifies the priority of a constraint.

This value is used for resolving conflicting constraints. A constraint with a higher priority is more likely to be considered.

The priority has to be greater than 0.

Default Value:
The default value is 1.
Parameters:
priority - the constraint priority

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