echopoint.ui
Class AbstractPaddingController

java.lang.Object
  extended by echopoint.ui.AbstractPaddingController
Direct Known Subclasses:
DefaultPaddingController

public abstract class AbstractPaddingController
extends java.lang.Object

Controller class that returns the padding value for a specific cell.


Constructor Summary
AbstractPaddingController()
           
 
Method Summary
 int getBottomPadding(int column, int row, java.lang.Object component)
          Gets the bottom padding value for a given cell
 int getLeftPadding(int column, int row, java.lang.Object component)
          Gets the left padding value for a given cell
 int getRightPadding(int column, int row, java.lang.Object component)
          Gets the right padding value for a given cell
 int getTopPadding(int column, int row, java.lang.Object component)
          Gets the top padding value for a given cell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPaddingController

public AbstractPaddingController()
Method Detail

getLeftPadding

public int getLeftPadding(int column,
                          int row,
                          java.lang.Object component)
Gets the left padding value for a given cell

Parameters:
column - column index of the cell
row - row index of the cell
component - component that resides in the cell
Returns:
left padding value, returning negative number will make the renderer ignore the padding

getRightPadding

public int getRightPadding(int column,
                           int row,
                           java.lang.Object component)
Gets the right padding value for a given cell

Parameters:
column - column index of the cell
row - row index of the cell
component - component that resides in the cell
Returns:
right padding value, returning negative number will make the renderer ignore the padding

getTopPadding

public int getTopPadding(int column,
                         int row,
                         java.lang.Object component)
Gets the top padding value for a given cell

Parameters:
column - column index of the cell
row - row index of the cell
component - component that resides in the cell
Returns:
top padding value, returning negative number will make the renderer ignore the padding

getBottomPadding

public int getBottomPadding(int column,
                            int row,
                            java.lang.Object component)
Gets the bottom padding value for a given cell

Parameters:
column - column index of the cell
row - row index of the cell
component - component that resides in the cell
Returns:
bottom padding value, returning negative number will make the renderer ignore the padding