1a2,2 > * @(#)DiamondFigure.java 1a24,26 > * > * @author Doug Lea (dl at gee, Tue Feb 25 17:39:44 1997) > * @version <$CURRENT_VERSION$> 2,3d23 < * Hacked together by Doug lea < * Tue Feb 25 17:39:44 1997 Doug Lea (dl at gee) 4a4,9 > * Project: JHotdraw - a GUI framework for technical drawings > * http://www.jhotdraw.org > * http://jhotdraw.sourceforge.net > * Copyright: © by the original author(s) and all contributors > * License: Lesser GNU Public License (LGPL) > * http://www.opensource.org/licenses/lgpl-license.html 9,9c18,18 < import java.awt.*; --- > import java.awt.*; 10,10c19,19 < import java.util.*; --- > import java.util.*; 11,11c20,20 < import java.io.IOException; --- > import java.io.IOException; 29a38,38 > /** 30a40,40 > **/ 30,30c39,39 < /** Return the polygon describing the diamond **/ --- > * @return the polygon describing the diamond 31,31c41,41 < protected Polygon polygon() { --- > protected Polygon getPolygon() { 42,42c52,52 < Polygon p = polygon(); --- > Polygon p = getPolygon(); 55,55c65,65 < return polygon().contains(x, y); --- > return getPolygon().contains(x, y); 59,59c69,69 < return PolygonFigure.chop(polygon(), p); --- > return PolygonFigure.chop(getPolygon(), p);