Back to index

moin  1.9.0~rc2
GroupHandle.java
Go to the documentation of this file.
00001 /*
00002  * @(#)GroupHandle.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.figures;
00007 
00008 import java.awt.*;
00009 import CH.ifa.draw.framework.*;
00010 import CH.ifa.draw.standard.NullHandle;
00011 
00015 final class GroupHandle extends NullHandle {
00016 
00017     public GroupHandle(Figure owner, Locator locator) {
00018         super(owner, locator);
00019     }
00020 
00024     public void draw(Graphics g) {
00025         Rectangle r = displayBox();
00026 
00027         g.setColor(Color.black);
00028         g.drawRect(r.x, r.y, r.width, r.height);
00029         r.grow(-1,-1);
00030         g.setColor(Color.white);
00031         g.drawRect(r.x, r.y, r.width, r.height);
00032     }
00033 }