ePOST API

rice.visualization.render
Class TableViewRenderer

java.lang.Object
  extended by rice.visualization.render.ViewRenderer
      extended by rice.visualization.render.TableViewRenderer

public class TableViewRenderer
extends ViewRenderer


Field Summary
static java.awt.Color DEFAULT_BACKGROUND_COLOR
           
static int DEFAULT_CELL_HEIGHT
           
static int DEFAULT_CELL_PADDING
           
static int DEFAULT_CELL_WIDTH
           
static java.awt.Color DEFAULT_FOREGROUND_COLOR
           
 
Fields inherited from class rice.visualization.render.ViewRenderer
visualization
 
Constructor Summary
TableViewRenderer(DataProvider visualization)
           
 
Method Summary
 boolean canRender(DataView view)
           
protected  int[] fillArray(int num, int fill)
           
protected  int getCellHeight()
           
protected  int getCellPadding()
           
protected  int getCellWidth()
           
protected  java.awt.Color getDefaultBackgroundColor()
           
protected  java.awt.Color getDefaultForegroundColor()
           
protected  int[] getSizes(TableView view)
           
protected  int getWidth(int[] widths, int column)
           
protected  void paintCell(java.awt.Graphics g, int[] widths, int x, int y, java.lang.String s)
           
protected  void paintRow(java.awt.Graphics g, int[] widths, int row, int num)
           
 javax.swing.JPanel render(DataView v)
           
 
Methods inherited from class rice.visualization.render.ViewRenderer
getDefaultBorder, getDefaultFont, getDefaultFontColor, getDefaultSmallFont
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CELL_WIDTH

public static int DEFAULT_CELL_WIDTH

DEFAULT_CELL_HEIGHT

public static int DEFAULT_CELL_HEIGHT

DEFAULT_CELL_PADDING

public static int DEFAULT_CELL_PADDING

DEFAULT_BACKGROUND_COLOR

public static java.awt.Color DEFAULT_BACKGROUND_COLOR

DEFAULT_FOREGROUND_COLOR

public static java.awt.Color DEFAULT_FOREGROUND_COLOR
Constructor Detail

TableViewRenderer

public TableViewRenderer(DataProvider visualization)
Method Detail

canRender

public boolean canRender(DataView view)
Specified by:
canRender in class ViewRenderer

render

public javax.swing.JPanel render(DataView v)
Specified by:
render in class ViewRenderer

paintRow

protected void paintRow(java.awt.Graphics g,
                        int[] widths,
                        int row,
                        int num)

paintCell

protected void paintCell(java.awt.Graphics g,
                         int[] widths,
                         int x,
                         int y,
                         java.lang.String s)

getWidth

protected int getWidth(int[] widths,
                       int column)

getSizes

protected int[] getSizes(TableView view)

fillArray

protected int[] fillArray(int num,
                          int fill)

getDefaultBackgroundColor

protected java.awt.Color getDefaultBackgroundColor()
Overrides:
getDefaultBackgroundColor in class ViewRenderer

getDefaultForegroundColor

protected java.awt.Color getDefaultForegroundColor()

getCellPadding

protected int getCellPadding()

getCellWidth

protected int getCellWidth()

getCellHeight

protected int getCellHeight()

ePOST API

Copyright © 2001-2005 - Rice Pastry.