
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) |
| ansicht.BalloonBaumAnsicht.BalloonBaumAnsicht | ( | BaumModell | baumModell | ) |
constructor sets the baummodell
| baumModell |
| void ansicht.BalloonBaumAnsicht.paint | ( | Graphics | g | ) |
this method prepares the painting of the tree and calls the executing methods
| passed | graphivs set by the component |
Reimplemented from ansicht.BaumAnsicht.
| void ansicht.BalloonBaumAnsicht.zeichneBaum | ( | JTree | einBaum, | |
| Graphics2D | g2D | |||
| ) |
paints the tree
| 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
| 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 |