01: package prefuse.visual.expression;
02:
03: import prefuse.data.expression.ColumnExpression;
04: import prefuse.data.expression.NotPredicate;
05: import prefuse.data.expression.Predicate;
06: import prefuse.visual.VisualItem;
07:
08: /**
09: * 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
14: Predicate {
15:
16: /** Convenience instance for the start visible == true case. */
17: public static final Predicate TRUE = new StartVisiblePredicate();
18: /** Convenience instance for the start visible == false case. */
19: public static final Predicate FALSE = new NotPredicate(TRUE);
20:
21: /**
22: * Create a new StartVisiblePredicate.
23: */
24: public StartVisiblePredicate() {
25: super (VisualItem.STARTVISIBLE);
26: }
27:
28: } // end of class StartVisiblePredicate
|