KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > prefuse > visual > expression > StartVisiblePredicate


1 package prefuse.visual.expression;
2
3 import prefuse.data.expression.ColumnExpression;
4 import prefuse.data.expression.NotPredicate;
5 import prefuse.data.expression.Predicate;
6 import prefuse.visual.VisualItem;
7
8 /**
9  * Expression that indicates if an item's start visible flag is set.
10  *
11  * @author <a HREF="http://jheer.org">jeffrey heer</a>
12  */

13 public class StartVisiblePredicate extends ColumnExpression implements Predicate {
14
15     /** Convenience instance for the start visible == true case. */
16     public static final Predicate TRUE = new StartVisiblePredicate();
17     /** Convenience instance for the start visible == false case. */
18     public static final Predicate FALSE = new NotPredicate(TRUE);
19     
20     /**
21      * Create a new StartVisiblePredicate.
22      */

23     public StartVisiblePredicate() {
24         super(VisualItem.STARTVISIBLE);
25     }
26
27 } // end of class StartVisiblePredicate
28
Popular Tags