columnprojection.java

来自「用applet实现很多应用小程序」· Java 代码 · 共 37 行

JAVA
37
字号
package prefuse.data.util;

import prefuse.data.column.Column;
import prefuse.data.event.ProjectionListener;

/**
 * Interface for filtering only a subset of a Table columns, computing
 * a projection of the available data fields. Used in conjunction with
 * CascadedTable instances to control what fields are inherited from
 * a parent table.
 * 
 * @author <a href="http://jheer.org">jeffrey heer</a>
 */
public interface ColumnProjection {

    /**
     * Determine if the given Column should be included.
     * @param col the Column to test
     * @param name the name of the column
     * @return true if the column passes the projection, false otherwise
     */
    public boolean include(Column col, String name);
    
    /**
     * Add a listener to this column projection
     * @param lstnr the listener to add
     */
    public void addProjectionListener(ProjectionListener lstnr);
    
    /**
     * Remove a listener from this column projection
     * @param lstnr the listener to remove
     */
    public void removeProjectionListener(ProjectionListener lstnr);
    
} // end of interface ColumnProjection

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?