Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/memoire/dja/DjaUmlJoin.java


1   /**
2    * @modification $Date: 2001/12/03 16:28:08 $
3    * @statut       unstable
4    * @file         DjaUmlJoin.java
5    * @version      0.36
6    * @author       Guillaume Desnoix
7    * @email        guillaume@desnoix.com
8    * @license      GNU General Public License 2 (GPL2)
9    * @copyright    1998-2001 Guillaume Desnoix
10   */
11  
12  package com.memoire.dja;
13  
14  import com.memoire.fu.*;
15  import com.memoire.dnd.*;
16  import com.memoire.bu.*;
17  import com.memoire.dja.*;
18  import com.memoire.mst.*;
19  
20  
21  import java.awt.*;
22  import java.awt.event.*;
23  import java.util.*;
24  import javax.swing.*;
25  import javax.swing.border.*;
26  
27  public class DjaUmlJoin
28         extends DjaBox
29  {
30    public DjaUmlJoin()
31    {
32      super();
33      setBackground(getForeground());
34    }
35  
36    public int getWidth()
37    {
38      return Math.max(4*getHeight()+1,super.getWidth());
39    }
40  
41    public int getHeight()
42    {
43      return 5;
44    }
45  
46    public DjaHandle[] getHandles()
47    {
48      int x=getX();
49      int y=getY();
50      int w=getWidth();
51  
52      DjaHandle[] r=new DjaHandle[1];
53      r[0]=new DjaHandle(this,EAST,x+w-1+deltaX,y+3);
54  
55      return r;
56    }
57  }