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.geom.Point2D; 025import java.awt.geom.RectangularShape; 026 027/** 028 * @deprecated Use {@link plugins.kernel.roi.roi2d.ROI2DRectShape} instead. 029 */ 030@Deprecated 031public abstract class ROI2DRectShape extends plugins.kernel.roi.roi2d.ROI2DRectShape 032{ 033 /** 034 * @deprecated Use {@link plugins.kernel.roi.roi2d.ROI2DRectShape.ROI2DRectAnchor2D} instead. 035 */ 036 @Deprecated 037 protected class ROI2DRectAnchor2D extends plugins.kernel.roi.roi2d.ROI2DRectShape.ROI2DRectAnchor2D 038 { 039 public ROI2DRectAnchor2D(Point2D position, Color color, Color selectedColor) 040 { 041 super(position, color, selectedColor); 042 } 043 } 044 045 /** 046 * 047 */ 048 public ROI2DRectShape(RectangularShape shape, Point2D topLeft, Point2D bottomRight) 049 { 050 super(shape, topLeft, bottomRight); 051 } 052 053 @Override 054 protected Anchor2D createAnchor(Point2D pos) 055 { 056 return new ROI2DRectAnchor2D(pos, getColor(), getFocusedColor()); 057 } 058}