|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.media.impl.ScrollBlockManager
A central place which takes care of the ordering of scroll blocks. At the moment, the ordering is transient.
Nested Class Summary | |
static class |
ScrollBlockManager.CannotLoadScrollBlockException
|
static class |
ScrollBlockManager.ImageSpanBase
A base class for image spans. |
static interface |
ScrollBlockManager.MediaserverScrollBlock
A scrollblock that is associated with a Mediaserver block. |
static class |
ScrollBlockManager.PageSpanBase
A base class for page spans. |
static class |
ScrollBlockManager.Span1DBase
A base class for 1-D spans. |
static class |
ScrollBlockManager.SpanBase
A base class for physical spans that belong to one particular scrollblock. |
Field Summary | |
static boolean |
dbg
|
Constructor Summary | |
ScrollBlockManager()
|
Method Summary | |
static int |
compare(ScrollBlock s1,
ScrollBlock s2)
Give an ordering of the given scrollblocks. |
static ScrollBlockManager.MediaserverScrollBlock |
getScrollBlock(Mediaserver ms,
Mediaserver.Id id)
|
static ScrollBlockManager.MediaserverScrollBlock |
getScrollBlock(Mediaserver ms,
Mediaserver.Id id,
boolean lazy)
Get a scrollblock from a mediaserver block. |
static Span |
getSpan(Mediaserver ms,
Mediaserver.Id id,
int x,
int y,
int w,
int h)
|
static Span |
getSpan(Mediaserver ms,
Mediaserver.Id id,
int poffs,
int plen,
int x,
int y,
int w,
int h)
|
static TextScrollBlock |
getTextScrollBlock(Mediaserver ms,
Mediaserver.Id id)
We can use this if we know a specific scroll block is a text scroll block. |
static java.lang.String |
getTmpID()
Create a new temporary ID for a scrollblock. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean dbg
Constructor Detail |
public ScrollBlockManager()
Method Detail |
public static int compare(ScrollBlock s1, ScrollBlock s2)
public static java.lang.String getTmpID()
public static Span getSpan(Mediaserver ms, Mediaserver.Id id, int x, int y, int w, int h)
public static Span getSpan(Mediaserver ms, Mediaserver.Id id, int poffs, int plen, int x, int y, int w, int h)
public static TextScrollBlock getTextScrollBlock(Mediaserver ms, Mediaserver.Id id) throws ScrollBlockManager.CannotLoadScrollBlockException
ScrollBlockManager.CannotLoadScrollBlockException
public static ScrollBlockManager.MediaserverScrollBlock getScrollBlock(Mediaserver ms, Mediaserver.Id id, boolean lazy) throws ScrollBlockManager.CannotLoadScrollBlockException
Maybe the space storage formats should be extended to include enough information on the scrollblocks: type (image/text/page/audio/video), size in standard coordinates.
OTOH, we may be able to do this on the mediaserver side, propagating the headers of blocks...
ScrollBlockManager.CannotLoadScrollBlockException
public static ScrollBlockManager.MediaserverScrollBlock getScrollBlock(Mediaserver ms, Mediaserver.Id id) throws ScrollBlockManager.CannotLoadScrollBlockException
ScrollBlockManager.CannotLoadScrollBlockException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |