Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public void setEnabled(final boolean state) {
button.setEnabled(state);
}
}

public void setToolTipText(final String text) {
for (final JRadioButton button : buttons) {
button.setToolTipText(text);
}
}
private void addRadioButton(final String text) {
final JRadioButton button = new JRadioButton(text);
final Font font = new Font(Font.SANS_SERIF, Font.PLAIN, 12);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ private void setupAcquisitionAndRun(final AcquisitionMetadata data) {
// final List<AcquisitionMetadata> metadata =
// acqTable_.getTableData().getMetadataList();
//
// // run each aquisition in sequence
// // run each acquisition in sequence
// int acqIndex = 0;
// boolean allAcqsDone = false;
// while (!allAcqsDone) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ private void createUserInterface() {
+ "or stop the running one.");
btnTestAcquisition_.setToolTipText(
"Run one time point with the current settings, without saving the images.");
btnPauseAcquisition_.setToolTipText("Pause or resume the running acquisition.");
btnOpenPlaylist_.setToolTipText(
"Open the playlist to run a sequence of acquisitions.");

final boolean channelsEnabled = settings.channels().enabled();
cbxUseChannels_ = new CheckBox("Channels", channelsEnabled);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ private void createUserInterface() {
final Panel pnlBinning = new Panel("Binning");

cmbBinning_ = new ComboBox<>(new String[0], null, 80, 20);
cmbBinning_.setToolTipText("Set the binning of every active imaging camera.");
lblBinningState_ = new JLabel(" ");

pnlBinning.add(new JLabel("Active imaging cameras:"), "wrap");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ private void createUserInterface() {

// simultaneous camera settings
radPrimaryCamera_ = new RadioButton(cameraNames, primaryCamera, RadioButton.VERTICAL);
radPrimaryCamera_.setToolTipText("The first camera in the acquisition. "
+ "Live mode shows this camera and the slice timing is computed from it.");

// active check boxes
final Panel pnlCheckboxes = new Panel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ private void createUserInterface() {
btnEditPositionList_ = new Button("Edit Position List...", 130, 24);
btnOpenXYZGrid_ = new Button("XYZ Grid...", 90, 24);
btnEditPositionList_.setToolTipText("Open the Micro-Manager position list editor.");
spnPostMoveDelay_.setToolTipText(
"Time to wait after moving to each position before acquiring there.");

add(btnEditPositionList_, "");
add(btnOpenXYZGrid_, "wrap");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ public void createEventHandlers() {

txtSaveFileName_.registerValidationListener(BaseAcquisitionSettings::saveNamePrefixProblem,
problem -> {
txtSaveFileName_.setToolTipText(problem);
txtSaveFileName_.setToolTipText(
problem == null ? "Name for the saved images." : problem);
if (problem == null) {
model_.acquisitions().settingsBuilder()
.saveNamePrefix(txtSaveFileName_.getText());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import javax.swing.table.AbstractTableModel;
import java.util.Objects;
import java.util.function.Consumer;

public class ChannelTableModel extends AbstractTableModel {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ private void createUserInterface() {
lastChannelMode_ = ChannelMode.VOLUME;
}
cmbChannelMode_ = new ComboBox<>(ChannelMode.values(), lastChannelMode_, 140, 22);
cmbChannelGroup_.setToolTipText(
"Micro-Manager configuration group the channel presets come from.");
cmbChannelMode_.setToolTipText("How often the channel changes, and whether the "
+ "software or the controller switches it.");

add(lblChannelGroup_, "split 2");
add(cmbChannelGroup_, "wrap");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import org.micromanager.data.Datastore;
import org.micromanager.data.SummaryMetadata;
import org.micromanager.data.internal.DefaultDatastore;
import org.micromanager.data.internal.DefaultSummaryMetadata;
import org.micromanager.data.internal.PropertyKey;
import org.micromanager.display.DataViewer;
import org.micromanager.display.DataViewerListener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ public void renamePositionList(final String oldName, final String newName) {
}

/**
* Returns an unordered array of all position list names.
* Returns an unordered array of all acquisition settings names.
*
* @return an unordered array of all position list names
* @return an unordered array of all acquisition settings names
*/
public String[] getAcquisitionNames() {
final Set<String> keys = settings_.keySet();
Expand All @@ -185,9 +185,9 @@ public String[] getAcquisitionNames() {
// }

/**
* Returns array of all acquisition settings names.
* Returns array of all position list names.
*
* @return an array of all acquisition settings names.
* @return an array of all position list names.
*/
public String[] getPositionListNames() {
final Set<String> keys = positions_.keySet();
Expand Down Expand Up @@ -272,7 +272,7 @@ public PositionList getPositionList(final String name) {

/**
* Sets the positionListName in the metadata, used when selecting values
* with the AcquistionTablePositionList.
* with the AcquisitionTablePositionList.
*
* @param row the selected row
* @param name the new name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ public static int computeScanChannelsPerPass(final ScapeAcquisitionSettings sett
* Compute appropriate acceleration time in ms for the specified motor speed.
* Set to be 10ms + 0-100ms depending on relative speed to max, all scaled by factor specified on the settings panel
*
* @param motorSpeed
* @return
* @param motorSpeed the scan speed in mm/s
* @param maxMotorSpeed the maximum speed of the stage in mm/s
* @param stageScanAccelFactor the factor specified on the settings panel
* @return the acceleration time in ms
*/
public static double computeScanAcceleration(final double motorSpeed, final double maxMotorSpeed, final double stageScanAccelFactor) {
return (10 + 100 * (motorSpeed / maxMotorSpeed)) * stageScanAccelFactor;
Expand Down
Loading