Package prefuse.util

Examples of prefuse.util.PredicateChain


     * their own type constraints.
     * @param p the rule Predicate
     * @param value the value to map to
     */
    protected void add(Predicate p, Object value) {
        if ( m_chain == null ) m_chain = new PredicateChain();
        if ( value instanceof Action )
            ((Action)value).setVisualization(m_vis);
        m_chain.add(p, value);
    }
View Full Code Here


       
        p1 = (Predicate)ExpressionParser.parse("id=3");
        p2 = (Predicate)ExpressionParser.parse("float<2");
        p3 = (Predicate)ExpressionParser.parse("id>3");
       
        m_chain = new PredicateChain();
        m_chain.add(p1, new Integer(1));
        m_chain.add(p2, new Integer(2));
        m_chain.add(p3, new Integer(3));
    }
View Full Code Here

        assertFalse(m_chain.remove(p2));
        assertFalse(m_chain.remove(p3));
    }

    public void testRemove2() {
        PredicateChain pc = new PredicateChain();
        Predicate p1 = (Predicate) ExpressionParser.parse("_fixed");
        Predicate p2 = (Predicate) ExpressionParser.parse("_highlight");
        pc.add(p1, new Integer(1));
        pc.add(p2, new Integer(2));
        assertTrue(pc.remove(p2));
    }
View Full Code Here

TOP

Related Classes of prefuse.util.PredicateChain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.