MCPcopy Create free account
hub / github.com/rambaut/figtree / setTreeLayout

Method setTreeLayout

src/figtree/treeviewer/TreePane.java:147–165  ·  view source on GitHub ↗
(TreeLayout treeLayout)

Source from the content-addressed store, hash-verified

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;

Callers 2

TreeWidgetMethod · 0.45
triggerMethod · 0.45

Calls 7

recalibrateMethod · 0.95
repaintMethod · 0.80
addTreeLayoutListenerMethod · 0.65

Tested by

no test coverage detected