|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CellListCellRenderer
Is responsible for painting a single element of a CellList
.
This class plays the same role as a ListCellRenderer
does
for a JList
but with a different interface and contract.
Method Summary | |
---|---|
java.lang.String |
getToolTipText(CellList list,
java.lang.Object value,
int index)
Return the tool tip text for the given element. |
void |
paintElement(java.awt.Graphics2D g2,
CellList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
Paint the given element at the 0,0-position on the given graphics context. |
Method Detail |
---|
java.lang.String getToolTipText(CellList list, java.lang.Object value, int index)
list
- The cell list to which the element belongsvalue
- The corresponding value returned from the modelindex
- The index of the cell in the list
null
if no tool tip needs to be dipslayedvoid paintElement(java.awt.Graphics2D g2, CellList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
g2
- Graphics context onto which the cell must be paintedlist
- The cell list to which the element belongsvalue
- The corresponding value returned from the modelindex
- The index of the cell in the listisSelected
- True if the specified cell was selected.cellHasFocus
- True if the specified cell has the focus.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |