|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.media.impl.TransientTextScroll
A text scroll block.
Field Summary |
Fields inherited from interface gzz.media.TextScrollBlock |
rcsid |
Constructor Summary | |
TransientTextScroll()
|
Method Summary | |
TextSpan |
append(char ch)
Do compare by identity for now! public boolean equals(Object o) { if(!(o instanceof ScrollBlock)) return false; if(this == o) return true; if(mediaserverId == null) return false; ScrollBlock sb = (ScrollBlock)o; return sb.getID().equals(getID()); } public int hashCode() { if(mediaserverId == null) throw new Error("Not finalized-- cannot hash yet"); return getID().hashCode(); } public String toString() { return "TransientTextScroll<"+getID()+">"; } |
TextSpan |
append(java.lang.String s)
|
char[] |
getCharArray()
Get the internal character array of this scrollblock. |
Span |
getCurrent()
Get the current contents of this block as a single span of the appropriate type. |
java.lang.String |
getID()
Get the globally unique identifier of this block. |
Span |
getSpan(int offs1,
int offs2)
Get a span that represents the given range inside this scrollblock. |
boolean |
isFinalized()
Whether this block has been finalized or whether more can be appended. |
Mediaserver.Id |
saveOrGetId(Mediaserver saveTo)
Get the Mediaserver id of this block; save when not saved yet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransientTextScroll()
Method Detail |
public TextSpan append(char ch) throws gzz.errors.ImmutableException
append
in interface TextScrollBlock
gzz.errors.ImmutableException
public TextSpan append(java.lang.String s) throws gzz.errors.ImmutableException
append
in interface TextScrollBlock
gzz.errors.ImmutableException
public Span getCurrent()
ScrollBlock
getCurrent
in interface ScrollBlock
public Span getSpan(int offs1, int offs2)
TextScrollBlock
getSpan
in interface TextScrollBlock
offs1
- The offset the span should start at.offs2
- The one-past-end offset.public boolean isFinalized()
ScrollBlock
isFinalized
in interface ScrollBlock
public java.lang.String getID()
ScrollBlock
getID
in interface ScrollBlock
public Mediaserver.Id saveOrGetId(Mediaserver saveTo) throws java.io.IOException
ScrollBlockManager.MediaserverScrollBlock
saveOrGetId
in interface ScrollBlockManager.MediaserverScrollBlock
java.io.IOException
public char[] getCharArray()
TextScrollBlock
THE RETURNED CHARACTER ARRAY MUST NOT BE MODIFIED UNDER ANY CIRCUMSTANCES.
getCharArray
in interface TextScrollBlock
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |