|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A 1-dimensional span inside one document. The different routines use "natural units" the definition of which depends on the span type - see the appropriate subinterfaces. IMMUTABLE
Field Summary | |
static java.lang.String |
rcsid
|
Method Summary | |
Span1D |
append(Span s)
Return the span that results from appending the other span to this span, if the resulting span is contiguous. |
int |
getRelativeEnd(Span1D subspan)
Get the end of the given subspan, relative to the start of this. |
int |
getRelativeStart(Span1D subspan)
Get the start of the given subspan, relative to the start of this. |
int |
length()
Get the length of this span, in natural units. |
int |
offset()
Get the offset of this span inside the Mediaserver block, in natural units starting at zero. |
Span1D |
subSpan(int o1)
Return the subSpan starting at o1 in natural units and ending at the end of this span, analogous to java.lang.String.substring(). |
Span1D |
subSpan(int o1,
int o2)
Return the subSpan starting at o1 in natural units and ending just before o2, analogous to java.lang.String.substring(). |
Methods inherited from interface gzz.media.Span |
getScrollBlock, intersects, toString |
Field Detail |
public static final java.lang.String rcsid
Method Detail |
public int offset()
public int length()
public Span1D subSpan(int o1, int o2)
public Span1D subSpan(int o1)
public int getRelativeStart(Span1D subspan)
public int getRelativeEnd(Span1D subspan)
public Span1D append(Span s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |