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 icy.painter.Anchor2D;
022
023import java.awt.geom.Line2D;
024import java.awt.geom.Point2D;
025
026/**
027 * @deprecated Use {@link plugins.kernel.roi.roi2d.ROI2DLine} instead.
028 */
029@Deprecated
030public class ROI2DLine extends plugins.kernel.roi.roi2d.ROI2DLine
031{
032    /**
033     * @deprecated Use {@link plugins.kernel.roi.roi2d.ROI2DLine.ROI2DLineAnchor2D} instead.
034     */
035    @Deprecated
036    protected class ROI2DLineAnchor2D extends plugins.kernel.roi.roi2d.ROI2DLine.ROI2DLineAnchor2D
037    {
038        public ROI2DLineAnchor2D(Point2D position)
039        {
040            super(position);
041        }
042    }
043
044    public ROI2DLine(Point2D pt1, Point2D pt2)
045    {
046        super(pt1, pt2);
047    }
048
049    public ROI2DLine(Line2D line)
050    {
051        super(line);
052    }
053
054    /**
055     * @deprecated
056     */
057    @Deprecated
058    public ROI2DLine(Point2D pt, boolean cm)
059    {
060        super(pt);
061    }
062
063    public ROI2DLine(Point2D pt)
064    {
065        super(pt);
066    }
067
068    public ROI2DLine(double x1, double y1, double x2, double y2)
069    {
070        super(x1, y1, x2, y2);
071    }
072
073    public ROI2DLine()
074    {
075        super();
076    }
077
078    @Override
079    protected Anchor2D createAnchor(Point2D pos)
080    {
081        return new ROI2DLineAnchor2D(pos);
082    }
083}