(TreeLayout treeLayout)
| 145 | } |
| 146 | |
| 147 | public void setTreeLayout(TreeLayout treeLayout) { |
| 148 | |
| 149 | this.treeLayout = treeLayout; |
| 150 | |
| 151 | treeLayout.setCartoonAttributeName(CARTOON_ATTRIBUTE_NAME); |
| 152 | treeLayout.setCollapsedAttributeName(COLLAPSE_ATTRIBUTE_NAME); |
| 153 | treeLayout.setHilightAttributeName(HILIGHT_ATTRIBUTE_NAME); |
| 154 | treeLayout.setBranchColouringAttributeName(branchColouringAttribute); |
| 155 | |
| 156 | treeLayout.addTreeLayoutListener(new TreeLayoutListener() { |
| 157 | public void treeLayoutChanged() { |
| 158 | recalibrate(); |
| 159 | repaint(); |
| 160 | } |
| 161 | }); |
| 162 | recalibrate(); |
| 163 | invalidate(); |
| 164 | repaint(); |
| 165 | } |
| 166 | |
| 167 | public TimeScale getTimeScale() { |
| 168 | return timeScale; |
no test coverage detected