Search in sources :

Example 6 with Point

use of ome.xml.model.Point in project bioformats by openmicroscopy.

the class Schema2011_06_File_Upgrade_Test method testShape1.

@Test(groups = { "11-06-u-roi" }, dependsOnMethods = { "testROI1AndUnion" })
public void testShape1() {
    Assert.assertNotNull(union1);
    shape1 = union1.getShape(0);
    Assert.assertEquals(Point.class.getName(), shape1.getClass().getName());
    Point point1 = (Point) shape1;
    Assert.assertEquals(ref.ROI1Shape1TheC, point1.getTheC());
    Assert.assertEquals(ref.ROI1Shape1PointX, point1.getX());
    Assert.assertEquals(ref.ROI1Shape1PointY, point1.getY());
    Assert.assertEquals(ref.ROI1Shape1FillRule, point1.getFillRule());
    Assert.assertEquals(ref.ROI1Shape1FontFamily, point1.getFontFamily());
    Assert.assertEquals(ref.ROI1Shape1FontSize, point1.getFontSize());
    Assert.assertEquals(ref.ROI1Shape1FontStyle, point1.getFontStyle());
    Assert.assertEquals(ref.ROI1Shape1StrokeDashArray, point1.getStrokeDashArray());
    Assert.assertEquals(ref.ROI1Shape1StrokeWidth, point1.getStrokeWidth());
    Assert.assertEquals(ref.ROI1Shape1Fill, point1.getFillColor());
    Assert.assertEquals(ref.ROI1Shape1Stroke, point1.getStrokeColor());
    Assert.assertEquals(ref.ROI1Shape1Label, point1.getText());
}
Also used : Point(ome.xml.model.Point) Test(org.testng.annotations.Test)

Aggregations

Point (ome.xml.model.Point)6 ImagePlus (ij.ImagePlus)2 EllipseRoi (ij.gui.EllipseRoi)2 Line (ij.gui.Line)2 OvalRoi (ij.gui.OvalRoi)2 PointRoi (ij.gui.PointRoi)2 PolygonRoi (ij.gui.PolygonRoi)2 Roi (ij.gui.Roi)2 ShapeRoi (ij.gui.ShapeRoi)2 TextRoi (ij.gui.TextRoi)2 Ellipse (ome.xml.model.Ellipse)2 OME (ome.xml.model.OME)2 Polygon (ome.xml.model.Polygon)2 Polyline (ome.xml.model.Polyline)2 Test (org.testng.annotations.Test)2 Overlay (ij.gui.Overlay)1 RoiManager (ij.plugin.frame.RoiManager)1 Color (java.awt.Color)1 Font (java.awt.Font)1 Rectangle (java.awt.Rectangle)1