@Override public void taskComplete() { if (!Thread.currentThread().isInterrupted()) { if (params.getBooleanParameterValue("deleteTiles")) parentObject.clearPathObjects(); if (pathAnnotations != null && !pathAnnotations.isEmpty()) parentObject.addPathObjects(pathAnnotations); imageData.getHierarchy().fireHierarchyChangedEvent(parentObject); } pathAnnotations = null; }
public synchronized void clearAll() { getRootObject().clearPathObjects(); tmaGrid = null; fireHierarchyChangedEvent(getRootObject()); }
private synchronized void updateTMAHierarchy() { if (tmaGrid == null) return; // Assign annotations to cores List<PathObject> pathObjectChildren = new ArrayList<>(rootObject.getChildObjects()); rootObject.clearPathObjects(); // Add cores to the start of the object list rootObject.addPathObjects(tmaGrid.getTMACoreList()); // Add back any other objects for (PathObject pathObject : pathObjectChildren) addPathObject(pathObject, false, false); // Notify listeners of changes fireHierarchyChangedEvent(getRootObject()); }
if (parentObject.getROI() == pathROI) { if (!Thread.currentThread().isInterrupted()) { parentObject.clearPathObjects(); tryToSetObjectLock(parentObject, false); // Try to unlock the parent
ImmutableDimension sizeMax = new ImmutableDimension(max, max); parentObject.clearPathObjects();
@Override public void taskComplete() { parentObject.clearPathObjects(); parentObject.addPathObjects(tiles); imageData.getHierarchy().fireHierarchyChangedEvent(this, parentObject); if (params.getBooleanParameterValue("removeParentAnnotation") && params.getBooleanParameterValue("makeAnnotations") && parentObject.isAnnotation()) { imageData.getHierarchy().removeObject(parentObject, true); } }