SegmentationView.Action.OperatingMode.text=Toggle between Segmentation and Labelling
SegmentationView.Action.OperatingMode.tooltip=Toggle between Segmentation and Labelling
SegmentationView.Action.OperatingMode.image=file:resources/icons/copy.png
+SegmentationView.Action.FormSegment.text=Form a segment from current view.
+SegmentationView.Action.FormSegment.tooltip=Form a segment from current view.
+SegmentationView.Action.FormSegment.image=file:resources/icons/apply.png
SegmentationView.Action.ZoomIn.text=Zoom In
SegmentationView.Action.ZoomIn.tooltip=Zoom In
SegmentationView.Action.ZoomIn.image=file:resources/icons/zoom-in.png
Foreground,
Background,
OperatingMode,
+ FormSegment,
ZoomIn,
ZoomOut,
ZoomOriginal,
m.add(getAction(Tool.Foreground));
m.add(getAction(Tool.Background));
m.add(getAction(Tool.OperatingMode));
+ m.add(getAction(Tool.FormSegment));
m.add(new Separator());
m.add(getAction(Tool.ZoomIn));
m.add(getAction(Tool.ZoomOut));
Tool.Foreground.action.setEnabled(!labelMode && canZoomIn());
Tool.Background.action.setEnabled(!labelMode && canZoomIn());
Tool.OperatingMode.action.setEnabled(canZoomIn());
+ Tool.FormSegment.action.setEnabled(CanLabel());
// Always enabled if view enabled
Tool.SetBrushSize.action.setEnabled(true);