Public Member Functions | |
RadialBaumAnsicht (BaumModell baumModell) | |
void | paint (Graphics g) |
void | zeichneKinder (BaumKnoten wurzel, float distanz, Graphics2D g2D) |
Package Attributes | |
double[] | knotenVekt |
ansicht.RadialBaumAnsicht.RadialBaumAnsicht | ( | BaumModell | baumModell | ) |
Constructor
baumModell | specifies the model to be drawn as a radial tree |
void ansicht.RadialBaumAnsicht.paint | ( | Graphics | g | ) |
Invoked by Swing to draw components
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.
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.