ansicht.BalloonBaumAnsicht Class Reference

Inheritance diagram for ansicht.BalloonBaumAnsicht:

ansicht.BaumAnsicht

List of all members.

Public Member Functions

 BalloonBaumAnsicht (BaumModell baumModell)
void paint (Graphics g)
void zeichneBaum (JTree einBaum, Graphics2D g2D)
void zeichneEbene (BaumKnoten node, int x, int y, int length, BaumKnoten parent, Graphics2D g2D)


Detailed Description

this classes extends the baumansicht and paints a balloon tree with the baum modell

Author:
clemens

johannes


Constructor & Destructor Documentation

ansicht.BalloonBaumAnsicht.BalloonBaumAnsicht ( BaumModell  baumModell  ) 

constructor sets the baummodell

Parameters:
baumModell 


Member Function Documentation

void ansicht.BalloonBaumAnsicht.paint ( Graphics  g  ) 

this method prepares the painting of the tree and calls the executing methods

Parameters:
passed graphivs set by the component

Reimplemented from ansicht.BaumAnsicht.

void ansicht.BalloonBaumAnsicht.zeichneBaum ( JTree  einBaum,
Graphics2D  g2D 
)

paints the tree

Parameters:
einBaum,the tree to be painted
g2D graphics where to paint it

Reimplemented from ansicht.BaumAnsicht.

void ansicht.BalloonBaumAnsicht.zeichneEbene ( BaumKnoten  node,
int  x,
int  y,
int  length,
BaumKnoten  parent,
Graphics2D  g2D 
)

paints the node recursivly

Parameters:
node the node to paint
x the current x position
y the current y position
length of the distance between the node and it's children
root of the node
g2D the graphics where to paint


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