Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* * Copyright (c) 1996, 1997 Erich Gamma
- All Rights Reserved
- */
- package CH.ifa.draw.contrib;
- import java.awt.*;
- import CH.ifa.draw.framework.*;
- import CH.ifa.draw.standard.*;
- import CH.ifa.draw.util.Geom;
- import javax.swing.*;
- import java.awt.*;
- import java.awt.event.*;
- import CH.ifa.draw.framework.*;
- import CH.ifa.draw.standard.*;
- import CH.ifa.draw.figures.*;
- import CH.ifa.draw.util.*;
- public class ChopPolygonConnector extends ChopBoxConnector {
- public void adjustOffsets(Component comp, Point offsetPoint)
- {
- }
- private static final long serialVersionUID = -156024908227796826L;
- public ChopPolygonConnector() {
- }
- protected Point chop(Figure target, Point from) {
- return ((PolygonFigure)target).chop(from);
- }
- public void adjustOffsets(Component comp, Point offsetPoint, CustomSelectionTool C_S_T) {
- if (comp != null) {
- Point compLocation = comp.getLocation();
- offsetPoint.translate(compLocation.x, compLocation.y);
- adjustOffsets(comp.getParent(), offsetPoint);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement