gzz.media.impl
Class ScrollBlockManager.PageSpanBase

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

public abstract static class ScrollBlockManager.PageSpanBase
extends ScrollBlockManager.Span1DBase
implements PageSpan

A base class for page spans. This duplicates ImageSpanBase because Java doesn't allow multiple inheritance...

See Also:
Serialized Form

Field Summary
protected  int h
           
protected  int w
           
protected  int x
           
protected  int y
           
 
Fields inherited from class gzz.media.impl.ScrollBlockManager.Span1DBase
offs0, offs1
 
Fields inherited from interface gzz.media.Span
rcsid
 
Fields inherited from interface gzz.media.Span1D
rcsid
 
Method Summary
 Span1D append(Span s)
          Return the span that results from appending the other span to this span, if the resulting span is contiguous.
protected  ScrollBlockManager.Span1DBase createNew(int page0, int page1)
           
protected  ScrollBlockManager.PageSpanBase createNew(int x, int y, int w, int h)
           
protected abstract  ScrollBlockManager.PageSpanBase createNew(int page0, int page1, 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.
 PageSpan subArea(int p0, int p1)
           
 ImageSpan subArea(int x0, int y0, int w0, int h0)
          Get a subspan of the current span.
 PageSpan subArea(int p0, int p1, int x0, int y0, int w0, int h0)
          Get a subspan of the current span.
 
Methods inherited from class gzz.media.impl.ScrollBlockManager.Span1DBase
getRelativeEnd, getRelativeStart, intersectsAfter, intersectsBefore, length, offset, subSpan, subSpan, toString
 
Methods inherited from class gzz.media.impl.ScrollBlockManager.SpanBase
getScrollBlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gzz.media.Span
getScrollBlock, toString
 
Methods inherited from interface gzz.media.Span1D
getRelativeEnd, getRelativeStart, length, offset, subSpan, subSpan
 

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.PageSpanBase createNew(int page0,
                                                             int page1,
                                                             int x,
                                                             int y,
                                                             int w,
                                                             int h)

hashCode

public int hashCode()
Overrides:
hashCode in class ScrollBlockManager.Span1DBase

createNew

protected ScrollBlockManager.Span1DBase createNew(int page0,
                                                  int page1)
Specified by:
createNew in class ScrollBlockManager.Span1DBase

createNew

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

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 PageSpan subArea(int p0,
                        int p1,
                        int x0,
                        int y0,
                        int w0,
                        int h0)
Description copied from interface: PageSpan
Get a subspan of the current span. The coordinates are relative to this span.

Specified by:
subArea in interface PageSpan

subArea

public PageSpan subArea(int p0,
                        int p1)
Specified by:
subArea in interface PageSpan

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
Overrides:
intersects in class ScrollBlockManager.Span1DBase

equals

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

append

public Span1D append(Span s)
Description copied from interface: Span1D
Return the span that results from appending the other span to this span, if the resulting span is contiguous. Otherwise, returns null.

Specified by:
append in interface Span1D
Overrides:
append in class ScrollBlockManager.Span1DBase