|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.view.rules.Rule
pedviz.view.rules.AbstractionRule
public class AbstractionRule
With this Rule it's possible to draw nodes in an abstract way dependent on a given trait.
| Field Summary | |
|---|---|
static int |
NONE
Draws all children as a single node. |
static int |
NUMBER
Draws all children as a single node and shows their total number. |
static int |
NUMBER_2
Draws all children as a single node and shows the number of females and males. |
| Fields inherited from class pedviz.view.rules.Rule |
|---|
BOTH, ONLY_2D, ONLY_3D |
| Constructor Summary | |
|---|---|
AbstractionRule()
|
|
AbstractionRule(int mode)
|
|
AbstractionRule(int mode,
java.lang.Object male,
java.lang.Object female)
Creates a new AbstractionRule. |
|
| Method Summary | |
|---|---|
void |
applyRule(NodeView nodeview)
Override this method, with it you get the NodeView and can adapt it. |
java.lang.Object |
getFemale()
|
java.lang.Object |
getMale()
|
int |
getSymbolMode()
Returns the mode. |
void |
setFemale(java.lang.Object female)
|
void |
setMale(java.lang.Object male)
|
void |
setSymbolMode(int symbolmode)
Sets the mode. |
| Methods inherited from class pedviz.view.rules.Rule |
|---|
getMode, isEnabled, setEnabled, setMode |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NONE
public static final int NUMBER
public static final int NUMBER_2
| Constructor Detail |
|---|
public AbstractionRule(int mode,
java.lang.Object male,
java.lang.Object female)
mode - Mode
public AbstractionRule(int mode)
public AbstractionRule()
| Method Detail |
|---|
public void setSymbolMode(int symbolmode)
mode - the mode.public int getSymbolMode()
public void applyRule(NodeView nodeview)
Rule
applyRule in class Rulepublic java.lang.Object getFemale()
public void setFemale(java.lang.Object female)
public java.lang.Object getMale()
public void setMale(java.lang.Object male)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||