
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) |
| ansicht.StandardBaumAnsicht.StandardBaumAnsicht | ( | BaumModell | baumModell | ) |
Constructor sets the baumModell
| baumModell |
| void ansicht.StandardBaumAnsicht.paint | ( | Graphics | g | ) |
prepares the painting of the tree and calls the executing methods
| 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
| 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
| 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 |