pedviz.view.symbols3d
Class SymbolFamily3d
java.lang.Object
pedviz.view.Symbol
pedviz.view.symbols3d.Symbol3D
pedviz.view.symbols3d.SymbolFamily3d
- All Implemented Interfaces:
- java.lang.Comparable
public class SymbolFamily3d
- extends Symbol3D
Draws the symbol for a family node.
- Author:
- lukas forer
Constructor Summary |
SymbolFamily3d(int mode,
java.lang.Object male,
java.lang.Object female)
Creates a new symbol for a family node. |
Method Summary |
javax.media.j3d.GeometryArray[] |
createShape(javax.vecmath.Point3f p,
float size,
java.awt.Color fill)
Creates the GeometryArray of this symbol. |
int |
getPriority()
Returns the priority of the symbol. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SymbolFamily3d
public SymbolFamily3d(int mode,
java.lang.Object male,
java.lang.Object female)
- Creates a new symbol for a family node.
- Parameters:
mode
-
createShape
public javax.media.j3d.GeometryArray[] createShape(javax.vecmath.Point3f p,
float size,
java.awt.Color fill)
- Description copied from class:
Symbol3D
- Creates the GeometryArray of this symbol.
- Specified by:
createShape
in class Symbol3D
- Parameters:
p
- Position.size
- Size.fill
- fill color.
- Returns:
getPriority
public int getPriority()
- Description copied from class:
Symbol
- Returns the priority of the symbol. Symbols like SymbolSexMale and
SymbolSexFemale have a low priority (0) however the SymbolDeceased has a
higher priority (5). The priorities define the sequence for drawing the
symbols.
- Specified by:
getPriority
in class Symbol
- Returns:
- priority of the symbol