gzz.media.impl
Class FakeTextSpan.FakeTextScrollBlock

java.lang.Object
  |
  +--gzz.media.impl.FakeTextSpan.FakeTextScrollBlock
All Implemented Interfaces:
ScrollBlock, TextScrollBlock
Enclosing class:
FakeTextSpan

protected class FakeTextSpan.FakeTextScrollBlock
extends java.lang.Object
implements TextScrollBlock


Field Summary
 
Fields inherited from interface gzz.media.TextScrollBlock
rcsid
 
Constructor Summary
protected FakeTextSpan.FakeTextScrollBlock()
           
 
Method Summary
 TextSpan append(char ch)
           
 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 offs, int len)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeTextSpan.FakeTextScrollBlock

protected FakeTextSpan.FakeTextScrollBlock()
Method Detail

getID

public java.lang.String getID()
Description copied from interface: ScrollBlock
Get the globally unique identifier of this block. XXX Exact semantics, tmp ids

Specified by:
getID in interface ScrollBlock

getCurrent

public Span getCurrent()
Description copied from interface: ScrollBlock
Get the current contents of this block as a single span of the appropriate type.

Specified by:
getCurrent in interface ScrollBlock

isFinalized

public boolean isFinalized()
Description copied from interface: ScrollBlock
Whether this block has been finalized or whether more can be appended.

Specified by:
isFinalized in interface ScrollBlock

append

public TextSpan append(char ch)
                throws gzz.errors.ImmutableException
Specified by:
append in interface TextScrollBlock
gzz.errors.ImmutableException

append

public TextSpan append(java.lang.String s)
                throws gzz.errors.ImmutableException
Specified by:
append in interface TextScrollBlock
gzz.errors.ImmutableException

getCharArray

public char[] getCharArray()
Description copied from interface: TextScrollBlock
Get the internal character array of this scrollblock. This is used for speeding up drawing strings from a TextScrollBlock by being able to give a scrollblock and two offsets to the drawing routines.

THE RETURNED CHARACTER ARRAY MUST NOT BE MODIFIED UNDER ANY CIRCUMSTANCES.

Specified by:
getCharArray in interface TextScrollBlock

getSpan

public Span getSpan(int offs,
                    int len)
Description copied from interface: TextScrollBlock
Get a span that represents the given range inside this scrollblock. Equivalent to getCurrent().subSpan(offs1,offs2).

Specified by:
getSpan in interface TextScrollBlock
Parameters:
offs - The offset the span should start at.
len - The one-past-end offset.