ansicht.RadialBaumAnsicht Class Reference

Inheritance diagram for ansicht.RadialBaumAnsicht:

ansicht.BaumAnsicht

List of all members.

Public Member Functions

 RadialBaumAnsicht (BaumModell baumModell)
void paint (Graphics g)
void zeichneKinder (BaumKnoten wurzel, float distanz, Graphics2D g2D)

Package Attributes

double[] knotenVekt


Detailed Description

RadialBaumAnsicht displays the tree model of the application as a radial tree. *
Author:
Clemens Czermak

Johannes Moser


Constructor & Destructor Documentation

ansicht.RadialBaumAnsicht.RadialBaumAnsicht ( BaumModell  baumModell  ) 

Constructor

Parameters:
baumModell specifies the model to be drawn as a radial tree


Member Function Documentation

void ansicht.RadialBaumAnsicht.paint ( Graphics  g  ) 

Invoked by Swing to draw components

Parameters:
g the Graphics context in which to paint

Reimplemented from ansicht.BaumAnsicht.

void ansicht.RadialBaumAnsicht.zeichneKinder ( BaumKnoten  wurzel,
float  distanz,
Graphics2D  g2D 
)

Draws the children of the node wurzel.

The method calculates the position and the limits of each node to be drawn. The limits are used to determine the correct position of the node.

Parameters:
wurzel represents the parent node whose children are drawn
distanz represents the distance between the different levels of the radial tree
g2D the Graphics context in which to paint

Reimplemented from ansicht.BaumAnsicht.


The documentation for this class was generated from the following file: