gzz.media.impl
Class ScrollBlockManager.ImageSpanBase

java.lang.Object
  |
  +--gzz.media.impl.ScrollBlockManager.SpanBase
        |
        +--gzz.media.impl.ScrollBlockManager.ImageSpanBase
All Implemented Interfaces:
ImageSpan, java.io.Serializable, Span
Enclosing class:
ScrollBlockManager

public abstract static class ScrollBlockManager.ImageSpanBase
extends ScrollBlockManager.SpanBase
implements ImageSpan

A base class for image spans.

See Also:
Serialized Form

Field Summary
protected  int h
           
protected  int w
           
protected  int x
           
protected  int y
           
 
Fields inherited from interface gzz.media.Span
rcsid
 
Method Summary
protected abstract  ScrollBlockManager.ImageSpanBase createNew(int x, int y, int w, int h)
           
 boolean equals(java.lang.Object o)
           
 java.awt.Point getLocation()
          Get the location of this span in the mediaserver block.
 java.awt.Dimension getSize()
          Get the size of the image in pixels, at the default resolution.
 int hashCode()
           
 boolean intersects(Span s)
          Whether this span and the given span intersect.
 ImageSpan subArea(int x0, int y0, int w0, int h0)
          Get a subspan of the current span.
 
Methods inherited from class gzz.media.impl.ScrollBlockManager.SpanBase
getScrollBlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gzz.media.Span
getScrollBlock, toString
 

Field Detail

x

protected final int x

y

protected final int y

w

protected final int w

h

protected final int h
Method Detail

createNew

protected abstract ScrollBlockManager.ImageSpanBase createNew(int x,
                                                              int y,
                                                              int w,
                                                              int h)

hashCode

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

getSize

public java.awt.Dimension getSize()
Description copied from interface: ImageSpan
Get the size of the image in pixels, at the default resolution.

Specified by:
getSize in interface ImageSpan

getLocation

public java.awt.Point getLocation()
Description copied from interface: ImageSpan
Get the location of this span in the mediaserver block.

Specified by:
getLocation in interface ImageSpan

subArea

public ImageSpan subArea(int x0,
                         int y0,
                         int w0,
                         int h0)
Description copied from interface: ImageSpan
Get a subspan of the current span. The coordinates are relative to this span.

Specified by:
subArea in interface ImageSpan

intersects

public boolean intersects(Span s)
Description copied from interface: Span
Whether this span and the given span intersect.

Specified by:
intersects in interface Span

equals

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