private NodeList getGrandchildren(Element root, String name) { return getGrandchildren(root, name + "s", name); }
private NodeList getGrandchildren(Element root, String name) { return getGrandchildren(root, name + "s", name); }
NodeList channelNodes = getGrandchildren(displaySetting, "Channel");
NodeList channelNodes = getGrandchildren(displaySetting, "Channel");
NodeList distances = getGrandchildren(scaling, "Items", "Distance");
NodeList distances = getGrandchildren(scaling, "Items", "Distance");
Element acquisition = getFirstNode(experimentBlock, "AcquisitionBlock"); Element tilesSetup = getFirstNode(acquisition, "TilesSetup"); NodeList groups = getGrandchildren(tilesSetup, "PositionGroup"); Element sampleHolder = getFirstNode(regionsSetup, "SampleHolder"); if (sampleHolder != null) { NodeList regions = getGrandchildren(sampleHolder, "SingleTileRegionArray", "SingleTileRegion"); if (regions != null) { NodeList detectors = getGrandchildren(acquisition, "Detector");
Element acquisition = getFirstNode(experimentBlock, "AcquisitionBlock"); Element tilesSetup = getFirstNode(acquisition, "TilesSetup"); NodeList groups = getGrandchildren(tilesSetup, "PositionGroup"); Element sampleHolder = getFirstNode(regionsSetup, "SampleHolder"); if (sampleHolder != null) { NodeList regions = getGrandchildren(sampleHolder, "SingleTileRegionArray", "SingleTileRegion"); if (regions != null) { NodeList detectors = getGrandchildren(acquisition, "Detector");
NodeList lines = getGrandchildren(layer, "Elements", "Line"); shape = populateLines(lines, roiCount, shape); NodeList arrows = getGrandchildren(layer, "Elements", "OpenArrow"); shape = populateLines(arrows, roiCount, shape); NodeList crosses = getGrandchildren(layer, "Elements", "Cross"); for (int s=0; s<crosses.getLength(); s++, shape+=2) { Element cross = (Element) crosses.item(s); NodeList rectangles = getGrandchildren(layer, "Elements", "Rectangle"); if (rectangles != null) { shape = populateRectangles(rectangles, roiCount, shape); NodeList ellipses = getGrandchildren(layer, "Elements", "Ellipse"); if (ellipses != null) { for (int s=0; s<ellipses.getLength(); s++, shape++) { NodeList circles = getGrandchildren(layer, "Elements", "Circle"); if (circles != null) { shape = populateCircles(circles, roiCount, shape); getGrandchildren(layer, "Elements", "InOutCircle"); if (inOutCircles != null) { shape = populateCircles(inOutCircles, roiCount, shape); getGrandchildren(layer, "Elements", "OutInCircle"); if (outInCircles != null) { shape = populateCircles(outInCircles, roiCount, shape);
NodeList lines = getGrandchildren(layer, "Elements", "Line"); shape = populateLines(lines, roiCount, shape); NodeList arrows = getGrandchildren(layer, "Elements", "OpenArrow"); shape = populateLines(arrows, roiCount, shape); NodeList crosses = getGrandchildren(layer, "Elements", "Cross"); for (int s=0; s<crosses.getLength(); s++, shape+=2) { Element cross = (Element) crosses.item(s); NodeList rectangles = getGrandchildren(layer, "Elements", "Rectangle"); if (rectangles != null) { shape = populateRectangles(rectangles, roiCount, shape); NodeList ellipses = getGrandchildren(layer, "Elements", "Ellipse"); if (ellipses != null) { for (int s=0; s<ellipses.getLength(); s++, shape++) { NodeList circles = getGrandchildren(layer, "Elements", "Circle"); if (circles != null) { shape = populateCircles(circles, roiCount, shape); getGrandchildren(layer, "Elements", "InOutCircle"); if (inOutCircles != null) { shape = populateCircles(inOutCircles, roiCount, shape); getGrandchildren(layer, "Elements", "OutInCircle"); if (outInCircles != null) { shape = populateCircles(outInCircles, roiCount, shape);
NodeList channelNodes = getGrandchildren(dimensions, "Channel"); if (channelNodes == null) { channelNodes = image.getElementsByTagName("Channel"); NodeList microscopes = getGrandchildren(instrument, "Microscope"); Element manufacturerNode = null; NodeList lightSources = getGrandchildren(instrument, "LightSource"); if (lightSources != null) { for (int i=0; i<lightSources.getLength(); i++) { NodeList detectors = getGrandchildren(instrument, "Detector"); if (detectors != null) { HashSet<String> uniqueDetectors = new HashSet<String>(); NodeList objectives = getGrandchildren(instrument, "Objective"); parseObjectives(objectives); NodeList filterSets = getGrandchildren(instrument, "FilterSet"); if (filterSets != null) { for (int i=0; i<filterSets.getLength(); i++) { NodeList excitations = getGrandchildren( filterSet, "ExcitationFilters", "ExcitationFilterRef"); NodeList emissions = getGrandchildren(filterSet, "EmissionFilters", "EmissionFilterRef"); NodeList filters = getGrandchildren(instrument, "Filter"); if (filters != null) {
NodeList channelNodes = getGrandchildren(dimensions, "Channel"); if (channelNodes == null) { channelNodes = image.getElementsByTagName("Channel"); NodeList microscopes = getGrandchildren(instrument, "Microscope"); Element manufacturerNode = null; NodeList lightSources = getGrandchildren(instrument, "LightSource"); if (lightSources != null) { for (int i=0; i<lightSources.getLength(); i++) { NodeList detectors = getGrandchildren(instrument, "Detector"); if (detectors != null) { HashSet<String> uniqueDetectors = new HashSet<String>(); NodeList objectives = getGrandchildren(instrument, "Objective"); parseObjectives(objectives); NodeList filterSets = getGrandchildren(instrument, "FilterSet"); if (filterSets != null) { for (int i=0; i<filterSets.getLength(); i++) { NodeList excitations = getGrandchildren( filterSet, "ExcitationFilters", "ExcitationFilterRef"); NodeList emissions = getGrandchildren(filterSet, "EmissionFilters", "EmissionFilterRef"); NodeList filters = getGrandchildren(instrument, "Filter"); if (filters != null) {