double cornerY = y.get(0).doubleValue(); store.setLabelX(cornerX, roi, 0); store.setLabelY(cornerY, roi, 0);
store.setLabelX(points[0], r, 0); store.setLabelY(points[1], r, 0);
store.setLabelX(points[0], r, 0); store.setLabelY(points[1], r, 0);
double cornerY = y.get(0).doubleValue(); store.setLabelX(cornerX, roi, 0); store.setLabelY(cornerY, roi, 0);
double cornerY = y.get(0).doubleValue(); store.setLabelX(cornerX, roi, 0); store.setLabelY(cornerY, roi, 0);
double cornerY = y.get(0).doubleValue(); store.setLabelX(cornerX, roi, 0); store.setLabelY(cornerY, roi, 0);
case TEXT: store.setLabelID(shapeID, i, 0); store.setLabelX(shape.x1, i, 0); store.setLabelY(shape.y1, i, 0); store.setLabelText(shape.text, i, 0);
shapeID = createROI(store, nextROI); store.setLabelID(shapeID, nextROI, 0); store.setLabelX(shape.x1, nextROI, 0); store.setLabelY(shape.y1, nextROI, 0); store.setLabelText(shape.text, nextROI, 0);
store.setLabelX(x, i, 0); store.setLabelY(y, i, 0); store.setLabelText(text, i, 0);
store.setLabelX(x, i, 0); store.setLabelY(y, i, 0); store.setLabelText(text, i, 0);
shapeID = MetadataTools.createLSID("Shape", roiIndex, shapeIndex); store.setLabelID(shapeID, roiIndex, shapeIndex); store.setLabelX(shape.points[0], roiIndex, shapeIndex); store.setLabelY(shape.points[1], roiIndex, shapeIndex); if (shape.text != null) store.setLabelX(shape.points[0], roiIndex, shapeIndex); store.setLabelY(shape.points[1], roiIndex, shapeIndex); if (shape.text != null)
shapeID = MetadataTools.createLSID("Shape", roiIndex, shapeIndex); store.setLabelID(shapeID, roiIndex, shapeIndex); store.setLabelX(shape.points[0], roiIndex, shapeIndex); store.setLabelY(shape.points[1], roiIndex, shapeIndex); if (shape.text != null) store.setLabelX(shape.points[0], roiIndex, shapeIndex); store.setLabelY(shape.points[1], roiIndex, shapeIndex); if (shape.text != null)
int shape, int c, int z, int t) { store.setLabelX(roi.getPolygon().getBounds().getX(), roiNum, shape); store.setLabelY(roi.getPolygon().getBounds().getY(), roiNum, shape);
int shape, int c, int z, int t) { store.setLabelX(roi.getPolygon().getBounds().getX(), roiNum, shape); store.setLabelY(roi.getPolygon().getBounds().getY(), roiNum, shape);
store.setROIID(roiID, roiCount); store.setLabelID(SHAPE_PREFIX + roiCount, roiCount, 0); store.setLabelX(getX(i), roiCount, 0); store.setLabelY(getY(i), roiCount, 0); store.setLabelText("Label " + i, roiCount, 0 );
store.setROIID(roiID, roiCount); store.setLabelID(SHAPE_PREFIX + roiCount, roiCount, 0); store.setLabelX(getX(i), roiCount, 0); store.setLabelY(getY(i), roiCount, 0); store.setLabelText("Label " + i, roiCount, 0 );
store.setLabelX((double)roi.getStartX(), roiIndex, 0); store.setLabelY((double)roi.getStartY(), roiIndex, 0);
store.setLabelX((double)roi.getStartX(), roiIndex, 0); store.setLabelY((double)roi.getStartY(), roiIndex, 0);
/** Converts omero.model.Shape (omero.model.Label in this case) to ome.xml.model.* and updates the MetadataStore */ private static void storeOmeroLabel(Shape shape, MetadataStore store, int roiNum, int shapeNum) { Label shape1 = (Label) shape; String polylineID = MetadataTools.createLSID("Shape", roiNum, shapeNum); store.setLabelID(polylineID, roiNum, shapeNum); if (shape1.getTextValue() != null){ store.setLabelText(shape1.getTextValue().getValue(), roiNum, shapeNum); } store.setLabelX(shape1.getX().getValue(), roiNum, shapeNum); store.setLabelY(shape1.getY().getValue(), roiNum, shapeNum); store.setLabelTheC(unwrap(shape1.getTheC()), roiNum, shapeNum); store.setLabelTheZ(unwrap(shape1.getTheZ()), roiNum, shapeNum); store.setLabelTheT(unwrap(shape1.getTheT()), roiNum, shapeNum); if (shape1.getStrokeWidth() != null) { store.setLabelStrokeWidth(new ome.units.quantity.Length(shape1.getStrokeWidth().getValue(), UNITS.PIXEL), roiNum, shapeNum); } if (shape1.getStrokeColor() != null){ store.setLabelStrokeColor(new ome.xml.model.primitives.Color(shape1.getStrokeColor().getValue()), roiNum, shapeNum); } if (shape1.getFillColor() != null){ store.setLabelFillColor(new ome.xml.model.primitives.Color(shape1.getFillColor().getValue()), roiNum, shapeNum); } if (shape1.getFontSize() != null){ ome.units.quantity.Length labelSize = new ome.units.quantity.Length(shape1.getFontSize().getValue(), UNITS.PIXEL); store.setLabelFontSize(labelSize , roiNum, shapeNum); } }