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 @@ -110,13 +110,6 @@ interface Builder<T extends AcquisitionSettings.Builder<T>> extends AcquisitionS
*/
T postMoveDelay(final int postMoveDelay);

/**
* Sets the number of channels.
*
* @param numChannels the number of channels.
*/
T numChannels(final int numChannels);

/**
* Sets the channel group.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,6 @@ interface Builder<T extends AcquisitionSettings.Builder<T>> extends AcquisitionS
*/
T postMoveDelay(final int postMoveDelay);

/**
* Sets the number of channels.
*
* @param numChannels the number of channels.
*/
T numChannels(final int numChannels);

/**
* Sets the channel group.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,17 +218,6 @@ public Builder postMoveDelay(final int postMoveDelay) {
return this;
}

/**
* Sets the number of channels.
*
* @param numChannels the number of channels.
*/
@Override
public Builder numChannels(final int numChannels) {
numChannels_ = numChannels;
return this;
}

/**
* Sets the channel group.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,6 @@ public Builder postMoveDelay(final int postMoveDelay) {
return this;
}

/**
* Sets the number of channels.
*
* @param numChannels the number of channels.
*/
@Override
public Builder numChannels(final int numChannels) {
numChannels_ = numChannels;
return this;
}

/**
* Sets the channel group.
*
Expand All @@ -245,6 +234,7 @@ public Builder channelGroup(final String channelGroup) {
@Override
public Builder channels(final ChannelSpec[] channels) {
channels_ = channels;
numChannels_ = channels_.length;
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ private void createEventHandlers() {
table_.getTableModel().addEmptyChannel();
final ChannelSpec[] channels = table_.getData().getChannels();
model_.acquisitions().settingsBuilder().channels(channels);
model_.acquisitions().settingsBuilder().numChannels(channels.length);
//System.out.println("add channel");
//table_.getData().printChannelData();
});
Expand All @@ -98,7 +97,6 @@ private void createEventHandlers() {
table_.getTableModel().removeChannel(row);
final ChannelSpec[] channels = table_.getData().getChannels();
model_.acquisitions().settingsBuilder().channels(channels);
model_.acquisitions().settingsBuilder().numChannels(channels.length);
//System.out.println("remove row index: " + row);
}
});
Expand Down
Loading