pedviz.view.rules
Class HighlightedColorRule
java.lang.Object
pedviz.view.rules.Rule
pedviz.view.rules.HighlightedColorRule
public class HighlightedColorRule
- extends Rule
With this Rule you can define the highlighted color for a node, dependent on
a given trait.
- Author:
- Lukas Forer
Constructor Summary |
HighlightedColorRule(java.lang.String userData,
java.lang.Object value,
java.awt.Color color)
Constructs a HighlightedColorRule with the given trait id, trait value
and the given color. |
Method Summary |
void |
applyRule(NodeView nodeview)
Override this method, with it you get the NodeView and can adapt it. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HighlightedColorRule
public HighlightedColorRule(java.lang.String userData,
java.lang.Object value,
java.awt.Color color)
- Constructs a HighlightedColorRule with the given trait id, trait value
and the given color.
- Parameters:
userData
- trait identificationvalue
- trait valuecolor
- color
applyRule
public void applyRule(NodeView nodeview)
- Description copied from class:
Rule
- Override this method, with it you get the NodeView and can adapt it. The
class NodeView provides the method getNode() for getting a reference to
the Node. *
- Specified by:
applyRule
in class Rule