/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dowser.ui;

import dowser.Util;
import java.awt.Component;
import javax.swing.JTree;
import javax.swing.tree.DefaultTreeCellRenderer;

/**
 *
 * @author Chetan Pawgi
 */
public class DomainRenderer extends DefaultTreeCellRenderer {

	@Override
	public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) {
		value = Util.convertDomainRepresentation(value);
		return super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
	}
}
