/* * Copyright 2010-2015 Institut Pasteur. * * This file is part of Icy. * * Icy 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 3 of the License, or * (at your option) any later version. * * Icy 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 Icy. If not, see <http://www.gnu.org/licenses/>. */ package icy.roi; import icy.painter.Anchor2D; import java.awt.Color; import java.awt.Polygon; import java.awt.geom.Point2D; import java.util.List; /** * @deprecated Use {@link plugins.kernel.roi.roi2d.ROI2DPolygon} instead. */ @Deprecated public class ROI2DPolygon extends plugins.kernel.roi.roi2d.ROI2DPolygon { protected class ROI2DPolygonAnchor2D extends plugins.kernel.roi.roi2d.ROI2DPolygon.ROI2DPolygonAnchor2D { public ROI2DPolygonAnchor2D(Point2D position, Color color, Color selectedColor) { super(position, color, selectedColor); } } /** * @deprecated */ @Deprecated public ROI2DPolygon(Point2D pt, boolean cm) { super(pt); } public ROI2DPolygon(Point2D pt) { super(pt); } public ROI2DPolygon(List<Point2D> points) { super(points); } public ROI2DPolygon(Polygon polygon) { super(polygon); } public ROI2DPolygon() { super(); } @Override protected Anchor2D createAnchor(Point2D pos) { return new ROI2DPolygonAnchor2D(pos, getColor(), getFocusedColor()); } }