public Double getLineY2(int ROIIndex, int shapeIndex) { // Parents: None // Y2 is not a reference return ((Line)root.getROI(ROIIndex).getUnion().getShape(shapeIndex)).getY2(); }
public Double getLineY2(int ROIIndex, int shapeIndex) { // Parents: None // Y2 is not a reference return ((Line)root.getROI(ROIIndex).getUnion().getShape(shapeIndex)).getY2(); }
p.setColor(colordraw); for (Line myLine : lines) { canvas.drawLine(myLine.getX1(), myLine.getY1(), myLine.getX2(), myLine.getY2(), p);
@Test (groups = {"11-06-u-roi"}, dependsOnMethods = {"testROI2AndUnion"}) public void testShape8() { Assert.assertNotNull(union2); shape8 = union2.getShape(2); Assert.assertEquals(Line.class.getName(), shape8.getClass().getName()); Line line8 = (Line) shape8; Assert.assertEquals(ref.ROI2Shape8Stroke, line8.getStrokeColor()); Assert.assertEquals(ref.ROI2Shape8StrokeWidth, line8.getStrokeWidth()); Assert.assertEquals(ref.ROI2Shape8MarkerEnd, line8.getMarkerEnd()); Assert.assertEquals(ref.ROI2Shape8LineX1, line8.getX1()); Assert.assertEquals(ref.ROI2Shape8LineY1, line8.getY1()); Assert.assertEquals(ref.ROI2Shape8LineX2, line8.getX2()); Assert.assertEquals(ref.ROI2Shape8LineY2, line8.getY2()); }
@Test (groups = {"11-06-u-roi"}, dependsOnMethods = {"testROI2AndUnion"}) public void testShape9() { Assert.assertNotNull(union2); shape9 = union2.getShape(3); Assert.assertEquals(Line.class.getName(), shape9.getClass().getName()); Line line9 = (Line) shape9; Assert.assertEquals(ref.ROI2Shape9Stroke, line9.getStrokeColor()); Assert.assertEquals(ref.ROI2Shape9StrokeWidth, line9.getStrokeWidth()); Assert.assertEquals(ref.ROI2Shape9MarkerEnd, line9.getMarkerEnd()); Assert.assertEquals(ref.ROI2Shape9LineX1, line9.getX1()); Assert.assertEquals(ref.ROI2Shape9LineY1, line9.getY1()); Assert.assertEquals(ref.ROI2Shape9LineX2, line9.getX2()); Assert.assertEquals(ref.ROI2Shape9LineY2, line9.getY2()); }
@Test (groups = {"11-06-u-roi"}, dependsOnMethods = {"testROI2AndUnion"}) public void testShape7() { Assert.assertNotNull(union2); shape7 = union2.getShape(1); Assert.assertEquals(Line.class.getName(), shape7.getClass().getName()); Line line7 = (Line) shape7; Assert.assertEquals(ref.ROI2Shape7Stroke, line7.getStrokeColor()); Assert.assertEquals(ref.ROI2Shape7StrokeWidth, line7.getStrokeWidth()); Assert.assertEquals(ref.ROI2Shape7MarkerStart, line7.getMarkerStart()); Assert.assertEquals(ref.ROI2Shape7MarkerEnd, line7.getMarkerEnd()); Assert.assertEquals(ref.ROI2Shape7LineX1, line7.getX1()); Assert.assertEquals(ref.ROI2Shape7LineY1, line7.getY1()); Assert.assertEquals(ref.ROI2Shape7LineX2, line7.getX2()); Assert.assertEquals(ref.ROI2Shape7LineY2, line7.getY2()); }
int x2 = line.getX2().intValue(); int y1 = line.getY1().intValue(); int y2 = line.getY2().intValue(); roi = new Line(x1, y1, x2, y2);
int x2 = line.getX2().intValue(); int y1 = line.getY1().intValue(); int y2 = line.getY2().intValue(); roi = new Line(x1, y1, x2, y2);