Skip to content

Commit

Permalink
scroll to selected row
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink committed Jul 9, 2020
1 parent 24f7994 commit 8253fbe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/preibisch/pinna2d/tools/Imp.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public long add(float value, int category) {
int dims = img.numDimensions() - 1;
IntervalView<FloatType> results = Views.hyperSlice(img, dims, categoryChannel);
Log.info(String.format("Set category %d to instance %.2f",category,value));
return add(mask, results, value, category+2);
return add(mask, results, value, category+4);
}

public float getMin() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ class AnnotationController : Controller() {
}
if (position >= tableview.items.size)
Log.error("Not found $v")
else
else {
tableview.selectionModel.select(position)
tableview.scrollTo(position)
}
}

fun exportStatistics() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AnnotationEditorView : View("Annotations") {
val instanceController: InstanceController by inject()

// private val imageController: ImageController by inject()
var mTableView: TableViewEditModel<AnnotationEntryModel> by singleAssign()
// var mTableView: TableViewEditModel<AnnotationEntryModel> by singleAssign()
var categoriesButtons = ArrayList<ToggleButton>()

override val root = vbox {
Expand Down

0 comments on commit 8253fbe

Please sign in to comment.