gzz.media.impl
Class SimpleImageScroll

java.lang.Object
  |
  +--gzz.media.impl.SimpleImageScroll
All Implemented Interfaces:
ScrollBlock, ScrollBlockManager.MediaserverScrollBlock

public class SimpleImageScroll
extends java.lang.Object
implements ScrollBlockManager.MediaserverScrollBlock

An image scrollblock


Field Summary
 
Fields inherited from interface gzz.media.ScrollBlock
rcsid
 
Constructor Summary
SimpleImageScroll(java.awt.Image im, int width, int height)
           
SimpleImageScroll(Mediaserver.Id id, java.awt.Image im, int width, int height)
           
SimpleImageScroll(Mediaserver ms, Mediaserver.Id id)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 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 x, int y, int w, int h)
           
 int hashCode()
           
 java.lang.String imageFilename()
           
 boolean isFinalized()
          Whether this block has been finalized or whether more can be appended.
 Mediaserver.Id saveOrGetId(Mediaserver ms)
          Get the Mediaserver id of this block; save when not saved yet.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleImageScroll

public SimpleImageScroll(Mediaserver.Id id,
                         java.awt.Image im,
                         int width,
                         int height)

SimpleImageScroll

public SimpleImageScroll(java.awt.Image im,
                         int width,
                         int height)

SimpleImageScroll

public SimpleImageScroll(Mediaserver ms,
                         Mediaserver.Id id)
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

saveOrGetId

public Mediaserver.Id saveOrGetId(Mediaserver ms)
Description copied from interface: ScrollBlockManager.MediaserverScrollBlock
Get the Mediaserver id of this block; save when not saved yet.

Specified by:
saveOrGetId in interface ScrollBlockManager.MediaserverScrollBlock

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

imageFilename

public java.lang.String imageFilename()

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

getSpan

public Span getSpan(int x,
                    int y,
                    int w,
                    int h)

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