TV-Browser 3.3.3 API

tvbrowser.ui.programtable.background
Class AbstractCellBasedBackPainter

java.lang.Object
  extended by tvbrowser.ui.programtable.background.AbstractBackPainter
      extended by tvbrowser.ui.programtable.background.AbstractCellBasedBackPainter
All Implemented Interfaces:
BackgroundPainter
Direct Known Subclasses:
TimeOfDayBackPainter

public abstract class AbstractCellBasedBackPainter
extends AbstractBackPainter

Author:
Til Schneider, www.murfman.de

Constructor Summary
AbstractCellBasedBackPainter()
           
 
Method Summary
protected abstract  java.awt.Image getBackgroundImageFor(Program prog)
          Gets the background image for the given program.
protected abstract  java.awt.Image getOuterBackgroundImage()
          Gets the background image for the outer areas, where no programs are.
 void paintBackground(java.awt.Graphics grp, int columnWidth, int tableHeight, int minCol, int maxCol, java.awt.Rectangle clipBounds, ProgramTableLayout layout, ProgramTableModel model)
          Paints the background.
 
Methods inherited from class tvbrowser.ui.programtable.background.AbstractBackPainter
fillImage, getTableWest, layoutChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCellBasedBackPainter

public AbstractCellBasedBackPainter()
Method Detail

paintBackground

public void paintBackground(java.awt.Graphics grp,
                            int columnWidth,
                            int tableHeight,
                            int minCol,
                            int maxCol,
                            java.awt.Rectangle clipBounds,
                            ProgramTableLayout layout,
                            ProgramTableModel model)
Paints the background.

Parameters:
grp -
columnWidth -
tableHeight -
clipBounds -
layout - The table's layout
model - The table model

getOuterBackgroundImage

protected abstract java.awt.Image getOuterBackgroundImage()
Gets the background image for the outer areas, where no programs are.

Returns:
The background image for the outer areas

getBackgroundImageFor

protected abstract java.awt.Image getBackgroundImageFor(Program prog)
Gets the background image for the given program.

Parameters:
prog - The program.
Returns:
The background image for the given program.

TV-Browser 3.3.3 API

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