public abstract class SortingHeaderRenderer extends Object implements TableCellRenderer
Modifier | Constructor and Description |
---|---|
protected |
SortingHeaderRenderer(TableCellRenderer baseRenderer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Icon |
createArrowIcon(boolean isDescending,
int size)
Returns an icon suitable for marking a column as sorted.
|
TableCellRenderer |
getBaseRenderer()
Returns the renderer on which this one is based.
|
abstract int |
getSortColumnIndex()
Indicates the index of the table column on which sorting is performed.
|
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int irow,
int icol) |
abstract boolean |
isSortDescending()
Indicates the sense of the sorting.
|
protected SortingHeaderRenderer(TableCellRenderer baseRenderer)
baseRenderer
- renderer on which this one is basedpublic TableCellRenderer getBaseRenderer()
public abstract int getSortColumnIndex()
public abstract boolean isSortDescending()
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int irow, int icol)
getTableCellRendererComponent
in interface TableCellRenderer
public static Icon createArrowIcon(boolean isDescending, int size)
isDescending
- false for sort up, true for sort downsize
- icon size, for instance font size of associated textCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.