pedviz.view.symbols
Class SymbolQualitativeTrait
java.lang.Object
  
pedviz.view.Symbol
      
pedviz.view.symbols.Symbol2D
          
pedviz.view.symbols.SymbolQualitativeTrait
- All Implemented Interfaces: 
 - java.lang.Comparable
 
public class SymbolQualitativeTrait
- extends Symbol2D
 
This symbols provides the possibility to display a specified trait in a bar
 plot with a nice color gradient. You can also define the minimum value,
 maximum value, mean value and the standard deviation.
- Author:
 
  - lukas forer
 
| 
Constructor Summary | 
SymbolQualitativeTrait(java.lang.String userData,
                       double min,
                       double max,
                       double mean,
                       double scope)
 
          Constructs a SymbolQualitativeTrait with the given values. | 
 
| 
Method Summary | 
 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. | 
 int | 
getPriority()
 
          Returns the priority of the symbol. | 
 
 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SymbolQualitativeTrait
public SymbolQualitativeTrait(java.lang.String userData,
                              double min,
                              double max,
                              double mean,
                              double scope)
- Constructs a SymbolQualitativeTrait with the given values.
- Parameters:
 userData - trait identificationmin - minimal valuemax - maximal valuemean - mean valuescope - standard deviation
 
drawSymbol
public void drawSymbol(java.awt.Graphics2D g,
                       java.awt.geom.Point2D.Float position,
                       float size,
                       java.awt.Color border,
                       java.awt.Color fill,
                       NodeView nodeview)
- Description copied from class: 
Symbol2D 
- Draws the symbol.
- Specified by:
 drawSymbol in class Symbol2D
 
- Parameters:
 g - Graphic objectposition - position of the nodesize - size of the nodeborder - border colorfill - fill color
 
 
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