org.cb.cardboard
Interface BoardCardRenderer


public interface BoardCardRenderer

Interface to a renderer of a card of a board.

Version:
$Id: BoardCardRenderer.java 78 2004-04-13 04:25:57Z jerome $
Author:
jerome@coffeebreaks.org - last modified by $LastModifiedBy$

Method Summary
 java.awt.Component getBoardCardRendererComponent(JCardBoard cardBoard, Card value, int index, boolean isSelected, boolean cardHasFocus)
          Return a component that has been configured to display the specified value.
 

Method Detail

getBoardCardRendererComponent

public java.awt.Component getBoardCardRendererComponent(JCardBoard cardBoard,
                                                        Card value,
                                                        int index,
                                                        boolean isSelected,
                                                        boolean cardHasFocus)
Return a component that has been configured to display the specified value. That component's paint method is then called to "render" the card. If it is necessary to compute the dimensions of a board because the board cards do not have a fixed size, this method is called to generate a component on which getPreferredSize can be invoked.

Parameters:
cardBoard - The JCardBoard we're painting.
value - The value returned by list.getModel().getElementAt(index).
index - The cells index.
isSelected - True if the specified cell was selected.
cardHasFocus - True if the specified cell has the focus.
Returns:
A component whose paint() method will render the specified value.
See Also:
JCardBoard, BoardSelectionModel, CardBoardModel


Copyright © 2004 CoffeeBreaks. All Rights Reserved.