PageRenderTime 91ms CodeModel.GetById 55ms app.highlight 4ms RepoModel.GetById 31ms app.codeStats 0ms

/rcdkjar/src/org/guha/rcdk/view/table/StructureTableCellRenderer2D.java

http://github.com/rajarshi/cdkr
Java | 35 lines | 23 code | 8 blank | 4 comment | 2 complexity | e36a691ed62c4372a7802da68ca2be9a MD5 | raw file
 1package org.guha.rcdk.view.table;
 2
 3import org.guha.rcdk.view.panels.MoleculeCell;
 4
 5import javax.swing.*;
 6import javax.swing.table.TableCellRenderer;
 7import java.awt.*;
 8
 9/**
10 * @author Rajarshi Guha
11 */
12
13public class StructureTableCellRenderer2D extends JPanel implements TableCellRenderer {
14    public Component getTableCellRendererComponent(
15            JTable table, Object value, boolean isSelected,
16            boolean hasFocus, int rowIndex, int vColIndex) {
17        if (vColIndex != 0) {
18            return (MoleculeCell) value;
19        }
20        return (MoleculeCell) value;
21    }
22
23    // The following methods override the defaults for performance reasons
24    public void validate() {
25    }
26
27    public void revalidate() {
28    }
29
30    protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
31    }
32
33    public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {
34    }
35}