gzz.media
Interface Span

gzz.media.Span gzz.media.Enfilade1D gzz.media.Span1D gzz.media.TextSpan gzz.media.ImageSpan gzz.media.PageSpan gzz.media.VideoSpan gzz.media.AudioSpan gzz.media.ScrollBlock ../../../Gzz_CoreAPIs.gen.html#media media_small
All Known Subinterfaces:
AudioSpan, ImageSpan, PageSpan, Span1D, TextSpan, VideoSpan
All Known Implementing Classes:
FakeTextSpan, ScrollBlockManager.ImageSpanBase, ScrollBlockManager.PageSpanBase, ScrollBlockManager.Span1DBase, ScrollBlockManager.SpanBase

public interface Span

An address span in the stable media streams. This is abstract since we have different kinds of spans for text, images and video, with different operations.

Spans are immutable, just like Strings: all the verb-like methods such as join and split return new Span objects.

Spans are always of some type, like TextSpan or ImageSpan, and belong to a particular ScrollBlock.

See Also:
Span, Span1D, TextSpan, ImageSpan, ScrollBlock

Field Summary
static java.lang.String rcsid
           
 
Method Summary
 ScrollBlock getScrollBlock()
          Get the ScrollBlock that this span points to.
 boolean intersects(Span s)
          Whether this span and the given span intersect.
 java.lang.String toString()
           
 

Field Detail

rcsid

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

intersects

public boolean intersects(Span s)
Whether this span and the given span intersect.


getScrollBlock

public ScrollBlock getScrollBlock()
Get the ScrollBlock that this span points to.