|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.media.impl.FakeTextSpan
An object that behaves like a text span but is not stored in a real Storm block. Used for things like coordinates or other computer-generated rapidly changing content. Must be atomic: if you give one piece away, you give the whole thing away. Must be short, because the whole thing is repeated whereever one piece goes. See PEG miniblocks--benja.
Nested Class Summary | |
protected class |
FakeTextSpan.FakeTextScrollBlock
|
Field Summary | |
static java.lang.String |
rcsid
|
Constructor Summary | |
FakeTextSpan(java.lang.String s)
|
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. |
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. |
ScrollBlock |
getScrollBlock()
Get the ScrollBlock that this span points to. |
java.lang.String |
getText()
Get the string contained in the span. |
int |
hashCode()
|
boolean |
intersects(Span s)
Whether this span and the given span intersect. |
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String rcsid
Constructor Detail |
public FakeTextSpan(java.lang.String s)
Method Detail |
public java.lang.String getText()
TextSpan
getText
in interface TextSpan
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
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 equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface Span
toString
in class java.lang.Object
public boolean intersects(Span s)
Span
intersects
in interface Span
public ScrollBlock getScrollBlock()
Span
getScrollBlock
in interface Span
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |