private static void setRoiColor(Color c) { ImagePlus imp = WindowManager.getCurrentImage(); if (imp==null) return; Roi roi = imp.getRoi(); if (roi!=null && (roi.isDrawingTool())) { roi.setStrokeColor(c); imp.draw(); } }
private static void setRoiColor(Color c) { ImagePlus imp = WindowManager.getCurrentImage(); if (imp==null) return; Roi roi = imp.getRoi(); if (roi!=null && (roi.isDrawingTool())) { roi.setStrokeColor(c); imp.draw(); } }
if (ijRoi.isDrawingTool()) {//Checks if the given roi is a Text box/Arrow/Rounded Rectangle if (ijRoi.getTypeAsString().matches("Text")) { if (ijRoi instanceof TextRoi){ storeOval((OvalRoi) ijRoi, store, cntr, 0, c, z, t); } else if (ijRoi instanceof Line) { //Check if its a Line or Arrow ROI boolean checkpoint = ijRoi.isDrawingTool(); if (!checkpoint) { store.setLineID(polylineID, cntr, 0); roiID = MetadataTools.createLSID("ROI", cntr, q); Roi ijShape = subRois[q]; if (ijShape.isDrawingTool()) {//Checks if the given roi is a Text box/Arrow/Rounded Rectangle if (ijShape.getTypeAsString().matches("Text")) { if (ijShape instanceof TextRoi) { boolean checkpoint = ijShape.isDrawingTool(); if (!checkpoint) { store.setLineID(polylineID, cntr, 0);
if (ijRoi.isDrawingTool()) {//Checks if the given roi is a Text box/Arrow/Rounded Rectangle if (ijRoi.getTypeAsString().matches("Text")) { if (ijRoi instanceof TextRoi){ storeOval((OvalRoi) ijRoi, store, cntr, 0, c, z, t); } else if (ijRoi instanceof Line) { //Check if its a Line or Arrow ROI boolean checkpoint = ijRoi.isDrawingTool(); if (!checkpoint) { store.setLineID(polylineID, cntr, 0); roiID = MetadataTools.createLSID("ROI", cntr, q); Roi ijShape = subRois[q]; if (ijShape.isDrawingTool()) {//Checks if the given roi is a Text box/Arrow/Rounded Rectangle if (ijShape.getTypeAsString().matches("Text")) { if (ijShape instanceof TextRoi) { boolean checkpoint = ijShape.isDrawingTool(); if (!checkpoint) { store.setLineID(polylineID, cntr, 0);
roi = new Roi(0, 0, size/4, size/4); if (!roi.isDrawingTool()) { if (roi.getStroke()==null) roi.setStrokeWidth(defaultRoi.getStrokeWidth());
roi = new Roi(0, 0, size/4, size/4); if (!roi.isDrawingTool()) { if (roi.getStroke()==null) roi.setStrokeWidth(defaultRoi.getStrokeWidth());
if (!roi.isDrawingTool()) { if (roi.getStroke()==null) roi.setStrokeWidth(defaultRoi.getStrokeWidth());
if (!roi.isDrawingTool()) { if (roi.getStroke()==null) roi.setStrokeWidth(defaultRoi.getStrokeWidth());