pedviz.view.rules
Class HintRule
java.lang.Object
pedviz.view.rules.Rule
pedviz.view.rules.HintRule
public abstract class HintRule
- extends Rule
This abstract class is the super class for rules, which adapt the hint text.
If you want to use one or more traits as hint text, then is the method
addHintAttribute() from the GraphView class the right for you.
- Author:
- Lukas Forer
Method Summary |
void |
applyRule(NodeView nodeview)
Override this method, with it you get the NodeView and can adapt it. |
abstract java.lang.String |
getHint(NodeView nodeview)
You can define the hint text, if you override this method. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HintRule
public HintRule()
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
getHint
public abstract java.lang.String getHint(NodeView nodeview)
- You can define the hint text, if you override this method.
- Parameters:
nodeview
-
- Returns:
- the hint text