public class AreaUtils extends Object
| Constructor and Description |
|---|
AreaUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.fit.layout.model.Area |
createSuperAreaFromVerticalRegion(org.fit.layout.model.Area root,
org.fit.layout.model.Rectangular region) |
static boolean |
isAligned(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2)
Checks if the given areas are aligned in row or column.
|
static boolean |
isInSameColumn(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2)
Checks if the given areas are in the same column.
|
static boolean |
isLink(org.fit.layout.model.Area a)
Checks if the given area has a target URL assigned (it acts as a link)
|
static boolean |
isNeighbor(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2)
Checks if the given areas are in the same visual group (i.e.
|
static boolean |
isOnSameLine(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2)
Checks if the given areas are on the same line.
|
static boolean |
isOnSameLine(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2,
int threshold)
Checks if the given areas are on the same line.
|
static boolean |
isOnSameLineRoughly(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2) |
public static boolean isNeighbor(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2)
a1 - a2 - public static boolean isOnSameLine(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2)
a1 - a2 - public static boolean isOnSameLine(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2,
int threshold)
a1 - a2 - public static boolean isOnSameLineRoughly(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2)
public static boolean isInSameColumn(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2)
a1 - a2 - public static boolean isAligned(org.fit.layout.model.Area a1,
org.fit.layout.model.Area a2)
a1 - a2 - public static boolean isLink(org.fit.layout.model.Area a)
a - public static org.fit.layout.model.Area createSuperAreaFromVerticalRegion(org.fit.layout.model.Area root,
org.fit.layout.model.Rectangular region)
Copyright © 2016. All rights reserved.