Package jadex.tools.comanalyzer.graph
Class GraphCanvas.DirectionDisplayPredicate
- java.lang.Object
- 
- jadex.tools.comanalyzer.graph.GraphCanvas.DirectionDisplayPredicate
 
- 
- All Implemented Interfaces:
- org.apache.commons.collections15.Predicate
 - Enclosing class:
- GraphCanvas
 
 protected static final class GraphCanvas.DirectionDisplayPredicate extends java.lang.Object implements org.apache.commons.collections15.PredicateA prdicate class that shows arrows for directed edges and hides them for undirected edges.
- 
- 
Constructor SummaryConstructors Constructor Description DirectionDisplayPredicate(boolean show_d, boolean show_u)Creates the predicate.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(java.lang.Object context)Use the specified parameter to perform a test that returns true or false.voidshowDirected(boolean b)Set the predicate for directed edges.voidshowUndirected(boolean b)Set the predicate for undirected edges.
 
- 
- 
- 
Method Detail- 
showDirectedpublic void showDirected(boolean b) Set the predicate for directed edges.- Parameters:
- b-- trueif arrows are shown for directed edges.
 
 - 
showUndirectedpublic void showUndirected(boolean b) Set the predicate for undirected edges.- Parameters:
- b-- trueif arrows are shown for undirected edges.
 
 - 
evaluatepublic boolean evaluate(java.lang.Object context) Use the specified parameter to perform a test that returns true or false. Returnstrueif the arrow ought to be shown, elsefalse.- Specified by:
- evaluatein interface- org.apache.commons.collections15.Predicate
 
 
- 
 
-