TV-Browser 3.3.3 API

tvbrowser.ui.programtable
Class CompactLayout

java.lang.Object
  extended by tvbrowser.ui.programtable.AbstractProgramTableLayout
      extended by tvbrowser.ui.programtable.CompactLayout
All Implemented Interfaces:
ProgramTableLayout

public class CompactLayout
extends AbstractProgramTableLayout

This layout has (nearly) the same height for each column. The height of all columns is defined by the height of the channel column with the largest sum of panel heights. In all other columns space is added after each program to "stretch" the column to the same height. algorithm:

  • find the column with the largest height (using preferred size of panels)
  • make all columns equally high, do this by adding the same amount of empty space at the end of each panel in a column

    Author:
    Til Schneider, www.murfman.de

    Constructor Summary
    CompactLayout()
              Creates a new instance of CompactLayout.
     
    Method Summary
     void updateLayout(ProgramTableModel model)
               
     
    Methods inherited from class tvbrowser.ui.programtable.AbstractProgramTableLayout
    getColumnStart, setColumnStarts
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    CompactLayout

    public CompactLayout()
    Creates a new instance of CompactLayout.

    Method Detail

    updateLayout

    public void updateLayout(ProgramTableModel model)

    TV-Browser 3.3.3 API

    TV-Browser 3.3.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)