|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.view.rules.Rule
public abstract class Rule
This abstract class is the super class for all rules. You must override the method applyRule, with it can adapt the NodeView. More informations about writing your own rules, you will find in the tutorial section.
Field Summary | |
---|---|
static int |
BOTH
can be used in GraphView2D and GraphView3D. |
static int |
ONLY_2D
can be used only in GraphView2D. |
static int |
ONLY_3D
can be used only in GraphView3D. |
Constructor Summary | |
---|---|
Rule()
|
Method Summary | |
---|---|
abstract void |
applyRule(NodeView nodeview)
Override this method, with it you get the NodeView and can adapt it. |
int |
getMode()
Returns the mode. |
boolean |
isEnabled()
Returns true, if the rule is enabled. |
void |
setEnabled(boolean enabled)
Enables or disables the rule. |
void |
setMode(int _mode)
Sets the mode. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BOTH
public static final int ONLY_2D
public static final int ONLY_3D
Constructor Detail |
---|
public Rule()
Method Detail |
---|
public abstract void applyRule(NodeView nodeview)
nodeview
- public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- public void setMode(int _mode)
_mode
- the mode.public int getMode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |