Package cz.vutbr.fit.layout.model
Interface ContentLine
-
- All Superinterfaces:
Collection<ContentRect>
,Iterable<ContentRect>
,List<ContentRect>
- All Known Implementing Classes:
DefaultContentLine
public interface ContentLine extends List<ContentRect>
A sequence of areas representing the contents of a text line. It is generally a list of areas that corresponds to a physical or logical line of contents.- Author:
- burgetr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentRect
getAreaAfter(ContentRect area)
Finds the area that follows the given area on the line.ContentRect
getAreaBefore(ContentRect area)
Finds the area that precedes the given area on the line.-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
-
-
-
Method Detail
-
getAreaBefore
ContentRect getAreaBefore(ContentRect area)
Finds the area that precedes the given area on the line.- Parameters:
area
- the given area- Returns:
- the preceding area or
null
ifarea
is the first area in the line.
-
getAreaAfter
ContentRect getAreaAfter(ContentRect area)
Finds the area that follows the given area on the line.- Parameters:
area
- the given area- Returns:
- the following area or
null
ifarea
is the last area in the line.
-
-