public final static boolean __SNAPSHOT_RELEASE = false; // TODO remove me
public final static boolean __SYNTH_LF = false; // TODO remove me
public final static String PRG_NAME = "Archaeopteryx";
- final static String VERSION = "0.9911 beta";
- final static String PRG_DATE = "160623";
+ final static String VERSION = "0.9912 beta";
+ final static String PRG_DATE = "160629";
final static String DEFAULT_CONFIGURATION_FILE_NAME = "_aptx_configuration_file";
final static String[] DEFAULT_FONT_CHOICES = {
"SansSerif", "Sans-serif", "Sans", "Dialog", "Lucida Sans", "Tahoma", "Helvetica", "Arial", "Verdana" };
}
return false;
}
-
+ final static void lookAtRealBranchLengthsForAptxControlSettings( final Phylogeny t,
+ final ControlPanel cp ) {
+ if ( ( t != null ) && !t.isEmpty() ) {
+ final boolean has_bl = AptxUtil.isHasAtLeastOneBranchLengthLargerThanZero( t );
+ if ( !has_bl ) {
+ cp.setDrawPhylogram( false );
+ cp.setDrawPhylogramEnabled( false );
+ }
+ else if ( cp.getDisplayAsPhylogramCb() != null ) {
+ cp.setDrawPhylogramEnabled( true );
+ }
+ }
+ }
final static void lookAtSomeTreePropertiesForAptxControlSettings( final Phylogeny t,
final ControlPanel atv_control,
final Configuration configuration ) {
if ( ( t != null ) && !t.isEmpty() ) {
- if ( !AptxUtil.isHasAtLeastOneBranchLengthLargerThanZero( t ) ) {
+ final boolean has_bl = AptxUtil.isHasAtLeastOneBranchLengthLargerThanZero( t );
+ if ( !has_bl ) {
atv_control.setDrawPhylogram( false );
atv_control.setDrawPhylogramEnabled( false );
}
if ( configuration.doGuessCheckOption( Configuration.display_as_phylogram ) ) {
if ( atv_control.getDisplayAsPhylogramCb() != null ) {
- if ( AptxUtil.isHasAtLeastOneBranchLengthLargerThanZero( t ) ) {
+ if ( has_bl ) {
atv_control.setDrawPhylogram( true );
atv_control.setDrawPhylogramEnabled( true );
}
if ( old_path != null ) {
writeBack( ( DefaultMutableTreeNode ) old_path.getLastPathComponent() );
}
+ AptxUtil.lookAtRealBranchLengthsForAptxControlSettings( tree_panel.getPhylogeny(),
+ tree_panel.getControlPanel() );
+ getTreePanel().repaint();
}
} );
+
}
private void addBasics( final DefaultMutableTreeNode top, final PhylogenyNode phylogeny_node, final String name ) {
default:
throw new IllegalArgumentException( "unknown: " + tag );
}
+
getJTree().repaint();
getTreePanel().setEdited( true );
getTreePanel().repaint();