public void setROIName(String name, int ROIIndex) { // Parents: {u'OME': None} // Name is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); o1.setName(name); }
public void setROIDescription(String description, int ROIIndex) { // Parents: {u'OME': None} // Description is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); o1.setDescription(description); }
public void setROIDescription(String description, int ROIIndex) { // Parents: {u'OME': None} // Description is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); o1.setDescription(description); }
public void setROIName(String name, int ROIIndex) { // Parents: {u'OME': None} // Name is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); o1.setName(name); }
public void setROIID(String id, int ROIIndex) { // Parents: {u'OME': None} // ID is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); model.addModelObject(id, o1); o1.setID(id); }
public void setROIID(String id, int ROIIndex) { // Parents: {u'OME': None} // ID is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); model.addModelObject(id, o1); o1.setID(id); }
@Test public void testOmeNode() { Assert.assertNotNull(ome); Assert.assertEquals(1, ome.sizeOfDatasetList()); Assert.assertEquals(5, ome.sizeOfExperimenterGroupList()); Assert.assertEquals(7, ome.sizeOfExperimenterList()); Assert.assertEquals(1, ome.sizeOfImageList()); Assert.assertEquals(1, ome.sizeOfInstrumentList()); Assert.assertEquals(2, ome.sizeOfPlateList()); Assert.assertEquals(1, ome.sizeOfProjectList()); Assert.assertEquals(5, ome.sizeOfROIList()); Assert.assertEquals(4, ome.sizeOfScreenList()); Assert.assertNull(ome.getCreator()); Assert.assertNull(ome.getUUID()); Assert.assertNotNull(ome.getStructuredAnnotations()); }
@Test public void testOmeNode() { Assert.assertNotNull(ome); Assert.assertEquals(0, ome.sizeOfDatasetList()); Assert.assertEquals(0, ome.sizeOfExperimenterGroupList()); Assert.assertEquals(0, ome.sizeOfExperimenterList()); Assert.assertEquals(1, ome.sizeOfImageList()); Assert.assertEquals(1, ome.sizeOfInstrumentList()); Assert.assertEquals(0, ome.sizeOfPlateList()); Assert.assertEquals(0, ome.sizeOfProjectList()); Assert.assertEquals(0, ome.sizeOfROIList()); Assert.assertEquals(0, ome.sizeOfScreenList()); Assert.assertNull(ome.getCreator()); Assert.assertNull(ome.getUUID()); Assert.assertNull(ome.getStructuredAnnotations()); }
public void setEllipseFillColor(Color fillColor, int ROIIndex, int shapeIndex) { // Parents: None // FillColor is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); if (o1.getUnion() == null) { o1.setUnion(new Union()); } Union o2 = o1.getUnion(); if (o2.sizeOfShapeList() == shapeIndex) { o2.addShape(new Ellipse()); } Ellipse o3 = (Ellipse) o2.getShape(shapeIndex); o3.setFillColor(fillColor); }
public void setEllipseStrokeColor(Color strokeColor, int ROIIndex, int shapeIndex) { // Parents: None // StrokeColor is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); if (o1.getUnion() == null) { o1.setUnion(new Union()); } Union o2 = o1.getUnion(); if (o2.sizeOfShapeList() == shapeIndex) { o2.addShape(new Ellipse()); } Ellipse o3 = (Ellipse) o2.getShape(shapeIndex); o3.setStrokeColor(strokeColor); }
public void setEllipseStrokeDashArray(String strokeDashArray, int ROIIndex, int shapeIndex) { // Parents: None // StrokeDashArray is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); if (o1.getUnion() == null) { o1.setUnion(new Union()); } Union o2 = o1.getUnion(); if (o2.sizeOfShapeList() == shapeIndex) { o2.addShape(new Ellipse()); } Ellipse o3 = (Ellipse) o2.getShape(shapeIndex); o3.setStrokeDashArray(strokeDashArray); }
public void setEllipseStrokeWidth(Length strokeWidth, int ROIIndex, int shapeIndex) { // Parents: None // StrokeWidth is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); if (o1.getUnion() == null) { o1.setUnion(new Union()); } Union o2 = o1.getUnion(); if (o2.sizeOfShapeList() == shapeIndex) { o2.addShape(new Ellipse()); } Ellipse o3 = (Ellipse) o2.getShape(shapeIndex); o3.setStrokeWidth(strokeWidth); }
public void setEllipseTransform(AffineTransform transform, int ROIIndex, int shapeIndex) { // Parents: None // Transform is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); if (o1.getUnion() == null) { o1.setUnion(new Union()); } Union o2 = o1.getUnion(); if (o2.sizeOfShapeList() == shapeIndex) { o2.addShape(new Ellipse()); } Ellipse o3 = (Ellipse) o2.getShape(shapeIndex); o3.setTransform(transform); }
public void setLineMarkerEnd(Marker markerEnd, int ROIIndex, int shapeIndex) { // Parents: None // MarkerEnd is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); if (o1.getUnion() == null) { o1.setUnion(new Union()); } Union o2 = o1.getUnion(); if (o2.sizeOfShapeList() == shapeIndex) { o2.addShape(new Line()); } Line o3 = (Line) o2.getShape(shapeIndex); o3.setMarkerEnd(markerEnd); }
public void setMaskFontSize(Length fontSize, int ROIIndex, int shapeIndex) { // Parents: None // FontSize is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); if (o1.getUnion() == null) { o1.setUnion(new Union()); } Union o2 = o1.getUnion(); if (o2.sizeOfShapeList() == shapeIndex) { o2.addShape(new Mask()); } Mask o3 = (Mask) o2.getShape(shapeIndex); o3.setFontSize(fontSize); }
public void setMaskFontStyle(FontStyle fontStyle, int ROIIndex, int shapeIndex) { // Parents: None // FontStyle is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); if (o1.getUnion() == null) { o1.setUnion(new Union()); } Union o2 = o1.getUnion(); if (o2.sizeOfShapeList() == shapeIndex) { o2.addShape(new Mask()); } Mask o3 = (Mask) o2.getShape(shapeIndex); o3.setFontStyle(fontStyle); }
public void setPolygonPoints(String points, int ROIIndex, int shapeIndex) { // Parents: None // Points is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); if (o1.getUnion() == null) { o1.setUnion(new Union()); } Union o2 = o1.getUnion(); if (o2.sizeOfShapeList() == shapeIndex) { o2.addShape(new Polygon()); } Polygon o3 = (Polygon) o2.getShape(shapeIndex); o3.setPoints(points); }
public void setPolygonStrokeColor(Color strokeColor, int ROIIndex, int shapeIndex) { // Parents: None // StrokeColor is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); if (o1.getUnion() == null) { o1.setUnion(new Union()); } Union o2 = o1.getUnion(); if (o2.sizeOfShapeList() == shapeIndex) { o2.addShape(new Polygon()); } Polygon o3 = (Polygon) o2.getShape(shapeIndex); o3.setStrokeColor(strokeColor); }
public void setPolygonStrokeWidth(Length strokeWidth, int ROIIndex, int shapeIndex) { // Parents: None // StrokeWidth is not a reference OME o0 = root; if (o0.sizeOfROIList() == ROIIndex) { o0.addROI(new ROI()); } ROI o1 = o0.getROI(ROIIndex); if (o1.getUnion() == null) { o1.setUnion(new Union()); } Union o2 = o1.getUnion(); if (o2.sizeOfShapeList() == shapeIndex) { o2.addShape(new Polygon()); } Polygon o3 = (Polygon) o2.getShape(shapeIndex); o3.setStrokeWidth(strokeWidth); }
@Test public void validateUpgrade() throws ServiceException { assertEquals(1, ome.sizeOfImageList()); Image image = ome.getImage(0); assertNotNull(image.getAcquisitionDate()); assertEquals(1, ome.sizeOfROIList()); ROI roi = ome.getROI(0); Union union = roi.getUnion(); assertEquals(1, union.sizeOfShapeList()); Shape shape = union.getShape(0); assertTrue(shape instanceof Label); assertNotNull(shape.getText()); }