|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlapis.RegionSet
lapis.SingleDocRegionSet
lapis.trees.RegionArray
Region array. Sorted list of region rectangles.
Nested Class Summary |
Nested classes inherited from class lapis.RegionSet |
RegionSet.IntersectOp |
Field Summary | |
static Debug |
debug
|
Fields inherited from class lapis.SingleDocRegionSet |
FUZZY_HIGH, FUZZY_LOW |
Fields inherited from class lapis.RegionSet |
DISJOINT, EMPTY, EQUAL, MAX_INDEX, MIN_INDEX, SUBSET, SUPERSET, UNRELATED |
Constructor Summary | |
|
RegionArray()
Make a new, empty RegionArray. |
|
RegionArray(DocumentVersion ver)
|
|
RegionArray(int size)
Make a new, empty RegionArray. |
|
RegionArray(int size,
DocumentVersion ver)
|
protected |
RegionArray(RegionArray ra,
boolean copy)
Copy a RegionArray. |
Methods inherited from class lapis.SingleDocRegionSet |
getBoundingBox, lessThan |
Methods inherited from class lapis.RegionSet |
after, afterDelimited, afterIn, ancestor, and, balancedWith, before, beforeDelimited, beforeIn, butnot, compareTo, convert, convert, convertToLatest, countIntersection, crispen, descendant, endingContains, endingDelimited, endingIn, endOf, equals, equalTo, flatten, fromTo, getDocuments, getUniversal, hashCode, highlight, include, intersect, intersects, intersects, isAllPoints, isCrisp, isEmpty, isFlat, justAfterDelimited, justBeforeDelimited, melt, mightEnclose, mightIntersect, nextTo, nth, or, overlaps, overlapsEnd, overlapsStart, regions, separatedBy, slowEquals, startingContains, startingDelimited, startingIn, startOf, stripEmptyRegions, toString, toStringWithContent, trim |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static Debug debug
Constructor Detail |
public RegionArray()
public RegionArray(DocumentVersion ver)
public RegionArray(int size)
size
- Expected number of regionspublic RegionArray(int size, DocumentVersion ver)
protected RegionArray(RegionArray ra, boolean copy)
Method Detail |
public int getStartLow()
getStartLow
in class SingleDocRegionSet
public int getStartHigh()
getStartHigh
in class SingleDocRegionSet
public int getEndLow()
getEndLow
in class SingleDocRegionSet
public int getEndHigh()
getEndHigh
in class SingleDocRegionSet
public int getSize()
getSize
in class RegionSet
public void insert(Region s) throws RepresentationChangeException
Mutable
insert
in interface Mutable
s
- region to be inserted
RepresentationChangeException
public void insert(RegionSet s) throws RepresentationChangeException
Mutable
insert
in interface Mutable
s
- region set to be inserted
RepresentationChangeException
public void insert(int start, int end, DocumentVersion ver) throws RepresentationChangeException
Mutable
insert
in interface Mutable
start
- region's start indexend
- region's end indexver
- region's version
RepresentationChangeException
public void delete(Region s) throws RepresentationChangeException
Mutable
delete
in interface Mutable
s
- region to be deleted
RepresentationChangeException
public void delete(RegionSet s) throws RepresentationChangeException
Mutable
delete
in interface Mutable
s
- region set to be deleted
RepresentationChangeException
public void validate()
public RegionSet convert(CoordinateMap coords, DocumentVersion ver)
convert
in class SingleDocRegionSet
public RegionSet convert(CoordinateMap coords)
convert
in class SingleDocRegionSet
public RegionSet convert(CoordinateMap coords, Document doc)
convert
in class SingleDocRegionSet
public int fuzzify(int x, int direction)
fuzzify
in class SingleDocRegionSet
public RegionSet freeze()
RegionSet
freeze
in class RegionSet
public SubsetEnumeration subsets()
subsets
in class RegionSet
public RegionEnumeration regions(Region bbox)
regions
in class RegionSet
public RegionEnumeration regions(RegionSet bboxs)
RegionSet
regions
in class RegionSet
bboxs
- region set consisting of bounding boxes, one from each document
public RegionSet justBefore(RegionSet bgd)
justBefore
in class RegionSet
public RegionSet justAfter(RegionSet bgd)
justAfter
in class RegionSet
public RegionSet starting(RegionSet bgd)
starting
in class RegionSet
public RegionSet ending(RegionSet bgd)
ending
in class RegionSet
public RegionSet in()
in
in class RegionSet
public RegionSet contains()
contains
in class RegionSet
public SubsetEnumeration singleDocize()
singleDocize
in class RegionSet
public DocumentVersion getVersion()
getVersion
in class SingleDocRegionSet
public Document getDocument()
getDocument
in class SingleDocRegionSet
public SingleDocRegionSet getSingleDocRegionSet(Document doc)
getSingleDocRegionSet
in class RegionSet
public Versions getVersions()
getVersions
in class RegionSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |