private Map<String, AttributedString> _attributed_string_map = null;
private int _depth_collapse_level = -1;
private int _rank_collapse_level = -1;
+ // private boolean _partition_tree = false;
+ //private float _root_x;
+ //private float _furthest_node_x;
static {
final DecimalFormatSymbols dfs = new DecimalFormatSymbols();
dfs.setDecimalSeparator( '.' );
return getTreeColorSet().getTaxonomyColor();
}
- final File getTreeFile() {
+ public final File getTreeFile() {
return _treefile;
}
}
}
else {
- // no node was clicked
+ // no node was clicked so partition tree instead
+ int clicked_x = e.getX();
+// _partition_tree = true;
_highlight_node = null;
- }
- }
+// PhylogenyNode furthestNode = PhylogenyMethods.calculateNodeWithMaxDistanceToRoot( _phylogeny );
+// _furthest_node_x = furthestNode.getXcoord();
+// _root_x = _phylogeny.getRoot().getXcoord();
+//
+// if (_furthest_node_x != _root_x && !(clicked_x < _root_x || clicked_x > _furthest_node_x)) // don't
+// // of tree
+// {
+// float threshold = (clicked_x - _root_x) / (_furthest_node_x - _root_x);
+// //draw vertical line at clicked_x
+// }
+//
+// _partition_tree = false;}
+ }}
repaint();
}
final int graphics_file_height,
final int graphics_file_x,
final int graphics_file_y ) {
+ // if (_partition_tree) {
+ //
+ // }
+
if ( ( _phylogeny == null ) || _phylogeny.isEmpty() ) {
return;
}
getTreeFontSet().tinyFonts();
}
- final void setTreeFile( final File treefile ) {
+ public final void setTreeFile( final File treefile ) {
_treefile = treefile;
}