|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.media.impl.ScrollBlockManager.SpanBase | +--gzz.media.impl.ScrollBlockManager.Span1DBase
A base class for 1-D spans. Implements everything except the actual getText().
Field Summary | |
protected int |
offs0
|
protected int |
offs1
|
Fields inherited from interface gzz.media.Span1D |
rcsid |
Constructor Summary | |
protected |
ScrollBlockManager.Span1DBase(ScrollBlockManager.MediaserverScrollBlock sb,
int offs0,
int offs1)
Create a new 1-D span, which starts at offs0 and ends just before offs1 - analogous to String.substring. |
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. |
protected abstract ScrollBlockManager.Span1DBase |
createNew(int offs0,
int offs1)
|
boolean |
equals(java.lang.Object o)
|
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 |
hashCode()
|
boolean |
intersects(Span s)
Whether this span and the given span intersect. |
boolean |
intersectsAfter(Span s)
|
boolean |
intersectsBefore(Span s)
|
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(). |
java.lang.String |
toString()
|
Methods inherited from class gzz.media.impl.ScrollBlockManager.SpanBase |
getScrollBlock |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gzz.media.Span |
getScrollBlock |
Field Detail |
protected int offs0
protected int offs1
Constructor Detail |
protected ScrollBlockManager.Span1DBase(ScrollBlockManager.MediaserverScrollBlock sb, int offs0, int offs1)
Method Detail |
public int hashCode()
hashCode
in class java.lang.Object
public int offset()
Span1D
offset
in interface Span1D
public int length()
Span1D
length
in interface Span1D
public Span1D subSpan(int o1, int o2)
Span1D
subSpan
in interface Span1D
protected abstract ScrollBlockManager.Span1DBase createNew(int offs0, int offs1)
public Span1D subSpan(int o1)
Span1D
subSpan
in interface Span1D
public int getRelativeStart(Span1D subspan)
Span1D
getRelativeStart
in interface Span1D
public int getRelativeEnd(Span1D subspan)
Span1D
getRelativeEnd
in interface Span1D
public Span1D append(Span s)
Span1D
append
in interface Span1D
public boolean intersects(Span s)
Span
intersects
in interface Span
public boolean intersectsAfter(Span s)
public boolean intersectsBefore(Span s)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in interface Span
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |