gzz.media
Interface TextScrollBlock

All Superinterfaces:
ScrollBlock
All Known Implementing Classes:
FakeTextSpan.FakeTextScrollBlock, PermanentTextScroll, TransientTextScroll

public interface TextScrollBlock
extends ScrollBlock

A text scroll block.


Field Summary
static java.lang.String rcsid
           
 
Method Summary
 TextSpan append(char ch)
           
 TextSpan append(java.lang.String s)
           
 char[] getCharArray()
          Get the internal character array of this scrollblock.
 Span getSpan(int offs1, int offs2)
          Get a span that represents the given range inside this scrollblock.
 
Methods inherited from interface gzz.media.ScrollBlock
getCurrent, getID, isFinalized
 

Field Detail

rcsid

public static final java.lang.String rcsid
See Also:
Constant Field Values
Method Detail

append

public TextSpan append(char ch)
                throws gzz.errors.ImmutableException
gzz.errors.ImmutableException

append

public TextSpan append(java.lang.String s)
                throws gzz.errors.ImmutableException
gzz.errors.ImmutableException

getCharArray

public char[] getCharArray()
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.


getSpan

public Span getSpan(int offs1,
                    int offs2)
Get a span that represents the given range inside this scrollblock. Equivalent to getCurrent().subSpan(offs1,offs2).

Parameters:
offs1 - The offset the span should start at.
offs2 - The one-past-end offset.