pedviz.view.symbols
Class Symbol2D

java.lang.Object
  extended by pedviz.view.Symbol
      extended by 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

Constructor Summary
Symbol2D()
           
 
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 pedviz.view.Symbol
compareTo, getHeight, getPriority, setColors
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Symbol2D

public Symbol2D()
Method Detail

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 object
position - position of the node
size - size of the node
border - border color
fill - fill color
node - Node object