Skip to content

Commit

Permalink
Add subsections to SpatialTrackMatchingFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhahmann committed Dec 19, 2024
1 parent 32c05d5 commit 34dc802
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/
package org.mastodon.mamut.tomancak.trackmatching;

import java.awt.Font;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;
Expand All @@ -39,6 +40,7 @@
import javax.swing.JFormattedTextField;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JSeparator;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JToggleButton;
Expand Down Expand Up @@ -157,6 +159,11 @@ public SpatialTrackMatchingFrame( Listener listener )
setLayout( new MigLayout( "insets dialog, fill" ) );

add( introductionTextPane(), "span, grow, wrap, width 0:0:" );
add( new JSeparator(), "span, grow, wrap" );

JLabel parametersLabel = new JLabel( "Parameters:" );
parametersLabel.setFont( parametersLabel.getFont().deriveFont( Font.BOLD ) );
add( parametersLabel, "span, wrap" );
add( new JLabel( "Select Mastodon projects to match:" ), "span, wrap" );
add( new JLabel( "project A:" ) );
comboBoxA.addActionListener( ignore -> updateEnableComponents() );
Expand All @@ -180,6 +187,11 @@ public SpatialTrackMatchingFrame( Listener listener )
add( spatialRegistrationComboBox, "wrap" );
enableDisable.add( spatialRegistrationComboBox );

add( new JSeparator(), "span, grow, wrap" );
JLabel operationsLabel = new JLabel( "Operations:" );
operationsLabel.setFont( operationsLabel.getFont().deriveFont( Font.BOLD ) );
add( operationsLabel, "span, wrap" );

add( new JLabel( "Tag unmatched & flipped cells:" ), "gaptop unrelated" );
add( newOperationButton( "in both projects", TAG_CELLS_TOOLTIP, listener::onTagBothClicked ), "split 3" );
add( newOperationButton( "project A", TAG_CELLS_TOOLTIP, listener::onTagProjectAClicked ) );
Expand All @@ -203,6 +215,7 @@ public SpatialTrackMatchingFrame( Listener listener )
add( syncGroupButtons.get( 0 ), "split 3" );
add( syncGroupButtons.get( 1 ) );
add( syncGroupButtons.get( 2 ), "wrap" );
add( new JSeparator(), "span, grow, wrap" );
logArea = new JTextArea( 3, 50 );
logArea.setEditable( false );
add( logArea, "gaptop unrelated, span, grow" );
Expand Down

0 comments on commit 34dc802

Please sign in to comment.