|
|||||||||
| 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.ShapeRule
public class ShapeRule
With this rule you can set a symbol, dependent on the given trait (UserData). You can use it mainly for illustrating the sex and other traits.
| Field Summary |
|---|
| Fields inherited from class pedviz.view.rules.Rule |
|---|
BOTH, ONLY_2D, ONLY_3D |
| Constructor Summary | |
|---|---|
ShapeRule(java.lang.String userData,
java.lang.Object value,
Symbol shape)
Constructs a ShapeRule with given trait id, trait value and the symbol. |
|
ShapeRule(Symbol shape)
Constructs a ShapeRule with the symbol. |
|
| Method Summary | |
|---|---|
void |
applyRule(NodeView nodeview)
Override this method, with it you get the NodeView and can adapt it. |
Symbol |
getShape()
Returns the symbol. |
void |
setShape(Symbol shape)
Sets the symbol. |
| 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 |
| Constructor Detail |
|---|
public ShapeRule(java.lang.String userData,
java.lang.Object value,
Symbol shape)
userData - trait idvalue - trait valueshape - symbolpublic ShapeRule(Symbol shape)
userData - trait idvalue - trait valueshape - symbol| Method Detail |
|---|
public void applyRule(NodeView nodeview)
Rule
applyRule in class Rulepublic Symbol getShape()
public void setShape(Symbol shape)
shape - the symbol.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||