2,3c2 < * Hacked together by Doug lea < * Tue Feb 25 17:39:44 1997 Doug Lea (dl at gee) --- > * @(#)DiamondFigure.java 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,11d13 < import java.awt.*; < import java.util.*; < import java.io.IOException; 15a18,20 > import java.awt.*; > import java.util.*; > import java.io.IOException; 18a24,26 > * > * @author Doug Lea (dl at gee, Tue Feb 25 17:39:44 1997) > * @version <$CURRENT_VERSION$> 30,31c38,41 < /** Return the polygon describing the diamond **/ < protected Polygon polygon() { --- > /** > * @return the polygon describing the diamond > **/ > protected Polygon getPolygon() { 42c52 < Polygon p = polygon(); --- > Polygon p = getPolygon(); 55c65 < return polygon().contains(x, y); --- > return getPolygon().contains(x, y); 59c69 < return PolygonFigure.chop(polygon(), p); --- > return PolygonFigure.chop(getPolygon(), p);