com.eliad.model
Interface StyleContextModel


public interface StyleContextModel

StyleContextModel defines the interface for an object that gives informations about basic attributes for a cell in the grid like the JSmartGrid or a StyleModel like the DefaultStyleModel. This interface is implemented in the GridContext interface and the JSmartGrid component.

Note: The DefaultGridCellRenderer use a StyleContextModel to setup its graphic attributes.

Version:
1.0
Author:
Stephan Szymkowicz
See Also:
GridContext, DefaultGridCellRenderer, DefaultStyleModel, JSmartGrid

Method Summary
 java.awt.Color getBackgroundColor()
          Returns the background color for the cell.
 javax.swing.border.Border getBorder()
          Returns the default border for cells.
 java.awt.Color getFocusBackgroundColor()
          Returns the background color for the cells that have the focus.
 java.awt.Color getFocusForegroundColor()
          Returns the foreground color for the cells that have the focus.
 javax.swing.border.Border getFocusHighlightBorder()
          Returns the highlight border for the cells that have the focus.
 java.awt.Font getFont()
          Returns the font for the cell.
 java.awt.Color getForegroundColor()
          Returns the foreground color for the cell.
 java.awt.Color getSelectionBackgroundColor()
          Returns the background color for selected cells.
 javax.swing.border.Border getSelectionCellBorder()
          Returns the border for the cells that have been selected.
 java.awt.Color getSelectionForegroundColor()
          Returns the foreground color for selected cells.
 

Method Detail

getBorder

public javax.swing.border.Border getBorder()
Returns the default border for cells.
Returns:
the Border object used for cells.

getFont

public java.awt.Font getFont()
Returns the font for the cell.

getForegroundColor

public java.awt.Color getForegroundColor()
Returns the foreground color for the cell.

getBackgroundColor

public java.awt.Color getBackgroundColor()
Returns the background color for the cell.
Returns:
the Color object for the background property

getFocusForegroundColor

public java.awt.Color getFocusForegroundColor()
Returns the foreground color for the cells that have the focus.

getFocusBackgroundColor

public java.awt.Color getFocusBackgroundColor()
Returns the background color for the cells that have the focus.
Returns:
the Color object for the background property

getFocusHighlightBorder

public javax.swing.border.Border getFocusHighlightBorder()
Returns the highlight border for the cells that have the focus.
Returns:
the Border object used for focused cells

getSelectionCellBorder

public javax.swing.border.Border getSelectionCellBorder()
Returns the border for the cells that have been selected.
Returns:
the Border object used for selected cells

getSelectionForegroundColor

public java.awt.Color getSelectionForegroundColor()
Returns the foreground color for selected cells.
Returns:
the Color object for the foreground property

getSelectionBackgroundColor

public java.awt.Color getSelectionBackgroundColor()
Returns the background color for selected cells.
Returns:
the Color used for the background of selected list items