pedviz.view.symbols
Class Symbol2D
java.lang.Object
pedviz.view.Symbol
pedviz.view.symbols.Symbol2D
- All Implemented Interfaces:
- java.lang.Comparable
- Direct Known Subclasses:
- SymbolAdopted, SymbolDeceased, SymbolFamily, SymbolGenotypes, SymbolHaplotypes, SymbolQualitativeTrait, SymbolSexFemale, SymbolSexMale, SymbolSexUndesignated, SymbolText
public abstract class Symbol2D
- extends Symbol
This class is the super class for all implemented symbols for the 2d
visualization. If you want implement your own Symbol: override the methode
drawSymbol. In this method you have all informations you need, so you can
draw a lot of funny stuff.
- Author:
- lukas forer
Method Summary |
abstract void |
drawSymbol(java.awt.Graphics2D g,
java.awt.geom.Point2D.Float position,
float size,
java.awt.Color border,
java.awt.Color fill,
NodeView nodeview)
Draws the symbol. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Symbol2D
public Symbol2D()
drawSymbol
public abstract void drawSymbol(java.awt.Graphics2D g,
java.awt.geom.Point2D.Float position,
float size,
java.awt.Color border,
java.awt.Color fill,
NodeView nodeview)
- Draws the symbol.
- Parameters:
g
- Graphic objectposition
- position of the nodesize
- size of the nodeborder
- border colorfill
- fill colornode
- Node object