|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.gui.renderers.AlignedTableCellRenderer
public class AlignedTableCellRenderer
TableCellRenderer with alignment functionality.
Constructor Summary | |
---|---|
AlignedTableCellRenderer(int align)
Creates a new AlignedTableCellRenderer |
|
AlignedTableCellRenderer(int align,
Color background)
Creates a new AlignedTableCellRenderer |
Method Summary | |
---|---|
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Sets up the cell renderer for the given component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlignedTableCellRenderer(int align)
align
- SwingConstant: LEFT, CENTER, RIGHT, LEADING or TRAILING.public AlignedTableCellRenderer(int align, Color background)
align
- SwingConstant: LEFT, CENTER, RIGHT, LEADING or TRAILING.background
- The background color to useMethod Detail |
---|
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
table
- value
- isSelected
- hasFocus
- row
- column
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |