|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lizardtech.djvu.DjVuObject
com.lizardtech.djvu.GRect
com.lizardtech.djvu.text.DjVuText.Zone
public static class DjVuText.Zone
Data structure representing document textual components. The text structure is represented by a hierarchy of rectangular zones.
Field Summary | |
---|---|
boolean |
add_separators
Controls whether separators are added between lexical elements. |
java.util.Vector |
children
List of children zone. |
int |
text_length
Length of the zone text in substring textByteArray. |
int |
text_start
Position of the zone text in substring textByteArray. |
int |
ztype
Type of the zone. |
Fields inherited from class com.lizardtech.djvu.GRect |
---|
xmax, xmin, ymax, ymin |
Fields inherited from class com.lizardtech.djvu.DjVuObject |
---|
hasReferences |
Constructor Summary | |
---|---|
DjVuText.Zone()
Creates a new Zone object. |
Method Summary | |
---|---|
DjVuText.Zone |
append_child()
Appends another subzone inside this zone. |
void |
append_zones(java.util.Vector list,
int start,
int end)
Find the zones used by the specified substring and append them to the list. |
DjVuText.Zone |
get_parent()
Find out this Zone's parent. |
void |
get_smallest(java.util.Vector list)
Finds the smallest rectangles and appends them to the list. |
void |
get_smallest(java.util.Vector list,
int padding)
Finds the smallest rectangles and appends them to the list after padding the smallest unit to fit width or height for the parent rectangle and adding the number of specified pixels. |
void |
get_text_with_rect(GRect box,
NumContext byteArray_start,
NumContext byteArray_end)
Find the text_start and text_end indicated by the given box. |
Methods inherited from class com.lizardtech.djvu.GRect |
---|
area, clear, clone, contains, contains, equals, height, inflate, intersect, isEmpty, recthull, translate, width |
Methods inherited from class com.lizardtech.djvu.DjVuObject |
---|
checkLockTime, create, create, createSoftReference, createWeakReference, getDjVuOptions, getFromReference, invoke, setDjVuOptions |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.Vector children
public boolean add_separators
public int text_length
public int text_start
public int ztype
Constructor Detail |
---|
public DjVuText.Zone()
Method Detail |
---|
public DjVuText.Zone append_child()
public void append_zones(java.util.Vector list, int start, int end)
list
- vector to append zones tostart
- byte position to listend
- byte position to listpublic DjVuText.Zone get_parent()
public void get_smallest(java.util.Vector list)
list
- vector to append zones topublic void get_smallest(java.util.Vector list, int padding)
list
- vector to append zones topadding
- number of pixels to expand each zone bypublic void get_text_with_rect(GRect box, NumContext byteArray_start, NumContext byteArray_end)
box
- DOCUMENT ME!byteArray_start
- DOCUMENT ME!byteArray_end
- DOCUMENT ME!
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |