Back to index

moin  1.9.0~rc2
ChopPolygonConnector.java
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1996, 1997 Erich Gamma
00003  * All Rights Reserved
00004  */
00005 
00006 package CH.ifa.draw.contrib;
00007 
00008 import java.awt.*;
00009 import CH.ifa.draw.framework.*;
00010 import CH.ifa.draw.standard.*;
00011 import CH.ifa.draw.util.Geom;
00012 
00017 public class ChopPolygonConnector extends ChopBoxConnector {
00018 
00019     /*
00020      * Serialization support.
00021      */
00022     private static final long serialVersionUID = -156024908227796826L;
00023 
00024     public ChopPolygonConnector() {
00025     }
00026 
00027     public ChopPolygonConnector(Figure owner) {
00028         super(owner);
00029     }
00030 
00031     protected Point chop(Figure target, Point from) {
00032         return ((PolygonFigure)target).chop(from);
00033     }
00034 }
00035