org.jfree.ui
public class SortButtonRenderer extends Object implements TableCellRenderer
This class (and also BevelArrowIcon) is adapted from original code by Nobuo Tamemasa (version 1.0, 26-Feb-1999) posted on www.codeguru.com.
Field Summary | |
---|---|
static int | DOWN
Useful constant indicating ASCENDING (that is, arrow pointing down) sorting in the table. |
static int | NONE
Useful constant indicating NO sorting. |
static int | UP
Useful constant indicating DESCENDING (that is, arrow pointing up) sorting in the table. |
Constructor Summary | |
---|---|
SortButtonRenderer()
Creates a new button renderer. |
Method Summary | |
---|---|
Component | getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
Returns the renderer component.
|
void | setPressedColumn(int column)
Sets the pressed column.
|
Parameters: table the table. value the value. isSelected selected? hasFocus focussed? row the row. column the column.
Returns: the renderer.
Parameters: column the column.