| javax.swing.table.DefaultTableCellRenderer org.jfree.ui.NumberCellRenderer
NumberCellRenderer | public class NumberCellRenderer extends DefaultTableCellRenderer (Code) | | A table cell renderer that formats numbers with right alignment in each cell.
author: David Gilbert |
Constructor Summary | |
public | NumberCellRenderer() Default constructor - builds a renderer that right justifies the
contents of a table cell. |
NumberCellRenderer | public NumberCellRenderer()(Code) | | Default constructor - builds a renderer that right justifies the
contents of a table cell.
|
getTableCellRendererComponent | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)(Code) | | Returns itself as the renderer. Supports the TableCellRenderer interface.
Parameters: table - the table. Parameters: value - the data to be rendered. Parameters: isSelected - a boolean that indicates whether or not the cell is selected. Parameters: hasFocus - a boolean that indicates whether or not the cell has the focus. Parameters: row - the (zero-based) row index. Parameters: column - the (zero-based) column index. the component that can render the contents of the cell. |
Fields inherited from javax.swing.table.DefaultTableCellRenderer | protected static Border noFocusBorder(Code)(Java Doc)
|
Methods inherited from javax.swing.table.DefaultTableCellRenderer | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc) public void repaint(Rectangle r)(Code)(Java Doc) public void repaint()(Code)(Java Doc) public void revalidate()(Code)(Java Doc) public void setBackground(Color c)(Code)(Java Doc) public void setForeground(Color c)(Code)(Java Doc) protected void setValue(Object value)(Code)(Java Doc) public void updateUI()(Code)(Java Doc) public void validate()(Code)(Java Doc)
|
|
|