ansicht.StandardBaumAnsicht Class Reference

Inheritance diagram for ansicht.StandardBaumAnsicht:

ansicht.BaumAnsicht

List of all members.

Public Member Functions

 StandardBaumAnsicht (BaumModell baumModell)
void paint (Graphics g)
void zeichneBaum (JTree einBaum, Graphics2D g2D)
void zeichneEbene (BaumKnoten node, int offsetLeft, int offsetRight, int height, Graphics2D g2D)


Detailed Description

This class paints the a standard tree out of a baummodell it extends the baumansicht and uses it's connection painting algorithem.

Author:
clemens

johannes


Constructor & Destructor Documentation

ansicht.StandardBaumAnsicht.StandardBaumAnsicht ( BaumModell  baumModell  ) 

Constructor sets the baumModell

Parameters:
baumModell 


Member Function Documentation

void ansicht.StandardBaumAnsicht.paint ( Graphics  g  ) 

prepares the painting of the tree and calls the executing methods

Parameters:
g the graphics where to paint

Reimplemented from ansicht.BaumAnsicht.

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

paints a tree, that is with the jtree on the graphics it is the head of the recursion, implemented with the zeichneEbene method

Parameters:
einBaum the tree to paint
g2D where to paint the baum

Reimplemented from ansicht.BaumAnsicht.

void ansicht.StandardBaumAnsicht.zeichneEbene ( BaumKnoten  node,
int  offsetLeft,
int  offsetRight,
int  height,
Graphics2D  g2D 
)

paints the tree recursivly

Parameters:
node the node to paint
offsetLeft the minimum x value this node may use
offsetRight the maximum x value this node may use
height is the y distance between the parent and it's childs
g2D where to paint the the tree


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