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.Color; 024import java.awt.Polygon; 025import java.awt.geom.Point2D; 026import java.util.List; 027 028/** 029 * @deprecated Use {@link plugins.kernel.roi.roi2d.ROI2DPolygon} instead. 030 */ 031@Deprecated 032public class ROI2DPolygon extends plugins.kernel.roi.roi2d.ROI2DPolygon 033{ 034 protected class ROI2DPolygonAnchor2D extends plugins.kernel.roi.roi2d.ROI2DPolygon.ROI2DPolygonAnchor2D 035 { 036 public ROI2DPolygonAnchor2D(Point2D position, Color color, Color selectedColor) 037 { 038 super(position, color, selectedColor); 039 } 040 } 041 042 /** 043 * @deprecated 044 */ 045 @Deprecated 046 public ROI2DPolygon(Point2D pt, boolean cm) 047 { 048 super(pt); 049 } 050 051 public ROI2DPolygon(Point2D pt) 052 { 053 super(pt); 054 } 055 056 public ROI2DPolygon(List<Point2D> points) 057 { 058 super(points); 059 } 060 061 public ROI2DPolygon(Polygon polygon) 062 { 063 super(polygon); 064 } 065 066 public ROI2DPolygon() 067 { 068 super(); 069 } 070 071 @Override 072 protected Anchor2D createAnchor(Point2D pos) 073 { 074 return new ROI2DPolygonAnchor2D(pos, getColor(), getFocusedColor()); 075 } 076}