/* *------------------------------------------------------------------------------ * Copyright (C) 2015 University of Dundee. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * *------------------------------------------------------------------------------ */ package org.openmicroscopy.shoola.env.data.model; //Java imports import java.util.List; /** * Dialog used to save results from ImageJ. * * @author Jean-Marie Burel      * <a href="mailto:j.burel@dundee.ac.uk">j.burel@dundee.ac.uk</a> * @since 5.1.0 */ public class ResultsObject { /** The objects holding the results information.*/ private List<Object> refObjects; /** Indicates to save the roi if any.*/ private boolean roi; /** Indicates to save the table if any.*/ private boolean table; /** The name of the measurement result file.*/ private String name; /** * Creates a new instance. * * @param refObjects The objects holding the results information. */ public ResultsObject(List<Object> refObjects) { this.refObjects = refObjects; } /** * Returns the objects holding the results information. * @return See above. */ public List<Object> getRefObjects() { return refObjects; } /** * Sets to <code>true</code> to import the ROI, <code>false</code> * otherwise. * * @param roi The value to set. */ public void setROI(boolean roi) { this.roi = roi; } /** * Returns <code>true</code> to save the roi, <code>false</code> * otherwise. * * @return See above. */ public boolean isROI() { return roi; } /** * Sets to <code>true</code> to import the table results, <code>false</code> * otherwise. * * @param table The value to set. */ public void setTable(boolean table) { this.table = table; } /** * Returns <code>true</code> to save the table results, <code>false</code> * otherwise. * * @return See above. */ public boolean isTable() { return table; } /** * Sets the name of the table when saved as a csv file. * * @param name The value to set. */ public void setTableName(String name) { this.name = name; } /** * Returns the name of the table. * * @return See above. */ public String getTableName() { return name; } }