01: /*
02: * Copyright (C) 2004 NNL Technology AB
03: * Visit www.infonode.net for information about InfoNode(R)
04: * products and how to contact NNL Technology AB.
05: *
06: * This program is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU General Public License
08: * as published by the Free Software Foundation; either version 2
09: * of the License, or (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19: * MA 02111-1307, USA.
20: */
21:
22: // $Id: DraggableComponentBoxEvent.java,v 1.4 2005/02/16 11:28:11 jesper Exp $
23: package net.infonode.gui.draggable;
24:
25: import java.awt.*;
26:
27: public class DraggableComponentBoxEvent {
28: private DraggableComponentBox source;
29: private DraggableComponent draggableComponent;
30: private DraggableComponent oldDraggableComponent;
31: private DraggableComponentEvent draggableComponentEvent;
32: private Point draggableComponentBoxPoint;
33:
34: public DraggableComponentBoxEvent(DraggableComponentBox source) {
35: this (source, null);
36: }
37:
38: public DraggableComponentBoxEvent(DraggableComponentBox source,
39: DraggableComponent component) {
40: this (source, component, null, null);
41: }
42:
43: public DraggableComponentBoxEvent(DraggableComponentBox source,
44: DraggableComponent component, DraggableComponentEvent event) {
45: this (source, component, event, null);
46: }
47:
48: public DraggableComponentBoxEvent(DraggableComponentBox source,
49: DraggableComponent component,
50: DraggableComponentEvent event, Point point) {
51: this .source = source;
52: this .draggableComponent = component;
53: this .draggableComponentEvent = event;
54: this .draggableComponentBoxPoint = point;
55: }
56:
57: public DraggableComponentBoxEvent(DraggableComponentBox source,
58: DraggableComponent component,
59: DraggableComponent oldDraggableComponent) {
60: this (source, component);
61: this .oldDraggableComponent = oldDraggableComponent;
62: }
63:
64: public DraggableComponentBox getSource() {
65: return source;
66: }
67:
68: public DraggableComponent getDraggableComponent() {
69: return draggableComponent;
70: }
71:
72: public DraggableComponent getOldDraggableComponent() {
73: return oldDraggableComponent;
74: }
75:
76: public Point getDraggableComponentBoxPoint() {
77: return draggableComponentBoxPoint;
78: }
79:
80: public DraggableComponentEvent getDraggableComponentEvent() {
81: return draggableComponentEvent;
82: }
83: }
|