Ptidej-v5.2-master/InfoVis/src/infovis/visualization/color/ExplicitColor.java
/*****************************************************************************
 * Copyright (C) 2003 Jean-Daniel Fekete and INRIA, France                   *
 * ------------------------------------------------------------------------- *
 * This software is published under the terms of the QPL Software License    *
 * a copy of which has been included with this distribution in the           *
 * license-infovis.txt file.                                                 *
 *****************************************************************************/
package infovis.visualization.color;

import infovis.column.IntColumn;
import infovis.visualization.ColorVisualization;

import javax.swing.event.ChangeEvent;

/**
 * @author Jean-Daniel Fekete
 * @version $Revision: 1.1 $
 */
public class ExplicitColor extends ColorVisualization {
    IntColumn colorColumn;
    
    /**
     * Constructor for ExplicitColor.
     * @param column
     */
    public ExplicitColor(IntColumn column) {
        super(column);
        this.colorColumn = column;
    }

    /**
     * @see infovis.visualization.ColorVisualization#getColorValue(int)
     */
    public int getColorValue(int row) {
        return this.colorColumn.get(row);
    }
    
    /**
     * @see javax.swing.event.ChangeListener#stateChanged(ChangeEvent)
     */
    public void stateChanged(ChangeEvent e) {
    }

}
