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.Predicate
A prdicate class that shows arrows for directed edges and hides them for undirected edges.
-
-
Constructor Summary
Constructors Constructor Description DirectionDisplayPredicate(boolean show_d, boolean show_u)
Creates the predicate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(java.lang.Object context)
Use the specified parameter to perform a test that returns true or false.void
showDirected(boolean b)
Set the predicate for directed edges.void
showUndirected(boolean b)
Set the predicate for undirected edges.
-
-
-
Method Detail
-
showDirected
public void showDirected(boolean b)
Set the predicate for directed edges.- Parameters:
b
-true
if arrows are shown for directed edges.
-
showUndirected
public void showUndirected(boolean b)
Set the predicate for undirected edges.- Parameters:
b
-true
if arrows are shown for undirected edges.
-
evaluate
public boolean evaluate(java.lang.Object context)
Use the specified parameter to perform a test that returns true or false. Returnstrue
if the arrow ought to be shown, elsefalse
.- Specified by:
evaluate
in interfaceorg.apache.commons.collections15.Predicate
-
-