001/*
002 * Copyright 2010-2015 Institut Pasteur.
003 * 
004 * This file is part of Icy.
005 * 
006 * Icy is free software: you can redistribute it and/or modify
007 * it under the terms of the GNU General Public License as published by
008 * the Free Software Foundation, either version 3 of the License, or
009 * (at your option) any later version.
010 * 
011 * Icy is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014 * GNU General Public License for more details.
015 * 
016 * You should have received a copy of the GNU General Public License
017 * along with Icy. If not, see <http://www.gnu.org/licenses/>.
018 */
019package icy.roi;
020
021import java.awt.geom.Point2D;
022
023/**
024 * @deprecated Use {@link plugins.kernel.roi.roi2d.ROI2DArea} instead.
025 */
026@Deprecated
027public class ROI2DArea extends plugins.kernel.roi.roi2d.ROI2DArea
028{
029    /**
030     * @deprecated Use {@link plugins.kernel.roi.roi2d.ROI2DArea.ROI2DAreaPainter} instead.
031     */
032    @Deprecated
033    public class ROI2DAreaPainter extends plugins.kernel.roi.roi2d.ROI2DArea.ROI2DAreaPainter
034    {
035    }
036
037    /**
038     * Create a ROI2D Area type from the specified {@link BooleanMask2D}.
039     */
040    public ROI2DArea()
041    {
042        super();
043    }
044
045    /**
046     * Create a ROI2D Area type from the specified {@link BooleanMask2D}.
047     */
048    public ROI2DArea(BooleanMask2D mask)
049    {
050        super(mask);
051    }
052
053    /**
054     * @deprecated
055     */
056    @Deprecated
057    public ROI2DArea(Point2D position, boolean cm)
058    {
059        super(position);
060    }
061
062    /**
063     * Create a ROI2D Area type with a single point.
064     */
065    public ROI2DArea(Point2D position)
066    {
067        super(position);
068    }
069
070    @Override
071    protected ROI2DAreaPainter createPainter()
072    {
073        return new ROI2DAreaPainter();
074    }
075}