gzz.view
Class PageSpanCellView

java.lang.Object
  |
  +--gzz.view.CellView
        |
        +--gzz.view.PageSpanCellView

public class PageSpanCellView
extends CellView

A cellview that shows pagespan pages placed next to each other. Due to the use of coordinate system keys and coordinate systems, this is the ONLY class that needs to know about the mapping of enfilade to xy locations!

XXX Doesn't work in AWT -- maybe should be in gzz.view.gl?


Nested Class Summary
 class PageSpanCellView.DefaultPageSpanPaperMaker
           
 class PageSpanCellView.Layout
          A single enfilade laid out on the plane.
static interface PageSpanCellView.PageSpanPaperMaker
           
 
Field Summary
static boolean dbg
           
static float dicefactor
           
 PageSpanCellView.PageSpanPaperMaker pageSpanPaperMaker
           
static float scale
           
 boolean useBg
           
 boolean useText
           
 
Fields inherited from class gzz.view.CellView
rcsid
 
Constructor Summary
PageSpanCellView()
           
 
Method Summary
 PageSpanCellView.Layout getLayout(Enfilade1D enf)
           
 PageSpanCellView.Layout getLayout(ScrollBlock sb)
           
 void getSize(Cell c, ViewContext context, float[] out)
          Get the default size of the cell.
 void getSize(Enfilade1D enf, float[] out)
           
 void place(Cell c, VobScene vs, int box, ViewContext context)
          Place the contents of one cell into the given coord system.
 void place(Enfilade1D enf, VobScene vs, int into, float importance, float pixelscale)
          Place the given enfilade in the coordinate system.
 
Methods inherited from class gzz.view.CellView
getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbg

public static boolean dbg

scale

public static final float scale
See Also:
Constant Field Values

dicefactor

public static float dicefactor

useBg

public boolean useBg

useText

public boolean useText

pageSpanPaperMaker

public PageSpanCellView.PageSpanPaperMaker pageSpanPaperMaker
Constructor Detail

PageSpanCellView

public PageSpanCellView()
Method Detail

getLayout

public PageSpanCellView.Layout getLayout(Enfilade1D enf)

getLayout

public PageSpanCellView.Layout getLayout(ScrollBlock sb)

getSize

public void getSize(Enfilade1D enf,
                    float[] out)

place

public void place(Enfilade1D enf,
                  VobScene vs,
                  int into,
                  float importance,
                  float pixelscale)
Place the given enfilade in the coordinate system.

Parameters:
importance - The importance to be given to the image requests
pixelscale - The pixel scale at which the image requests are made

place

public void place(Cell c,
                  VobScene vs,
                  int box,
                  ViewContext context)
Description copied from class: CellView
Place the contents of one cell into the given coord system. The coordsys given shall be a mapping from the rectangle (0,w)x(0,h) onto the screen.

Specified by:
place in class CellView
Parameters:
box - A coordinate system, into whose "unit square" the cell will be placed. Note that some coordinate systems (box, orthoBox) set their "unit square" not to be 0..1 x 0..1.

getSize

public void getSize(Cell c,
                    ViewContext context,
                    float[] out)
Description copied from class: CellView
Get the default size of the cell.

Overrides:
getSize in class CellView
Parameters:
c - The cell to get size for, or null for a default size.