@Test (groups = {"11-06-u-roi"}, dependsOnMethods = {"testROI2AndUnion"}) public void testShape5() { Assert.assertNotNull(union2); shape5 = union2.getShape(5); Assert.assertEquals(Polyline.class.getName(), shape5.getClass().getName()); Polyline polyline5 = (Polyline) shape5; Assert.assertEquals(ref.ROI2Shape5Stroke, polyline5.getStrokeColor()); Assert.assertEquals(ref.ROI2Shape5StrokeWidth, polyline5.getStrokeWidth()); Assert.assertEquals(ref.ROI2Shape5PolylinePoints, polyline5.getPoints()); Assert.assertEquals(ref.ROI2Shape5MarkerStart, polyline5.getMarkerStart()); Assert.assertEquals(ref.ROI2Shape5MarkerEnd, polyline5.getMarkerEnd()); }
setPoints(String.valueOf( element.getAttribute("Points"))); setMarkerEnd(Marker.fromString( element.getAttribute("MarkerEnd"))); setMarkerStart(Marker.fromString( element.getAttribute("MarkerStart")));
public Color getPolylineFillColor(int ROIIndex, int shapeIndex) { // Parents: None // FillColor is not a reference return ((Polyline)root.getROI(ROIIndex).getUnion().getShape(shapeIndex)).getFillColor(); }
String points = polyline.getPoints(); int[][] coordinates = parsePoints(points); roi = new PolygonRoi(coordinates[0], coordinates[1], coordinates[0].length, Roi.POLYLINE); if (polyline.getStrokeColor() != null){ ome.xml.model.primitives.Color StrokeColor = polyline.getStrokeColor(); sc = new Color(StrokeColor.getRed(), StrokeColor.getGreen(), StrokeColor.getBlue(), StrokeColor.getAlpha()); if (polyline.getFillColor() != null){ ome.xml.model.primitives.Color FillColor = polyline.getFillColor(); fc = new Color(FillColor.getRed(), FillColor.getGreen(), FillColor.getBlue(), FillColor.getAlpha()); if (polyline.getStrokeWidth() != null){ sw = polyline.getStrokeWidth().value().floatValue();
Polyline polyline = mPolylines.get(0); // Get copy of the points List<LatLng> points = polyline.getPoints(); mPolylines.get(0).remove(); mPolylines.remove(0); for (int i=3000; i<7000; i++) { points.remove(i); } // Create a PolylineOptions object with the new points PolylineOptions polylineOptions = new PolylineOptions().addAll(points); mPolylines.add(0, mMap.addPolyline(polylineOptions));
public void setPolylinePoints(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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setPoints(points); }
public void setPolylineMarkerEnd(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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setMarkerEnd(markerEnd); }
public void setPolylineFillRule(FillRule fillRule, int ROIIndex, int shapeIndex) { // Parents: None // FillRule 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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setFillRule(fillRule); }
public void setPolylineLocked(Boolean locked, int ROIIndex, int shapeIndex) { // Parents: None // Locked 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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setLocked(locked); }
public void setPolylineMarkerStart(Marker markerStart, int ROIIndex, int shapeIndex) { // Parents: None // MarkerStart 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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setMarkerStart(markerStart); }
public void setPolylineStrokeColor(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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setStrokeColor(strokeColor); }
public void setPolylineTheT(NonNegativeInteger theT, int ROIIndex, int shapeIndex) { // Parents: None // TheT 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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setTheT(theT); }
public void setPolylineStrokeWidth(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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setStrokeWidth(strokeWidth); }
public void setPolylineFillColor(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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setFillColor(fillColor); }
public void setPolylineFontFamily(FontFamily fontFamily, int ROIIndex, int shapeIndex) { // Parents: None // FontFamily 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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setFontFamily(fontFamily); }
public void setPolylineFontSize(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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setFontSize(fontSize); }
public void setPolylineStrokeDashArray(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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setStrokeDashArray(strokeDashArray); }
public void setPolylineID(String id, int ROIIndex, int shapeIndex) { // Parents: None // ID 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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); model.addModelObject(id, o3); o3.setID(id); }
public void setPolylineFontStyle(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 Polyline()); } Polyline o3 = (Polyline) o2.getShape(shapeIndex); o3.setFontStyle(fontStyle); }