public enum HorizontalOverlapCriterion extends Enum<HorizontalOverlapCriterion>
ShuffleLayout
.Enum Constant and Description |
---|
INTERSECTION_BOX
Horizontal overlap criterion defining an overlap as horizontal if the overlapping area is greater in height than in
width.
|
LESS_MOVEMENT
Horizontal overlap criterion categorizing an overlap as horizontal if the required movement for solving the overlap is
shorter in horizontal direction than in vertical direction.
|
NODE_CENTER
Horizontal overlap criterion categorizing an overlap as horizontal if the center-to-center difference between the
overlapping nodes is greater in horizontal direction (x-coordinates) than in vertical direction (y-coordinates).
|
Modifier and Type | Method and Description |
---|---|
static HorizontalOverlapCriterion |
fromOrdinal(int ordinal) |
int |
value() |
static HorizontalOverlapCriterion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HorizontalOverlapCriterion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HorizontalOverlapCriterion INTERSECTION_BOX
Otherwise, if the overlap area's width is greater than or equal to its height, an overlap will be categorized as vertical.
The area of an overlap is defined as the rectangle where two nodes intersect with each other.
LESS_MOVEMENT
.ShuffleLayout.setHorizontalOverlapCriterion(HorizontalOverlapCriterion)
public static final HorizontalOverlapCriterion LESS_MOVEMENT
Otherwise, an overlap will be categorized as vertical.
This criterion tries to avoid moving nodes too much because the direction for resolving overlaps will be chosen such that the shorter movement is preferred.
INTERSECTION_BOX
.ShuffleLayout.setHorizontalOverlapCriterion(HorizontalOverlapCriterion)
public static final HorizontalOverlapCriterion NODE_CENTER
Otherwise, if the center-to-center difference between two overlapping nodes is greater in vertical direction (y-coordinates), the corresponding overlap is categorized as vertical. The same applies if the differences in vertical and horizontal direction are equal.
public static final HorizontalOverlapCriterion fromOrdinal(int ordinal)
public int value()
public static HorizontalOverlapCriterion valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static HorizontalOverlapCriterion[] values()
for (HorizontalOverlapCriterion c : HorizontalOverlapCriterion.values()) System.out.println(c);